Reference Sicura Console Deployment with SSL Termination¶
Overview¶
This document provides instructions for deploying the Sicura Console web application using Podman with SSL termination via Nginx. The Nginx container will handle HTTPS requests and proxy them to the Sicura Console running inside a Podman pod.
To run the same stack as systemd services that start at boot, see the Reference Deployment with Podman Quadlet.
Note: To deploy the Classic Console with the same Nginx front end, use its <version> image tag (for example 2026.11.0), and give the Console container SICURA_CONFIG and SICURA_LICENSE_KEY instead of the sicura-admin-password secret; it ignores SECRET_KEY_BASE. Set main.default_admin_password in that configuration: without it the built-in admin account has no password and nobody can sign in. See Classic Console Environment Variables.
Prerequisites¶
- A Linux system with:
- Podman installed
- TCP ports 443 and (optionally) 80 (for redirection to port 443) allowed
- A Sicura license, which you upload after the first sign-in
- SSL certificates (self-signed or from a certificate authority)
Install Packages¶
On a RHEL-based host, install the necessary packages:
Firewall Configuration¶
If the system is running a default firewalld configuration, the following commands can be used to allow the necessary ports:
SSL Certificate Preparation¶
If you do not have SSL certificates, generate a self-signed certificate:
mkdir -p certs
openssl req -x509 -nodes -days 365 -newkey rsa:4096 \
-keyout certs/privkey.pem -out certs/fullchain.pem \
-subj "/CN=$( hostname -f )"\
-addext "subjectAltName=DNS:$( hostname -f)"
Database TLS Certificate Preparation¶
The Console verifies the database server's certificate. Create a certificate authority (CA) and a server certificate for PostgreSQL, valid for the names the Console uses to reach it (localhost in this deployment, sicura-db in the Quadlet deployment):
mkdir -p db-certs
openssl req -x509 -nodes -days 3650 -newkey rsa:4096 \
-keyout db-certs/ca.key -out db-certs/ca.pem \
-subj "/CN=Sicura Console database CA"
openssl req -nodes -newkey rsa:4096 \
-keyout db-certs/server.key -out db-certs/server.csr \
-subj "/CN=sicura-db"
printf 'subjectAltName=DNS:localhost,DNS:sicura-db,IP:127.0.0.1\n' > db-certs/server.ext
openssl x509 -req -days 825 -in db-certs/server.csr \
-CA db-certs/ca.pem -CAkey db-certs/ca.key -CAcreateserial \
-extfile db-certs/server.ext -out db-certs/server.pem
Keep db-certs/ca.key somewhere safe; it is needed to issue the next server certificate. The server certificate is valid for 825 days, and once it expires the Console can no longer connect. Before then, repeat the last two commands, then replace the sicura-db-server-cert and sicura-db-server-key secrets (podman secret rm, then podman secret create) and restart the database container.
Deployment Steps¶
Define Environment Variables¶
Set up necessary environment variables for the deployment:
export SICURA_CONSOLE_IMAGE="registry.customers.sicura.us/products/sicura-console:2026.11.0-rails"
export SICURA_DB_IMAGE="docker.io/library/postgres:17"
export NGINX_IMAGE="docker.io/library/nginx:latest"
Pull the Images¶
Create a Random Password for the Database¶
tr -d '\n' strips the newline that openssl prints. PostgreSQL drops it when it sets the password but the Console does not, so leaving it in makes password authentication fail.
Create the Console's Secret Key¶
The Console needs SECRET_KEY_BASE, a secret key that must stay the same for the life of the installation; see Secret Key Base.
Set the Admin Password¶
The Console sets this as the password of the built-in admin account when it sets up its database on first start. Without it the password is ChangeMe123!; see Administrator Account with the Sicura Console Image.
Store the Database Certificates as Secrets¶
podman secret create sicura-db-ca db-certs/ca.pem
podman secret create sicura-db-server-cert db-certs/server.pem
podman secret create sicura-db-server-key db-certs/server.key
Create a Volume for Database Persistence¶
Create a Container Network¶
Create a Podman Pod¶
This pod will contain both the database and the Sicura Console.
Run the Database¶
podman run -d --name sicura-db --rm \
--pod sicura \
--env PGDATA=/var/lib/postgresql/data/dbdata \
--secret sicura-db-password,type=env,target=POSTGRES_PASSWORD \
--secret sicura-db-server-cert,uid=999,gid=999,mode=0644 \
--secret sicura-db-server-key,uid=999,gid=999,mode=0600 \
--volume sicura-dbdata:/var/lib/postgresql/data \
"$SICURA_DB_IMAGE" \
-c ssl=on \
-c ssl_cert_file=/run/secrets/sicura-db-server-cert \
-c ssl_key_file=/run/secrets/sicura-db-server-key
PostgreSQL runs as user ID 999 in the official image and refuses a key that anyone else can read, which is why the key secret sets its owner and mode.
Run the Console¶
podman run -d --name sicura-console --rm \
--pod sicura \
--env DB_DATABASE=postgres \
--env DB_HOST=localhost \
--env DB_PORT=5432 \
--env DB_SSLMODE=verify-full \
--env DB_SSLROOTCERT=/run/secrets/sicura-db-ca \
--env DB_USER=postgres \
--secret sicura-db-password,type=env,target=DB_PASSWORD \
--secret sicura-admin-password,type=env,target=ADMIN_PASSWORD \
--secret sicura-db-ca \
--secret sicura-secret-key-base,type=env,target=SECRET_KEY_BASE \
--requires sicura-db \
"$SICURA_CONSOLE_IMAGE"
DB_SSLMODE=verify-full makes the Console check that the database's certificate was signed by the CA and names localhost. To authenticate with a client certificate instead of a password, see Certificate Authentication and Additional Connection Settings.
Deploy Nginx for SSL Termination¶
Create an Nginx Configuration Template¶
Create the file nginx/default.conf.template:
mkdir -p nginx
cat > nginx/default.conf.template <<'END_NGINX_CONF'
server {
listen 443 ssl;
server_name ${SERVER_NAME};
ssl_certificate ${SSL_CERT};
ssl_certificate_key ${SSL_KEY};
client_max_body_size 20M;
location / {
proxy_pass http://sicura:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Scheme https;
proxy_buffering off;
# Sage replies and MCP streams can stay silent longer than Nginx's 60s default.
proxy_read_timeout 1h;
}
}
server {
listen 80;
server_name ${SERVER_NAME};
return 301 https://$host$request_uri;
}
END_NGINX_CONF
Run the Nginx Container¶
podman run -d --name sicura-nginx --rm \
-v "$( pwd )"/nginx:/etc/nginx/templates:ro,Z \
-v "$( pwd )"/certs:/etc/nginx/certs:ro,Z \
-e SERVER_NAME="$( hostname -f )" \
-e SSL_CERT="/etc/nginx/certs/fullchain.pem" \
-e SSL_KEY="/etc/nginx/certs/privkey.pem" \
--publish 80:80 \
--publish 443:443 \
--network sicura \
"$NGINX_IMAGE"
Verify Deployment¶
Check the logs of the Sicura Console and Nginx containers to ensure everything is running correctly:
The Sicura Console should be accessible over HTTPS at https://<fqdn>/. The Nginx container handles SSL termination and forwards traffic to the Sicura Console running inside the Podman pod.
Upload the License¶
Sign in as admin with the admin password, then upload your Sicura license on the License page; see Licenses.