medikeep

by HelmForge

Helm chartv2.1.4App 0.75.0Apache-2.0Verified publisher

Self-hosted personal medical records manager with PostgreSQL persistence

About this chart

MediKeep Helm Chart

Deploy MediKeep, a self-hosted personal medical records application built with React and FastAPI.

This chart packages the official ghcr.io/afairgiant/medikeep:v0.75.0 image with PostgreSQL, persistent uploads and backups, Kubernetes Ingress, Gateway API, NetworkPolicy, and External Secrets Operator integration.

Upgrade Notes

MediKeep v0.72.0 adds visit relationships, broader advanced search and report controls, and fixes health responses, SSO user identification, user-scoped tag reads and attachment filenames. It does not change the service port, uploads path or authentication environment contract. See authentication configuration and the upstream release. Back up PostgreSQL and uploaded records before upgrading.

The legacy app.port value has been removed. The pinned upstream entrypoint always starts Uvicorn on container port 8000, so that value changed only Kubernetes metadata and could break traffic. Do not use --reuse-values for this migration because it can retain the removed default. Export the user-supplied values, remove app.port from the exported file, and reset old defaults during the upgrade:

helm get values medikeep --namespace medikeep -o yaml > medikeep-user-values.yaml
# Remove app.port from medikeep-user-values.yaml if it is present.
helm upgrade medikeep helmforge/medikeep --namespace medikeep \
  --reset-values -f medikeep-user-values.yaml

Use service.port when clients need a different Kubernetes Service port; the Service continues to target the fixed named http listener.

Install

helm repo add helmforge https://repo.helmforge.dev
helm install medikeep helmforge/medikeep

MediKeep exposes HTTP on port 8000. For local access:

kubectl port-forward svc/medikeep 8000:8000

Configuration

The chart keeps the fixed upstream listener separate from the Kubernetes Service port. This example exposes Service port 8080 while MediKeep continues to listen on container port 8000:

service:
  port: 8080

app:
  timezone: America/New_York
  logLevel: INFO
  debug: false
  enableApiDocs: false

Common configuration groups are:

  • image, app, and probes for the pinned image and application runtime.
  • secrets and medikeep.sso for authentication and stable credentials.
  • postgresql or database.external for the database topology.
  • persistence for uploads, generated backups, and optional persistent logs.
  • service, ingress, and gatewayAPI for exposure.
  • networkPolicy, resources, securityContext, and podSecurityContext for production controls.

See Authentication and Secrets, Exposure, Production, and Storage for complete examples and operational boundaries.

Security and Production Notes

MediKeep stores personal health data. Treat the database, uploads PVC, backups PVC, logs, and Kubernetes Secrets as sensitive.

On fresh installs, upstream creates an admin user with the default password admin123 unless ADMIN_DEFAULT_PASSWORD is set before first startup. For production, set a strong secrets.adminDefaultPassword during the first install or provide secrets.existingSecret with the key configured by secrets.adminDefaultPasswordKey, then rotate the password in the UI. The chart rejects an inline admin123 value for public exposure. Helm cannot inspect the contents of an existing Secret, so operators must ensure that its administrator password key exists and contains a strong value. For public exposure, the pod will not start when that key is missing.

secrets:
  existingSecret: medikeep-runtime
  secretKeyKey: secret-key
  adminDefaultPasswordKey: admin-password

The Secret must contain:

apiVersion: v1
kind: Secret
metadata:
  name: medikeep-runtime
type: Opaque
stringData:
  secret-key: replace-with-a-long-random-secret
  admin-password: replace-with-a-strong-initial-password

PostgreSQL

The chart enables the HelmForge PostgreSQL subchart by default:

postgresql:
  enabled: true
  auth:
    database: medical_records
    username: medapp
    existingSecret: medikeep-postgresql
    existingSecretPostgresPasswordKey: postgres-password
    existingSecretUserPasswordKey: user-password

The referenced Secret must contain the PostgreSQL superuser and application password keys shown above.

To use an external PostgreSQL instance:

postgresql:
  enabled: false

database:
  external:
    host: postgres.example.com
    name: medical_records
    username: medapp
    existingSecret: medikeep-db
    existingSecretPasswordKey: password

Persistence

MediKeep writes to three paths:

  • /app/uploads for uploaded lab files, patient photos, and record attachments.
  • /app/backups for backups generated by the app dashboard or CLI.
  • /app/logs for application logs.

Uploads and backups are persisted by default. Logs use emptyDir by default to avoid retaining sensitive data unless explicitly requested.

persistence:
  uploads:
    size: 20Gi
  backups:
    size: 20Gi
  logs:
    enabled: true
    size: 2Gi

Exposure

Ingress:

ingress:
  enabled: true
  ingressClassName: traefik
  hosts:
    - host: medikeep.example.com
      paths:
        - path: /
          pathType: Prefix

Gateway API:

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

Validation

make validate-chart CHART=medikeep

Security Scan: medikeep

FrameworkScore
MITRE + NSA + SOC292.42424%

Security posture acceptable.

Documentation

  • Authentication and Secrets
  • Exposure
  • Production
  • Storage

Deploy medikeep with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has medikeep 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 chartmedikeep is pinned at v2.1.4 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