HUB
Sign inSign up
flame logo

dgcosenza/flame

By dgcosenza

•Updated about 13 hours ago

Hardened Debian 13 (trixie) + Node LTS Flame startpage image (non-root, 0 fixable CVEs).

Image
0

4.9K

dgcosenza/flame repository overview

⁠Flame — Hardened Debian 13 (trixie) / Node.js LTS Image

Daily CI OpenSSF Scorecard Workflow Gitleaks Secret Scan Public Content Check OpenSSF Scorecard OpenSSF Best Practices

Trivy + Grype: 0 Fixable CVEs Signed: Cosign OIDC SLSA Build L3 SBOM: SPDX + CycloneDX Base OS Architectures Healthcheck: CI Verified Renovate Enabled Dependabot Enabled Daily Rebuilds

Latest Release Release Date Last Commit Docker Pulls Docker Image Size Registries: Docker Hub + GHCR Packaging License: MIT Upstream License GitHub Issues FNX Labs Catalog

A hardened, actively maintained container image for Flame (self-hosted startpage and dashboard), built on Debian 13 (trixie) and the latest active Node.js LTS runtime, maintained by Daniel G. Cosenza from FNX Labs.

⁠Overview

dgcosenza/flame, maintained by Daniel G. Cosenza from FNX Labs, replaces the legacy pawelmalak/flame (v2.4.0 / EOL Node 20) image with a drop-in, hardened build on Debian 13 (trixie-slim) + Node.js 26 LTS:

  • Maintained application base: Built from a commit-pinned checkout of AlexStapleton/Flame-Revamped⁠ (v2.1.0, commit 0d6221d8), modernizing Flame to Express 5, Sequelize 6, sqlite3 6 (bundled SQLite 3.52), React 19, Vite 8, and TypeScript 7 with 250+ automated tests and XSS/CSP/auth hardening while preserving the classic Flame layout and SQLite data model.
  • Current OS and runtime: Based on official node:<LTS>-trixie-slim (latest Debian 13 point release, 13.8 as of 2026-11-24), upgraded via apt-get update && apt-get -y upgrade at build time, with native sqlite3 compiled from source against Debian 13 glibc and Node 26.
  • Zero-vulnerability build gates (all severities with a fix): Both server and frontend dependencies are updated at build time, the Vite frontend is rebuilt from source, all unit tests run during build, npm audit --audit-level=low must report 0 vulnerabilities on client and server, and Trivy must report 0 fixable vulnerabilities of any severity before publication.
  • Audited packaging patches (patches/):
    1. 01-secrets-and-startup.patch — Loads /run/secrets/* and PASSWORD_FILE / SECRET_FILE before secret initialization and password validation, supporting secret-only deployments without plaintext PASSWORD env vars.
    2. 02-dot-secret-compat.patch — Preserves pawelmalak/flame's data/.secret (with fallback to Flame-Revamped's data/secret.key) and writes newly generated secret files with mode 0600.
    3. 03-mass-assignment-allowlists.patch — Enforces explicit field allowlists in app, bookmark, and category create/update controllers (mitigating CWE-915).

⁠Current Versions

ComponentResolved Version
Flame-Revamped2.1.0 (0d6221d8)
Node.js LTS26.13.1
Base OSDebian 13.8 (trixie-slim)
Architectureslinux/amd64, linux/arm64
Uncompressed size (per arch)amd64: 114.2 MB, arm64: 411.6 MB
Last verified build (UTC)2026-11-28
Published multi-arch digestdgcosenza/flame@sha256:7f6ff2e3b4621c7f258af0487bc28280d018b5d0a2a8382f4733285811004e5e
GHCR mirrorghcr.io/dgcosenza/flame@sha256:7f6ff2e3b4621c7f258af0487bc28280d018b5d0a2a8382f4733285811004e5e
Supply chainCosign OIDC signed + SPDX & CycloneDX SBOM attestations + SLSA Build L3 provenance
Security gate (Trivy + Grype on SBOM)0 fixable findings of any severity (13 upstream-unfixed)

⁠Tags and Versioning Policy

TagPolicyDescription
<version>-<commit>-<YYYYMMDD> (e.g. 2.1.0-0d6221d8-20261124)ImmutablePoint-in-time build pinning the upstream release, commit, and build date.
<version>-<YYYYMMDD> (e.g. 2.1.0-20261124)ImmutableDate-stamped daily security rebuild.
sha-<short>ImmutablePackaging repository commit tag.
<version>-<commit> (e.g. 2.1.0-0d6221d8)Moving (same commit)Latest verified Debian 13 / Node LTS security rebuild of that commit.
<version> (e.g. 2.1.0)Moving (patch line)Latest verified build in the 2.1.0 line.
latestMovingLatest verified Debian 13 / Node LTS build passing all audit, test, Trivy, and Grype gates.

Production pinning: Pin by registry digest rather than pulling unpinned :latest:

image: dgcosenza/flame:latest@sha256:<digest>

⁠Supported Architectures

ArchitectureStatusVerification
linux/amd64Published & natively testedNative x86_64 build, smoke, Dive, Trivy/Grype, Cosign, SLSA L3.
linux/arm64Published & natively testedNative ARM64 build, smoke, Dive, Trivy/Grype, Cosign, SLSA L3.

Identical multi-arch OCI manifest digests are published to Docker Hub and GHCR (ghcr.io/dgcosenza/*), accompanied by automated signed GitHub Releases⁠.

⁠Quick Start

The container runs as non-root node (UID/GID 1000:1000). Prepare host directories and a secret password file first:

mkdir -p ./data ./secrets
chown -R 1000:1000 ./data
printf '%s\n' 'replace-with-a-strong-unique-password' > ./secrets/password
chmod 600 ./secrets/password
docker run -d --name flame --restart unless-stopped --security-opt no-new-privileges:true \
  -p 192.0.2.10:5005:5005 -e PASSWORD_FILE=/run/secrets/password \
  -v "$(pwd)/data:/app/data" -v "$(pwd)/secrets/password:/run/secrets/password:ro" \
  --cpus 1.00 --memory 256m dgcosenza/flame:latest

Open http://192.0.2.10:5005/, click the gear icon -> App, and sign in with ./secrets/password.

See also docker-compose.example.yml⁠:

services:
  flame:
    # Pin by @sha256 digest in production:
    image: dgcosenza/flame:latest
    container_name: flame
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    ports:
      # LAN-only bind: replace with your host's private LAN IP
      - "192.0.2.10:5005:5005"
    environment:
      - NODE_ENV=production
      - PASSWORD_FILE=/run/secrets/password
      # - TRUST_PROXY=1         # Set hop count only behind a reverse proxy
      # - CSP=on                # Set "off" only if custom CSS/assets break under CSP
      # - NODE_USE_ENV_PROXY=1  # Honour HTTP_PROXY / HTTPS_PROXY for outbound widget calls
    secrets:
      - password
    volumes:
      - ./data:/app/data
      # - ./log:/app/log        # Optional persistent access.log (e.g. fail2ban)
    healthcheck:
      test: ["CMD", "node", "/app/healthcheck.js"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 60s
    deploy:
      resources:
        limits:
          cpus: "1.00"
          memory: 256M

secrets:
  password:
    file: ./secrets/password

⁠Environment Variables

At startup, /run/secrets/* files are loaded into uppercase environment variables first, followed by explicit *_FILE variables (PASSWORD_FILE, SECRET_FILE).

VariableRequiredDefaultDescription
PASSWORDYes*(none)Admin password. Flame refuses to start if unset via env, PASSWORD_FILE, or /run/secrets/password. Changing it invalidates all active sessions.
PASSWORD_FILEYes*(unset)Path to a file containing the admin password (trimmed). Preferred over plaintext PASSWORD (e.g. /run/secrets/password).
SECRETNoAuto-generatedHS256 JWT signing key. When unset (or CHANGE_ME), Flame loads data/.secret (or data/secret.key), or generates a 64-byte random hex key in data/.secret (0600).
SECRET_FILENo(unset)Path to a file containing the JWT signing key.
PORTNo5005Internal HTTP/WebSocket listening port (also read by /app/healthcheck.js).
NODE_ENVNoproductionNode runtime mode (production in image; development for local debugging only).
TRUST_PROXYNofalseTrusted reverse-proxy hop count (e.g. 1 behind nginx/Traefik) so rate limiting and access.log see real client IPs.
CSPNoonSet to off to disable the Content-Security-Policy header (logs a startup warning).
NODE_USE_ENV_PROXYNo(unset)Set to 1 to route outbound Weather/Pi-hole/Calendar requests via HTTP_PROXY / HTTPS_PROXY.
/run/secrets/<name>No(none)Each mounted secret sets uppercase <NAME> (e.g. /run/secrets/password overrides PASSWORD).

*At least one of PASSWORD, PASSWORD_FILE, or /run/secrets/password is required.

⁠Ports and Network Exposure

Flame listens on 5005/tcp (UI, /api/*, /health, /socket). Bind to a private LAN interface (e.g. 192.0.2.10:5005:5005, RFC 5737 example) or 127.0.0.1:5005:5005 behind a reverse proxy; avoid unfirewalled 5005:5005.

⁠Volumes and Data Layout

⁠/app/data (required persistent volume)
PathBack up?Mode / OwnerPurpose
db.sqlite (+ -wal, -shm)Yes1000:1000SQLite database (WAL mode): apps, categories, bookmarks, weather cache, SequelizeMeta.
config.jsonYes1000:1000UI and integration settings (title, theme, ordering, layout columns, Weather/Pi-hole/Calendar settings and API keys).
themes.jsonYes1000:1000Built-in and custom color themes.
customQueries.jsonYes1000:1000Custom search bar providers and prefixes.
.secret (or secret.key)Yes (sensitive)0600 1000:1000Persistent HS256 JWT signing key. Never commit or print.
flame.cssYes1000:1000Custom CSS (copied to /app/public/flame.css at startup and on save).
uploads/Yes1000:1000Uploaded custom icons (PNG, JPEG, ICO, SVG — served with nosniff + sandbox CSP).
db_backups/Optional1000:1000Automatic pre-migration copies of db.sqlite.
⁠/app/log (optional)

Stores Apache-combined HTTP access logs (/app/log/access.log, excluding /health). Mount a host folder if you need persistent logs or fail2ban.

Because the container runs as non-root node (UID/GID 1000) without root chown at startup, ensure host ownership matches:

chown -R 1000:1000 /path/to/flame/data
chmod 600 /path/to/flame/data/.secret

⁠Configuration

Manage apps, categories, bookmarks, themes, search providers, and widgets in Settings (bottom-left gear icon). Public items are guest-visible; private items, write endpoints, and integration secrets (WEATHER_API_KEY, PIHOLE_SECRETS, CALENDAR_SECRETS) require admin login.

⁠Upgrading and Migrating from pawelmalak/flame

This image is a data-compatible upgrade from pawelmalak/flame (v2.3.x / v2.4.0). It reuses data/.secret, preserves config.json, and applies four additive, reversible SQLite migrations (06_indexes.js to 09_weather-details.js) after saving an automatic backup in data/db_backups/.

Key points (full step-by-step cutover, verification and rollback in docs/MIGRATION.md⁠):

  • Keep a full copy of data/ and tag the outgoing image before switching.
  • Ensure ./data is owned by UID 1000.
  • Replace the Compose healthcheck.test with ["CMD", "node", "/app/healthcheck.js"].
  • Pin by digest and recreate only the flame service.
  • Expect a one-time re-login (legacy JWTs lack the pwf claim).

⁠Backup and Restore

Stop flame briefly before archiving /app/data (SQLite WAL mode) with tar --numeric-owner. GUI backups exclude secrets; use filesystem backups for full recovery (docs/BACKUP-RESTORE.md⁠).

⁠Supply-Chain Verification

Every published digest (multi-arch index and per-architecture manifests) on both Docker Hub and GHCR is keyless-signed with Sigstore Cosign (GitHub OIDC), attested with SPDX and CycloneDX SBOMs, and backed by SLSA Build L3 provenance (actions/attest-build-provenance).

⁠Verify image signature with Cosign
cosign verify \
  --certificate-identity-regexp="^https://github\.com/dgcosenza/flame-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
  --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
  ghcr.io/dgcosenza/flame:latest

# Identical digest on Docker Hub: replace ghcr.io/dgcosenza/flame:latest with dgcosenza/flame:latest
⁠Verify SPDX / CycloneDX SBOM attestations and SLSA Build Provenance
cosign verify-attestation \
  --type spdxjson \
  --certificate-identity-regexp="^https://github\.com/dgcosenza/flame-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
  --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
  ghcr.io/dgcosenza/flame@sha256:<arch-digest>

gh attestation verify oci://ghcr.io/dgcosenza/flame:latest --owner dgcosenza

⁠Security Notes

  • Non-root & read-only code: Runs as node (UID/GID 1000) with no-new-privileges:true. /app code, node_modules, and static /app/public assets are root:root read-only; only /app/data, /app/log, and /app/public/flame.css are writable by UID 1000.
  • Minimal runtime: Compilers, git, npm, npx, corepack, yarn, curl, and wget are excluded from the runtime layer. /app/package-lock.json stays intact for transparent vulnerability scanning.
  • Secrets handling: Prefer Docker secrets (/run/secrets/password) + PASSWORD_FILE over plaintext PASSWORD env vars.
  • JWT signing & rotation: data/.secret is created mode 0600. Tokens require HS256, clamp TTLs to 1h|1d|14d|30d|1y (default 14d), and embed an HMAC password fingerprint (pwf). Rotating PASSWORD or data/.secret invalidates all active tokens immediately.
  • Web hardening: Strict Content-Security-Policy, nosniff, SAMEORIGIN, sandboxed /uploads, DOMPurify SVG sanitization, blocked javascript:/data: URLs, login rate limiting (10 failed attempts / 15 min), constant-time password verification, 100 KB JSON body cap (10 MB backup import), and explicit write field allowlists.
  • LAN-only posture: Because public dashboard items are unauthenticated by design, keep Flame bound to a private LAN interface rather than exposed on the public internet.
  • Audit & CVE gate (all severities with a fix): Builds fail on any npm audit --audit-level=low finding (>0), any Trivy fixable finding of any severity (--ignore-unfixed), or any Grype fixable finding of any severity (--only-fixed). Current status: 0 fixable vulnerabilities of any severity. Trivy SARIF results are uploaded to GitHub Code Scanning, full Trivy/Grype reports and an SPDX SBOM are persisted as CI artifacts, and any upstream-unfixed Debian 13 advisories are cleared automatically by daily rebuilds once Debian Security publishes fixes. See SECURITY.md⁠.

⁠Healthcheck

HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
    CMD ["node", "/app/healthcheck.js"]

/app/healthcheck.js sends an HTTP GET to http://127.0.0.1:${PORT}/health (5 s timeout) and exits 0 only on HTTP 200 with {"status":"healthy"}. /health validates both data/config.json accessibility and a live SQLite SELECT 1 query (2 s timeout). Three consecutive failures mark the container unhealthy, signalling a process crash, port binding fault, missing config, or unreachable/corrupt SQLite database.

⁠Building from Source

git clone https://github.com/dgcosenza/flame-docker.git
cd flame-docker
docker buildx build --platform linux/amd64 --load -t dgcosenza/flame:local .

Build arguments (NODE_VERSION, FLAME_REPO, FLAME_VERSION, FLAME_COMMIT, IMAGE_*) and the four-stage build are documented in docs/BUILD.md⁠.

⁠Update Policy

.github/workflows/daily.yml⁠ runs daily at 04:17 UTC, on main pushes, PRs, and workflow_dispatch: resolves Node LTS + Flame-Revamped, rebuilds --no-cache, enforces npm audit + Trivy + Grype (0 fixable CVEs of any severity) + Dive + tests/smoke.sh⁠, publishes Cosign-signed SLSA L3 digests to Docker Hub, GHCR, and configured secondary registries, syncs versions.json/README.md/CHANGELOG.md/Hub overview, and manages a single ci-failure issue (docs/UPDATE-POLICY.md⁠). Pin deployments by @sha256 digest.

⁠Design Decisions

  • Debian 13 (trixie-slim) + Node LTS: Clean native sqlite3 glibc builds tracking Debian Security advisories.
  • Dependency-free Node healthcheck: Built-in http module eliminates curl/wget from runtime.
  • Minimal runtime: Excludes compilers, git, npm, corepack, and yarn while keeping package-lock.json for transparent scanning.

⁠Troubleshooting

  • FATAL: PASSWORD environment variable is not set: supply PASSWORD, PASSWORD_FILE=/run/secrets/password, or a readable /run/secrets/password.
  • EACCES in /app/data: chown -R 1000:1000 ./data && chmod 600 ./data/.secret.
  • Container unhealthy after migrating: use ["CMD", "node", "/app/healthcheck.js"] as healthcheck.test.

More cases (logout after upgrade, CSP, rate limiter behind a proxy, WAL backups): docs/TROUBLESHOOTING.md⁠.

⁠License

This repository follows a clear packaging-vs-upstream license split:

  • Container packaging, scripts, CI workflows, and documentation (packaging: MIT): Licensed under the MIT License⁠ — copyright Daniel G. Cosenza from FNX Labs.
  • Bundled upstream software — Flame / Flame-Revamped (AlexStapleton/Flame-Revamped, fork of pawelmalak/flame) (upstream: MIT): Created by Paweł Malak⁠ and maintained by Alex Stapleton⁠ — licensed under the MIT License⁠.

Full third-party notices are maintained in THIRD-PARTY-NOTICES.md⁠. Release history is maintained in CHANGELOG.md⁠.

Tag summary

Content type

Image

Digest

sha256:7f6ff2e3b…

Size

108.9 MB

Last updated

about 13 hours ago

docker pull dgcosenza/flame