ghostfolio

by HelmForge

Helm chartv1.1.7App 3.100.0Apache-2.0Verified publisher

Production-ready Ghostfolio wealth management with PostgreSQL, Redis, OIDC, and immutable secrets

About this chart

Ghostfolio Helm chart

Deploy Ghostfolio, the open-source wealth-management application, with a pinned official image, PostgreSQL, Redis, OIDC, External Secrets, hardened networking, and upstream-native health checks.

Features

  • Official, pinned Ghostfolio image with no floating tag.
  • Maintained PostgreSQL and Redis dependencies plus explicit external-service Secret contracts.
  • A configurable application listener that changes the real upstream PORT.
  • Ingress and Gateway API exposure with canonical URL and proxy controls.
  • Experimental OIDC, native External Secrets resources and retained identity.
  • Hardened non-root runtime, read-only root filesystem and product-aware NetworkPolicy.
  • Upstream liveness and dependency-aware readiness probes.

Architecture

One Ghostfolio Deployment owns migrations, seeding, scheduled work and the web server. PostgreSQL is the system of record and Redis provides operational cache state. Both services can be deployed as HelmForge dependencies or supplied externally through Secret-backed contracts. See DESIGN.md for topology diagrams, boundaries and the singleton rationale.

Install

helm install ghostfolio oci://ghcr.io/helmforgedev/helm/ghostfolio \
  --namespace ghostfolio \
  --create-namespace

The first registered account becomes the administrator. Keep the installation private until that registration is complete.

Configuration

containerPorts.http configures the real Ghostfolio HTTP listener through the official PORT environment variable. service.port independently controls the Kubernetes Service port and targets the named http container port. Both default to 3333. Because the application runs as UID 1000 with every Linux capability dropped, the listener must remain at or above 1024.

ValueDefaultPurpose
containerPorts.http3333Ghostfolio process listener
service.port3333Kubernetes Service-facing port
commonAnnotations{}Chart-wide annotations; resource-specific annotations take precedence
ghostfolio.rootUrlderivedCanonical public origin and OIDC callback base
ghostfolio.trustProxy""Exact Express trusted-proxy policy
ghostfolio.existingSecret""Stable access-token salt and JWT secret
postgresql.enabledtrueDeploy the HelmForge PostgreSQL dependency
redis.enabledtrueDeploy the HelmForge Redis dependency
database.external.enabledfalseUse complete external PostgreSQL URL Secrets
redis.external.enabledfalseUse an external Redis endpoint and password Secret
serviceAccount.automountServiceAccountTokenfalseKeep the Kubernetes API token unmounted
networkPolicy.enabledtrueApply product-aware ingress and egress isolation

Every value and nested contract is documented in values.yaml and validated by values.schema.json.

Examples

Use examples/production.yaml as a hardened starting point and examples/oidc.yaml for experimental OIDC. Store all application identity, provider, database and Redis credentials in Kubernetes Secrets or native ExternalSecret resources.

Runtime model

Ghostfolio's official entrypoint runs Prisma migrations, seeds the database, and starts the NestJS server. Scheduled portfolio work also runs in the application process. Because upstream does not document migration or cron leader election, the chart enforces one replica and a Recreate rollout.

The default topology includes HelmForge PostgreSQL and Redis dependencies for a complete installation. Use managed services for production by disabling both dependencies and configuring the external Secret contracts described in docs/external-services.md.

Image provenance

The default is the official release image docker.io/ghostfolio/ghostfolio:3.100.0. Its manifest was verified for Linux amd64, arm/v7, and arm64 on 2026-11-19.

Ghostfolio 3.100.0 upgrades MCP dependencies and the Node.js engine baseline. Between 3.88.0 and 3.100.0 upstream deprecated several singular-noun API endpoints in favor of plural equivalents (platforms, auth-devices, exchange-rates, symbols), improved mobile layout and localized number formatting in charts, extended subscription interstitials, and updated the official Docker Compose Redis image reference to redis:8-alpine. No breaking Helm configuration change is required. Review the 3.100.0 release notes before production rollout.

Health contract

  • Startup and liveness: GET /api/v1/health/liveness, independent of state services and safe during dependency outages.
  • Readiness: GET /api/v1/health, checks PostgreSQL and Redis. Its timeout is at least five seconds because that is the upstream Redis health bound.

The chart waits for both TCP listeners before starting the upstream entrypoint, but it does not replace authenticated migrations or readiness checks with TCP.

Secrets

By default, the chart creates random ACCESS_TOKEN_SALT and JWT_SECRET_KEY values and preserves them with Helm lookup. For deterministic GitOps or disaster recovery, set ghostfolio.existingSecret and provide both configured keys. Rotating either value invalidates authentication material.

OIDC client credentials, external database URLs, Redis passwords, and market data API keys always belong in Secrets. The canonical externalSecrets.items contract can materialize any of them through External Secrets Operator.

Public exposure

Ingress and Gateway API are opt-in and mutually exclusive. Set ghostfolio.rootUrl to the canonical HTTPS origin in production. The chart can derive it from the first Ingress host or HTTPRoute hostname, but an explicit value makes OIDC callback behavior unambiguous. Set ghostfolio.trustProxy to the exact Express proxy trust policy for the chosen ingress path.

Network policy

The default policy permits namespace-local HTTP ingress, DNS, the bundled data services, and public HTTP/HTTPS for Ghostfolio market-data providers. Public egress excludes private and special-use ranges. External private PostgreSQL and Redis services therefore require networkPolicyPeers or extraEgress.

State and recovery

PostgreSQL is the system of record. The application has no chart-owned data PVC. Redis persistence supports cache continuity but does not replace a PostgreSQL backup. Before upgrades:

  1. Create a transactionally consistent PostgreSQL backup.
  2. Record the Ghostfolio image and chart versions.
  3. Preserve the application Secret and external credentials.
  4. Restore into an isolated namespace and verify login, account history, holdings, and provider refresh before declaring recovery successful.

See docs/operations.md for rollout and recovery details.

Security

The application and dependency-wait containers run without root privileges or added capabilities. Ghostfolio receives no Kubernetes API token and can write only to its bounded temporary and npm-cache volumes. The default NetworkPolicy permits DNS, bundled state services and public HTTP/HTTPS market-data traffic; private external destinations require explicit peers. Keep first-user registration private and use HTTPS for every public endpoint.

Key values

ValueDefaultPurpose
image.tag3.100.0Pinned official application release
replicaCount1Enforced singleton migration and cron owner
ghostfolio.rootUrlderivedCanonical external origin
ghostfolio.existingSecret""Retained access-token salt and JWT secret
oidc.enabledfalseExperimental upstream OpenID Connect
postgresql.enabledtrueBundled PostgreSQL dependency
redis.enabledtrueBundled Redis dependency
database.external.enabledfalseComplete external DATABASE_URL Secret mode
redis.external.enabledfalseExternal Redis mode
networkPolicy.enabledtrueProduct-aware ingress and egress isolation
service.ipFamilyPolicy""Cluster default or explicit dual-stack policy
gatewayAPI.rootUrlSchemehttpsScheme used for an HTTPRoute-derived public URL

Every value and nested contract is documented in values.yaml and validated by values.schema.json.

Validation scenarios

The chart carries runtime scenarios for default services, Ingress, Gateway API, dual-stack, OIDC, External Secrets, and external PostgreSQL/Redis. The product-specific smoke test proves migrations and seed ran, both official health endpoints return OK, the runtime is singleton, and application identity is backed by a nonempty Secret.

Troubleshooting

  • If startup stalls, inspect both dependency-wait init containers and confirm the PostgreSQL and Redis Services have endpoints.
  • If readiness fails while liveness succeeds, inspect /api/v1/health and the database and Redis credentials; dependency loss intentionally withdraws traffic without restarting the process.
  • If OIDC redirects fail, align ghostfolio.rootUrl, the registered callback and the proxy trust policy.
  • If NetworkPolicy blocks an external private service, add the appropriate networkPolicyPeers or native networkPolicy.extraEgress rule.
  • Keep replicaCount=1; the chart rejects additional replicas because upstream does not document migration or scheduled-job leader election.

Security Scan: ghostfolio

Security scan results use the same Kubescape policy set as HelmForge CI.

FrameworkScore
MITRE100.00%
NSA91.25%
SOC 294.29%
Aggregate resource score93.83%

Kubescape reported no critical or high-severity failures. Remaining medium and low findings come from the maintained PostgreSQL and Redis dependency workloads, including their independent NetworkPolicy, service-account, seccomp, and writable-database-filesystem contracts.

Limitations

  • OIDC and health endpoints are marked experimental by upstream.
  • No upstream Prometheus endpoint is documented, so the chart does not create a misleading ServiceMonitor.
  • Horizontal application scaling is intentionally unsupported until Ghostfolio documents safe migration and scheduled-job coordination.
  • The chart cannot validate external data-provider availability or correctness.

Additional documentation

  • Design
  • External PostgreSQL and Redis
  • OIDC
  • Operations and recovery
  • Production example

Deploy ghostfolio with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ghostfolio on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartghostfolio is pinned at v1.1.7 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply