Skip to content
Strava Statistics icon
v1.2.2App: v5.9.1Pinned DigestS3 Backup Ready

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

Dreeve Helm Chart

Deploy Dreeve, formerly Statistics for Strava, on Kubernetes with the official robiningelbrecht/dreeve image. Dreeve is a self-hosted fitness dashboard backed by SQLite and supports activity-file imports or the Strava API.

Features

  • Official Dreeve image pinned to a released version
  • Web application and mandatory daemon in one pod, sharing the SQLite database
  • Persistent database, build cache, uploaded files, gear assets, and watch directory
  • File-import and Strava API modes
  • Admin credentials and runtime secrets from chart-managed or existing Secrets
  • Optional External Secrets, Ingress, Gateway API, NetworkPolicy, and PodDisruptionBudget resources
  • Non-root execution, read-only root filesystems, RuntimeDefault seccomp, and disabled service account token mounting
  • Startup, readiness, and liveness probes based on the upstream runtime contracts

Architecture

flowchart LR
  user[User] --> edge[Ingress or HTTPRoute]
  edge --> service[Service]
  service --> app[Dreeve web container]
  daemon[Dreeve daemon container] --> sqlite[(SQLite database)]
  app --> sqlite
  app --> data[(Persistent data volume)]
  daemon --> data
  app --> secret[Dreeve and Strava Secrets]
  daemon --> secret
  eso[External Secrets Operator] -. optional .-> secret

The Deployment uses Recreate and one replica. The web and daemon containers remain in the same pod so an RWO volume can safely back SQLite without concurrent replicas.

Installation

HTTPS Repository

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install dreeve helmforge/strava-statistics -f values.yaml

OCI Registry

helm install dreeve oci://ghcr.io/helmforgedev/helm/strava-statistics -f values.yaml

Configuration Examples

Create an admin password hash with the same image version before production installation:

docker run --rm -it --entrypoint bin/console robiningelbrecht/dreeve:v5.9.1 security:hash-password

Then provide unique application secrets and, when using stravaApi, Strava credentials:

dreeve:
  appUrl: https://dreeve.example.com
  appSecret: replace-with-a-long-random-value
  adminUsername: admin
  adminPasswordHash: '$2y$13$replace-with-the-generated-bcrypt-hash'
  importMode: stravaApi

strava:
  clientId: "12345"
  clientSecret: replace-me
  refreshToken: replace-me

When dreeve.appSecret is empty, the chart generates a 64-character value and reuses the value stored in the live Secret during upgrades. Set dreeve.appSecret or dreeve.existingSecret explicitly for reproducible GitOps and offline rendering. The mock-* Strava defaults exist only so the chart can be rendered and tested. Never use them in a production installation.

Existing Secrets

Keep Dreeve and Strava credentials in separate existing Secrets:

dreeve:
  existingSecret: dreeve-runtime
  existingSecretAppSecretKey: app-secret
  existingSecretAdminPasswordHashKey: admin-password-hash
  existingSecretApiKeyKey: api-key

strava:
  existingSecret: strava-credentials
  existingSecretClientIdKey: client-id
  existingSecretClientSecretKey: client-secret
  existingSecretRefreshTokenKey: refresh-token

The API key is optional. If its key is absent, Dreeve keeps the activity-upload API closed.

File Import Mode

File mode does not require Strava credentials:

dreeve:
  importMode: files
  appUrl: https://dreeve.example.com
  appSecret: replace-with-a-long-random-value
  adminPasswordHash: '$2y$13$replace-with-the-generated-bcrypt-hash'

strava:
  clientId: ""
  clientSecret: ""
  refreshToken: ""

Both containers mount the shared watch directory at /var/www/watch.

External Secrets

externalSecrets.items can create either or both existing Secrets. See examples/external-secrets.yaml for a reusable mapping.

Gateway API

gatewayAPI:
  enabled: true
  httpRoutes:
    - name: web
      parentRefs:
        - name: public
          namespace: gateway-system
      hostnames:
        - dreeve.example.com

Security

The default pod runs as numeric UID/GID 82, uses RuntimeDefault seccomp, and mounts writable paths through bounded PVC or emptyDir volumes. Both application containers use read-only root filesystems and disable privilege escalation. The web container adds only NET_BIND_SERVICE, which is required by the upstream FrankenPHP binary capability and is the sole capability permitted by the Kubernetes Restricted Pod Security Standard.

For production:

  • replace all mock secrets or use existing Secrets/External Secrets;
  • set dreeve.appUrl to the public root URL and terminate TLS at Ingress or Gateway;
  • restrict the admin route with dreeve.adminAllowedIps or an edge access policy;
  • enable and configure networkPolicy only after declaring required ingress, DNS, Strava, map, and integration egress;
  • snapshot the PVC before upgrades and test recovery;
  • keep the single-replica Recreate strategy because SQLite is single-writer.
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.repository | docker.io/robiningelbrecht/dreeve | Official Dreeve image | | image.tag | v5.9.1 | Pinned Dreeve release | | dreeve.appUrl | http://localhost:8080 | Public root URL | | dreeve.importMode | stravaApi | stravaApi or files | | dreeve.appSecret | "" | Admin-session signing secret; generated and preserved when empty | | dreeve.adminPasswordHash | "" | Bcrypt admin password hash | | dreeve.existingSecret | "" | Existing Secret for Dreeve runtime secrets | | strava.clientId | mock-client-id | Validation-only Strava client ID default | | strava.clientSecret | mock-client-secret | Validation-only Strava client secret default | | strava.refreshToken | mock-refresh-token | Validation-only Strava refresh token default | | persistence.enabled | true | Persist SQLite and shared runtime data | | persistence.size | 2Gi | Shared PVC request | | daemon.enabled | true | Run the mandatory Dreeve daemon sidecar | | resources.limits.cpu | 2 | Web CPU limit | | daemon.resources.limits.cpu | 2 | Daemon CPU limit | | service.port | 80 | Kubernetes Service port | | networkPolicy.enabled | false | Render an explicit NetworkPolicy | | podDisruptionBudget.enabled | false | Protect the single pod from voluntary disruption |

The complete value contract and migration guidance are in docs/configuration.md.

Upgrade Notes

v5.6.2 includes the upstream fix for the October 2026 critical PHP remote-code-execution vulnerability. Earlier Dreeve releases must be upgraded. The former robiningelbrecht/strava-statistics:v5.0.0 tag now serves only an upstream rename notice, so this chart uses the current official robiningelbrecht/dreeve repository.

When migrating from a v4 chart release, keep strava.config mounted for the first successful v5 startup so Dreeve can copy supported YAML settings into SQLite. Verify the settings in the admin panel, then remove obsolete YAML customizations. Back up the PVC before the upgrade. See the official v4-to-v5 migration guide and v5.6.2 release notes.

Troubleshooting

Pod waits for the database schema

The daemon waits until the web container finishes migrations. Inspect both containers:

kubectl logs deploy/<release>-strava-statistics -c strava-statistics
kubectl logs deploy/<release>-strava-statistics -c daemon

Admin login fails

Confirm ADMIN_PASSWORD_HASH contains the bcrypt hash exactly as generated. Helm values do not require Docker Compose's double-dollar escaping. Also verify that dreeve.appUrl matches the browser URL.

Imports are killed

Dreeve imports can be memory intensive. Increase both the web/daemon memory limit and the PHP memory_limit contract if the container reports OOMKilled; the chart defaults the PHP limit to 4G and container limits to 5Gi.

PVC permission errors

The bootstrap init container creates the shared storage layout with the pod's filesystem group. Confirm the storage class honors fsGroup and that an existing claim is writable by UID/GID 82.

Limitations

  • SQLite requires one pod and Recreate; horizontal scaling is unsupported.
  • The daemon is mandatory for v5 background processing.
  • The chart does not install Ingress, Gateway API, or External Secrets controllers.
  • NetworkPolicy egress destinations depend on enabled integrations and must be supplied by the operator.

More Information

Security Scan: strava-statistics

Framework Score
MITRE + NSA + SOC2 72.72727%

Security posture acceptable.

System Architecture

DESIGN.md Synced

Verified architecture contract rendered dynamically from GitHub DESIGN.md

flowchart LR
  user[User] --> ingress[Ingress or HTTPRoute]
  ingress --> svc[Service]
  svc --> app[Dreeve web container]
  daemon[Dreeve daemon container] --> pvc[(Shared SQLite and data PVC)]
  app --> pvc
  app --> cfg[Legacy migration config and PHP settings]
  app --> secret[Dreeve and Strava Secrets]
  daemon --> secret
  eso[External Secrets Operator] -. optional .-> secret
  app --> strava[Strava API when enabled]
  daemon --> strava
Official Contractvalues.schema.json

Strava Statistics Values Schema Reference

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

136 parametersValues Studio

Global(1)

ParameterTypeDefaultDescription
globalobject-Chart configuration parameter

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

Annotations(1)

ParameterTypeDefaultDescription
annotationsobject-Chart configuration parameter

Deployment Annotations(1)

ParameterTypeDefaultDescription
deploymentAnnotationsobject-Chart configuration parameter

Image(3)

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

Image Pull Secrets(1)

ParameterTypeDefaultDescription
imagePullSecretsarray-Chart configuration parameter

Dreeve(12)

ParameterTypeDefaultDescription
dreeve.appUrlstring-Chart configuration parameter
dreeve.importModestring-Chart configuration parameter
Allowed:filesstravaApi
dreeve.appSecretstring-Chart configuration parameter
dreeve.adminUsernamestring-Chart configuration parameter
dreeve.adminPasswordHashstring-Chart configuration parameter
dreeve.apiKeystring-Chart configuration parameter
dreeve.existingSecretstring-Chart configuration parameter
dreeve.existingSecretAppSecretKeystring-Chart configuration parameter
dreeve.existingSecretAdminPasswordHashKeystring-Chart configuration parameter
dreeve.existingSecretApiKeyKeystring-Chart configuration parameter
dreeve.adminAllowedIpsstring-Chart configuration parameter
dreeve.trustedProxiesstring-Chart configuration parameter

Strava(11)

ParameterTypeDefaultDescription
strava.portinteger-Chart configuration parameter
strava.clientIdstring-Chart configuration parameter
strava.clientSecretstring-Chart configuration parameter
strava.refreshTokenstring-Chart configuration parameter
strava.existingSecretstring-Chart configuration parameter
strava.existingSecretClientIdKeystring-Chart configuration parameter
strava.existingSecretClientSecretKeystring-Chart configuration parameter
strava.existingSecretRefreshTokenKeystring-Chart configuration parameter
strava.timezonestring-Chart configuration parameter
strava.configstring-Chart configuration parameter
strava.extraEnvarray-Chart configuration parameter

Daemon(23)

ParameterTypeDefaultDescription
daemon.enabledboolean-Chart configuration parameter
daemon.securityContext.allowPrivilegeEscalationboolean-Chart configuration parameter
daemon.securityContext.readOnlyRootFilesystemboolean-Chart configuration parameter
daemon.securityContext.capabilities.droparray-Chart configuration parameter
daemon.resources.requests.cpustring-Chart configuration parameter
daemon.resources.requests.memorystring-Chart configuration parameter
daemon.resources.limits.cpustring-Chart configuration parameter
daemon.resources.limits.memorystring-Chart configuration parameter
daemon.probes.startup.enabledboolean-Chart configuration parameter
daemon.probes.startup.initialDelaySecondsinteger-Chart configuration parameter
daemon.probes.startup.periodSecondsinteger-Chart configuration parameter
daemon.probes.startup.timeoutSecondsinteger-Chart configuration parameter
daemon.probes.startup.failureThresholdinteger-Chart configuration parameter
daemon.probes.liveness.enabledboolean-Chart configuration parameter
daemon.probes.liveness.initialDelaySecondsinteger-Chart configuration parameter
daemon.probes.liveness.periodSecondsinteger-Chart configuration parameter
daemon.probes.liveness.timeoutSecondsinteger-Chart configuration parameter
daemon.probes.liveness.failureThresholdinteger-Chart configuration parameter
daemon.probes.readiness.enabledboolean-Chart configuration parameter
daemon.probes.readiness.initialDelaySecondsinteger-Chart configuration parameter
daemon.probes.readiness.periodSecondsinteger-Chart configuration parameter
daemon.probes.readiness.timeoutSecondsinteger-Chart configuration parameter
daemon.probes.readiness.failureThresholdinteger-Chart configuration parameter

Persistence(9)

ParameterTypeDefaultDescription
persistence.enabledboolean-Chart configuration parameter
persistence.sizestring-Chart configuration parameter
persistence.storageClassstring-Chart configuration parameter
persistence.accessModesarray-Chart configuration parameter
persistence.existingClaimstring-Chart configuration parameter
persistence.bootstrap.enabledboolean-Chart configuration parameter
persistence.bootstrap.image.repositorystring-Chart configuration parameter
persistence.bootstrap.image.tagstring-Chart configuration parameter
persistence.bootstrap.image.pullPolicystring-Chart configuration parameter
Allowed:AlwaysIfNotPresentNever

Service Account(4)

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

Service & Networking(5)

ParameterTypeDefaultDescription
service.typestring-Chart configuration parameter
Allowed:ClusterIPNodePortLoadBalancer
service.portinteger-Chart configuration parameter
service.annotationsobject-Chart configuration parameter
service.ipFamilyPolicystring-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

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

Resources(4)

ParameterTypeDefaultDescription
resources.requests.cpustring-Chart configuration parameter
resources.requests.memorystring-Chart configuration parameter
resources.limits.cpustring-Chart configuration parameter
resources.limits.memorystring-Chart configuration parameter

Pod Security(6)

ParameterTypeDefaultDescription
podSecurityContext.runAsNonRootboolean-Chart configuration parameter
podSecurityContext.runAsUserinteger-Chart configuration parameter
podSecurityContext.runAsGroupinteger-Chart configuration parameter
podSecurityContext.fsGroupinteger-Chart configuration parameter
podSecurityContext.fsGroupChangePolicystring-Chart configuration parameter
Allowed:AlwaysOnRootMismatch
podSecurityContext.seccompProfile.typestring-Chart configuration parameter
Allowed:RuntimeDefaultLocalhostUnconfined

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 Volumes(4)

ParameterTypeDefaultDescription
runtimeVolumes.varSizeLimitstring-Chart configuration parameter
runtimeVolumes.caddyConfigSizeLimitstring-Chart configuration parameter
runtimeVolumes.caddyDataSizeLimitstring-Chart configuration parameter
runtimeVolumes.tmpSizeLimitstring-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

Termination Grace Period Seconds(1)

ParameterTypeDefaultDescription
terminationGracePeriodSecondsinteger-Chart configuration parameter

Pod Labels(1)

ParameterTypeDefaultDescription
podLabelsobject-Chart configuration parameter

Pod Annotations(1)

ParameterTypeDefaultDescription
podAnnotationsobject-Chart configuration parameter

Extra Volumes(1)

ParameterTypeDefaultDescription
extraVolumesarray-Chart configuration parameter

Extra Volume Mounts(1)

ParameterTypeDefaultDescription
extraVolumeMountsarray-Chart configuration parameter

Extra Manifests(1)

ParameterTypeDefaultDescription
extraManifestsarray-Chart configuration parameter

Network Policy(3)

ParameterTypeDefaultDescription
networkPolicy.enabledboolean-Chart configuration parameter
networkPolicy.ingressarray-Chart configuration parameter
networkPolicy.egressarray-Chart configuration parameter

Pod Disruption Budget(2)

ParameterTypeDefaultDescription
podDisruptionBudget.enabledboolean-Chart configuration parameter
podDisruptionBudget.minAvailableany-Chart configuration parameter

Gateway API(2)

ParameterTypeDefaultDescription
gatewayAPI.enabledboolean-Chart configuration parameter
gatewayAPI.httpRoutesarray-Chart configuration parameter

Gateway Api(2)

ParameterTypeDefaultDescription
gatewayApi.enabledboolean-Chart configuration parameter
gatewayApi.httpRoutesarray-Chart configuration parameter

External Secrets(3)

ParameterTypeDefaultDescription
externalSecrets.enabledboolean-Chart configuration parameter
externalSecrets.apiVersionstring-Chart configuration parameter
Allowed:external-secrets.io/v1external-secrets.io/v1beta1
externalSecrets.itemsarray-Chart configuration parameter