Skip to content

Configuration

FireHawk is configured with environment variables. With Docker Compose they come from the .env file next to docker-compose.yml; on Kubernetes the Helm chart writes them into a ConfigMap and a Secret from its values. Names are case-insensitive.

These are read by the API and the workers (both use the same image, so give them the same values).

Variable Default Meaning
SECRET_KEY change-me Signs session tokens and encrypts every stored secret: SSH passwords and keys, credential passphrases, notification channel secrets, single sign-on and other app settings. Always set it to a random value (openssl rand -hex 32) and back it up. Changing it signs everyone out and makes stored secrets unreadable.
DATABASE_URL postgresql+asyncpg://firehawk:firehawk@db:5432/firehawk PostgreSQL connection URL. postgres://, postgresql:// and postgresql+psycopg2:// URLs are accepted and converted, so URLs from managed databases and operators (CloudNativePG uri) work as they are. The Compose file builds it from the POSTGRES_* variables.
BOOTSTRAP_ADMIN_EMAIL admin@firehawk.local E-mail of the first administrator account.
BOOTSTRAP_ADMIN_PASSWORD changeme123 Password of the first administrator account. The account is created only at a start where the database has no user at all; changing these values later has no effect.
TOKEN_EXPIRE_MINUTES 720 Lifetime of a sign-in session in minutes (12 hours). Personal API tokens have their own expiry.
FRONTEND_ORIGIN http://localhost:8080 The URL users open in the browser. Allowed as a cross-origin (CORS) origin by the API, and used as the public URL for notification links and the single sign-on redirect unless a public URL is set in the UI (see below).
SSH_KEYS_DIR /app/sshkeys Directory inside the API and worker containers holding private key files that hosts can refer to by name.
SSH_CONNECT_TIMEOUT 10 Seconds to wait for an SSH connection to a host or jump host.
DRIFT_CHECK_INTERVAL_MINUTES 30 Minutes between automatic drift checks of every deployed host. 0 turns automatic checks off (on-demand checks keep working).
RUN_WORKER true Run a background-job worker inside the API process. The Compose file and the Helm chart set it to false for the API because they run separate workers. Leave it true only for a single-container setup without workers.
WORKER_CONCURRENCY 8 Maximum number of jobs one worker (or the embedded worker) runs at the same time.
JOB_RETENTION_DAYS 7 Finished, failed and cancelled jobs older than this are deleted from the job list.
DB_WAIT_SECONDS 90 How long a starting API or worker waits for the database to become reachable before giving up.

These are only used by the Compose file itself.

Variable Default Meaning
FIREHAWK_TAG latest Image tag for the API, worker and frontend images: latest, or a release such as 1, 1.0 or 1.0.0. See Versions and upgrades.
FIREHAWK_REGISTRY ghcr.io/eos916101 Registry and namespace the images are pulled from, for a mirror or private registry.
POSTGRES_USER firehawk User of the bundled PostgreSQL.
POSTGRES_PASSWORD firehawk Password of the bundled PostgreSQL. It is only applied when the database volume is created for the first time. Set a random value before the first start.
POSTGRES_DB firehawk Database name.
API_PORT 8000 Host port (optionally address:port, for example 127.0.0.1:8000) the API is published on.
FRONTEND_PORT 8080 Host port the web UI is published on. This documentation uses 8085.
Variable Default Meaning
API_UPSTREAM api:8000 Address nginx in the frontend image proxies /api/ to. The Helm chart sets it to the api Service. Only needed when you run the frontend image outside the provided Compose file or chart.

The chart maps its values to the variables above:

Helm value Variable
secretKey (or existingSecret) SECRET_KEY
bootstrapAdmin.email / bootstrapAdmin.password BOOTSTRAP_ADMIN_EMAIL / BOOTSTRAP_ADMIN_PASSWORD
externalDatabase.* or the built-in postgresql.* DATABASE_URL
publicUrl (default: from ingress.host) FRONTEND_ORIGIN
config.tokenExpireMinutes TOKEN_EXPIRE_MINUTES
config.sshConnectTimeout SSH_CONNECT_TIMEOUT
config.driftCheckIntervalMinutes DRIFT_CHECK_INTERVAL_MINUTES
config.jobRetentionDays JOB_RETENTION_DAYS
config.dbWaitSeconds DB_WAIT_SECONDS
worker.concurrency WORKER_CONCURRENCY
extraEnv any additional variable for the api and worker pods

See Install on Kubernetes.

Some settings are stored in the database (encrypted with SECRET_KEY) and changed by a FireHawk administrator in the UI, under Users & access, Single sign-on:

Setting Meaning
Public URL The address users open, for example https://firehawk.example.com. Overrides FRONTEND_ORIGIN for links in notifications and for the single sign-on redirect URI, which must be registered at the identity provider as exactly {public URL}/api/auth/oidc/callback. Set it whenever FRONTEND_ORIGIN does not match the address users really use.
Single sign-on (OpenID Connect) Provider, client, group mappings and allowed domains. See Single sign-on and API tokens.
Password sign-in Can be turned off for non-administrators while single sign-on is enabled. Administrators always keep password sign-in as a break-glass path.

Other runtime configuration (notification channels, maintenance windows, workspaces, roles and grants) lives in the UI as well; see the user guide.