TLS and reverse proxy
FireHawk serves plain HTTP. Terminate TLS in front of it with a reverse proxy (Caddy, nginx, Traefik, a cloud load balancer, or a Kubernetes ingress).
Only the frontend needs to be reachable: it serves the UI and proxies every /api/ request to the API container internally. The browser never talks to port 8000, so no separate route for the API is needed.
Caddy obtains and renews certificates automatically:
firehawk.example.com { reverse_proxy 127.0.0.1:8085}server { listen 443 ssl; server_name firehawk.example.com; ssl_certificate /etc/letsencrypt/live/firehawk.example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/firehawk.example.com/privkey.pem;
# configuration imports can be several MB client_max_body_size 10m;
location / { proxy_pass http://127.0.0.1:8085; # the FireHawk frontend container proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; # deploys of slow hosts can take minutes proxy_read_timeout 300s; }}
server { listen 80; server_name firehawk.example.com; return 301 https://$host$request_uri;}The FireHawk frontend itself allows request bodies up to 10 MB on /api/ and waits up to 300 seconds for the API. An outer nginx has a 1 MB body limit and a 60 second read timeout by default; raise them as above, or large imports fail with 413 Request Entity Too Large.
Kubernetes ingress
Section titled “Kubernetes ingress”With the Helm chart, enable the ingress and TLS in the values (for example with cert-manager):
publicUrl: https://firehawk.example.comingress: enabled: true className: nginx host: firehawk.example.com annotations: cert-manager.io/cluster-issuer: letsencrypt nginx.ingress.kubernetes.io/proxy-body-size: 10m nginx.ingress.kubernetes.io/proxy-read-timeout: "300" tls: enabled: trueThe ingress points at the frontend Service only. See Install on Kubernetes.
Tell FireHawk its public address
Section titled “Tell FireHawk its public address”After moving FireHawk behind a proxy, set the address users open:
FRONTEND_ORIGIN=https://firehawk.example.comin.env(Helm:publicUrl), thendocker compose up -d. The API accepts cross-origin requests from this origin, and it is the default public URL.- Optionally, Users & access, Single sign-on, Public URL. It overrides
FRONTEND_ORIGINfor links in notifications and the single sign-on redirect URI ({public URL}/api/auth/oidc/callback).
If the public URL is wrong, links in notification messages point to the wrong place and single sign-on fails because the redirect URI does not match what is registered at the identity provider.
Hardening checklist
Section titled “Hardening checklist”- Expose only 443. The reverse proxy is the only public entry point.
- Keep port 8000 internal. Publish the API on localhost only (
API_PORT=127.0.0.1:8000) or not at all; the UI does not need it. - Bind the frontend to localhost when the proxy runs on the same machine (
FRONTEND_PORT=127.0.0.1:8085), so plain HTTP is not reachable from outside. - Restrict who can reach the UI. Allow only management networks or a VPN at the proxy or with a firewall.
- PostgreSQL stays internal. The bundled
dbservice is not published; keep it that way. - Change the bootstrap password and consider single sign-on for users.
- Prefer key-based SSH credentials for managed hosts over passwords. See Backup and security.
