Skip to content
Ghostfolio icon
v1.1.8App: v3.100.0Pinned DigestS3 Backup Ready

Production Helm chart • Apache-2.0 • Zero-Root • Verified on Kubernetes v1.33-v1.36+

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.

Value Default Purpose
containerPorts.http 3333 Ghostfolio process listener
service.port 3333 Kubernetes Service-facing port
commonAnnotations {} Chart-wide annotations; resource-specific annotations take precedence
ghostfolio.rootUrl derived Canonical public origin and OIDC callback base
ghostfolio.trustProxy "" Exact Express trusted-proxy policy
ghostfolio.existingSecret "" Stable access-token salt and JWT secret
postgresql.enabled true Deploy the HelmForge PostgreSQL dependency
redis.enabled true Deploy the HelmForge Redis dependency
database.external.enabled false Use complete external PostgreSQL URL Secrets
redis.external.enabled false Use an external Redis endpoint and password Secret
serviceAccount.automountServiceAccountToken false Keep the Kubernetes API token unmounted
networkPolicy.enabled true Apply 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.

Official Schema

Values & Configuration Reference

All schema parameters, types, defaults, and allowed values are extracted directly from the chart repository. Filter and search them in the interactive reference below or customize in Values Studio.

View Values Schema

|---|---:|---| | image.tag | 3.100.0 | Pinned official application release | | replicaCount | 1 | Enforced singleton migration and cron owner | | ghostfolio.rootUrl | derived | Canonical external origin | | ghostfolio.existingSecret | "" | Retained access-token salt and JWT secret | | oidc.enabled | false | Experimental upstream OpenID Connect | | postgresql.enabled | true | Bundled PostgreSQL dependency | | redis.enabled | true | Bundled Redis dependency | | database.external.enabled | false | Complete external DATABASE_URL Secret mode | | redis.external.enabled | false | External Redis mode | | networkPolicy.enabled | true | Product-aware ingress and egress isolation | | service.ipFamilyPolicy | "" | Cluster default or explicit dual-stack policy | | gatewayAPI.rootUrlScheme | https | Scheme 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.

Framework Score
MITRE 100.00%
NSA 91.25%
SOC 2 94.29%
Aggregate resource score 93.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

System Architecture

DESIGN.md Synced

Verified architecture contract rendered dynamically from GitHub DESIGN.md

flowchart LR
    User[Browser or API client] --> Service[Ghostfolio Service]
    Service --> App[Ghostfolio pod]
    App --> PostgreSQL[(HelmForge PostgreSQL)]
    App --> Redis[(HelmForge Redis)]
    Identity[Application identity Secret] --> App
    Providers[Public market-data providers] <-->|HTTPS| App
Official Contractvalues.schema.json

Ghostfolio Values Schema Reference

Official schema parameters, default values, and types extracted directly from the chart repository.

151 parametersValues Studio

Global(1)

ParameterTypeDefaultDescription
globalobject-Global values consumed by dependencies.

Name Override(1)

ParameterTypeDefaultDescription
nameOverridestring-Chart configuration parameter

Fullname Override(1)

ParameterTypeDefaultDescription
fullnameOverridestring-Chart configuration parameter

Common Labels(1)

ParameterTypeDefaultDescription
commonLabelsobject-Chart configuration parameter

Common Annotations(1)

ParameterTypeDefaultDescription
commonAnnotationsobject-Chart configuration parameter

Replica Count(1)

ParameterTypeDefaultDescription
replicaCountinteger-Chart configuration parameter

Image(3)

ParameterTypeDefaultDescription
image.repositorystring-Chart configuration parameter
image.tagstring-Chart configuration parameter
image.pullPolicyselect-Chart configuration parameter
Allowed:AlwaysIfNotPresentNever

Image Pull Secrets(1)

ParameterTypeDefaultDescription
imagePullSecretsarray-Chart configuration parameter

Ghostfolio(14)

ParameterTypeDefaultDescription
ghostfolio.rootUrlstring-Chart configuration parameter
ghostfolio.trustProxystringintegerboolean-Chart configuration parameter
ghostfolio.authTokenEnabledboolean-Chart configuration parameter
ghostfolio.cronEnabledboolean-Chart configuration parameter
ghostfolio.securityHeadersEnabledboolean-Chart configuration parameter
ghostfolio.mcpEnabledboolean-Chart configuration parameter
ghostfolio.rateLimitingEnabledboolean-Chart configuration parameter
ghostfolio.readOnlyModeEnabledboolean-Chart configuration parameter
ghostfolio.logLevelsarray-Chart configuration parameter
ghostfolio.existingSecretstring-Chart configuration parameter
ghostfolio.accessTokenSaltKeystring-Chart configuration parameter
ghostfolio.jwtSecretKeystring-Chart configuration parameter
ghostfolio.extraEnvarray-Chart configuration parameter
ghostfolio.extraEnvFromarray-Chart configuration parameter

Oidc(10)

ParameterTypeDefaultDescription
oidc.enabledboolean-Chart configuration parameter
oidc.issuerstring-Chart configuration parameter
oidc.clientIdstring-Chart configuration parameter
oidc.existingSecretstring-Chart configuration parameter
oidc.clientSecretKeystring-Chart configuration parameter
oidc.scopesarray-Chart configuration parameter
oidc.callbackUrlstring-Chart configuration parameter
oidc.authorizationUrlstring-Chart configuration parameter
oidc.tokenUrlstring-Chart configuration parameter
oidc.userInfoUrlstring-Chart configuration parameter

Database(8)

ParameterTypeDefaultDescription
database.external.enabledboolean-Chart configuration parameter
database.external.existingSecretstring-Chart configuration parameter
database.external.urlKeystring-Chart configuration parameter
database.external.directUrlKeystring-Chart configuration parameter
database.external.directUrlEnabledboolean-Chart configuration parameter
database.external.hoststring-Chart configuration parameter
database.external.portinteger-Chart configuration parameter
database.external.networkPolicyPeersarray-Chart configuration parameter

Postgresql(14)

ParameterTypeDefaultDescription
postgresql.enabledboolean-Chart configuration parameter
postgresql.architectureselect-Chart configuration parameter
Allowed:standalonereplication
postgresql.auth.databasestring-Chart configuration parameter
postgresql.auth.usernamestring-Chart configuration parameter
postgresql.auth.passwordstring-Chart configuration parameter
postgresql.auth.postgresPasswordstring-Chart configuration parameter
postgresql.auth.existingSecretstring-Chart configuration parameter
postgresql.auth.existingSecretUserPasswordKeystring-Chart configuration parameter
postgresql.standalone.persistence.enabledboolean-Chart configuration parameter
postgresql.standalone.persistence.sizestring-Chart configuration parameter
postgresql.standalone.resources.requests.cpustringnumber-Chart configuration parameter
postgresql.standalone.resources.requests.memorystringnumber-Chart configuration parameter
postgresql.standalone.resources.limits.cpustringnumber-Chart configuration parameter
postgresql.standalone.resources.limits.memorystringnumber-Chart configuration parameter

Redis(19)

ParameterTypeDefaultDescription
redis.enabledboolean-Chart configuration parameter
redis.architectureselect-Chart configuration parameter
Allowed:standalonereplication
redis.auth.enabledboolean-Chart configuration parameter
redis.auth.passwordstring-Chart configuration parameter
redis.auth.existingSecretstring-Chart configuration parameter
redis.auth.existingSecretPasswordKeystring-Chart configuration parameter
redis.standalone.persistence.enabledboolean-Chart configuration parameter
redis.standalone.persistence.sizestring-Chart configuration parameter
redis.standalone.resources.requests.cpustringnumber-Chart configuration parameter
redis.standalone.resources.requests.memorystringnumber-Chart configuration parameter
redis.standalone.resources.limits.cpustringnumber-Chart configuration parameter
redis.standalone.resources.limits.memorystringnumber-Chart configuration parameter
redis.external.enabledboolean-Chart configuration parameter
redis.external.hoststring-Chart configuration parameter
redis.external.portinteger-Chart configuration parameter
redis.external.databaseinteger-Chart configuration parameter
redis.external.existingSecretstring-Chart configuration parameter
redis.external.passwordKeystring-Chart configuration parameter
redis.external.networkPolicyPeersarray-Chart configuration parameter

External Secrets(3)

ParameterTypeDefaultDescription
externalSecrets.enabledboolean-Chart configuration parameter
externalSecrets.refreshIntervalstring-Chart configuration parameter
externalSecrets.itemsarray-Chart configuration parameter

Service Account(4)

ParameterTypeDefaultDescription
serviceAccount.createboolean-Chart configuration parameter
serviceAccount.namestring-Chart configuration parameter
serviceAccount.annotationsobject-Chart configuration parameter
serviceAccount.automountServiceAccountTokenbooleanfalseChart configuration parameter

Service & Networking(5)

ParameterTypeDefaultDescription
service.typeselect-Chart configuration parameter
Allowed:ClusterIPNodePortLoadBalancer
service.portinteger-Chart configuration parameter
service.annotationsobject-Chart configuration parameter
service.ipFamilyPolicyselect-Chart configuration parameter
Allowed:SingleStackPreferDualStackRequireDualStack
service.ipFamiliesarray-Chart configuration parameter

Ingress(5)

ParameterTypeDefaultDescription
ingress.enabledboolean-Chart configuration parameter
ingress.ingressClassNamestring-Chart configuration parameter
ingress.annotationsobject-Chart configuration parameter
ingress.hostsarray-Chart configuration parameter
ingress.tlsarray-Chart configuration parameter

Gateway API(3)

ParameterTypeDefaultDescription
gatewayAPI.enabledboolean-Chart configuration parameter
gatewayAPI.rootUrlSchemeselect-Chart configuration parameter
Allowed:httphttps
gatewayAPI.httpRoutesarray-Chart configuration parameter

Health Probes(15)

ParameterTypeDefaultDescription
probes.startup.enabledboolean-Chart configuration parameter
probes.startup.initialDelaySecondsinteger-Chart configuration parameter
probes.startup.periodSecondsinteger-Chart configuration parameter
probes.startup.timeoutSecondsinteger-Chart configuration parameter
probes.startup.failureThresholdinteger-Chart configuration parameter
probes.liveness.enabledboolean-Chart configuration parameter
probes.liveness.initialDelaySecondsinteger-Chart configuration parameter
probes.liveness.periodSecondsinteger-Chart configuration parameter
probes.liveness.timeoutSecondsinteger-Chart configuration parameter
probes.liveness.failureThresholdinteger-Chart configuration parameter
probes.readiness.enabledboolean-Chart configuration parameter
probes.readiness.initialDelaySecondsinteger-Chart configuration parameter
probes.readiness.periodSecondsinteger-Chart configuration parameter
probes.readiness.timeoutSecondsinteger-Chart configuration parameter
probes.readiness.failureThresholdinteger-Chart configuration parameter

Wait For Services(8)

ParameterTypeDefaultDescription
waitForServices.image.repositorystring-Chart configuration parameter
waitForServices.image.tagstring-Chart configuration parameter
waitForServices.image.pullPolicyselect-Chart configuration parameter
Allowed:AlwaysIfNotPresentNever
waitForServices.timeoutSecondsinteger-Chart configuration parameter
waitForServices.resources.requests.cpustringnumber-Chart configuration parameter
waitForServices.resources.requests.memorystringnumber-Chart configuration parameter
waitForServices.resources.limits.cpustringnumber-Chart configuration parameter
waitForServices.resources.limits.memorystringnumber-Chart configuration parameter

Container Ports(1)

ParameterTypeDefaultDescription
containerPorts.httpinteger-Real Ghostfolio HTTP process listener configured through PORT.

Resources(4)

ParameterTypeDefaultDescription
resources.requests.cpustringnumber-Chart configuration parameter
resources.requests.memorystringnumber-Chart configuration parameter
resources.limits.cpustringnumber-Chart configuration parameter
resources.limits.memorystringnumber-Chart configuration parameter

Pod Security(7)

ParameterTypeDefaultDescription
podSecurityContext.runAsNonRootboolean-Chart configuration parameter
podSecurityContext.runAsUserinteger-Chart configuration parameter
podSecurityContext.runAsGroupinteger-Chart configuration parameter
podSecurityContext.fsGroupinteger-Chart configuration parameter
podSecurityContext.fsGroupChangePolicyselect-Chart configuration parameter
Allowed:AlwaysOnRootMismatch
podSecurityContext.seccompProfile.typeselect-Chart configuration parameter
Allowed:RuntimeDefaultLocalhostUnconfined
podSecurityContext.seccompProfile.localhostProfilestring-Chart configuration parameter

Container Security(4)

ParameterTypeDefaultDescription
securityContext.allowPrivilegeEscalationboolean-Chart configuration parameter
securityContext.readOnlyRootFilesystemboolean-Chart configuration parameter
securityContext.capabilities.droparray-Chart configuration parameter
securityContext.capabilities.addarray-Chart configuration parameter

Runtime Storage(1)

ParameterTypeDefaultDescription
runtimeStorage.sizeLimitstring-Chart configuration parameter

Termination Grace Period Seconds(1)

ParameterTypeDefaultDescription
terminationGracePeriodSecondsinteger-Chart configuration parameter

Network Policy(6)

ParameterTypeDefaultDescription
networkPolicy.enabledboolean-Chart configuration parameter
networkPolicy.egressIsolationboolean-Chart configuration parameter
networkPolicy.ingressFromarray-Chart configuration parameter
networkPolicy.dnsEgressarray-Chart configuration parameter
networkPolicy.allowPublicInternetboolean-Chart configuration parameter
networkPolicy.extraEgressarray-Chart configuration parameter

Pod Labels(1)

ParameterTypeDefaultDescription
podLabelsobject-Chart configuration parameter

Pod Annotations(1)

ParameterTypeDefaultDescription
podAnnotationsobject-Chart configuration parameter

Node Selector(1)

ParameterTypeDefaultDescription
nodeSelectorobject-Chart configuration parameter

Tolerations(1)

ParameterTypeDefaultDescription
tolerationsarray-Chart configuration parameter

Affinity(1)

ParameterTypeDefaultDescription
affinityobject-Chart configuration parameter

Topology Spread Constraints(1)

ParameterTypeDefaultDescription
topologySpreadConstraintsarray-Chart configuration parameter

Priority Class Name(1)

ParameterTypeDefaultDescription
priorityClassNamestring-Chart configuration parameter

Extra Volumes(1)

ParameterTypeDefaultDescription
extraVolumesarray-Chart configuration parameter

Extra Volume Mounts(1)

ParameterTypeDefaultDescription
extraVolumeMountsarray-Chart configuration parameter