ente

by HelmForge

Helm chartv1.1.4App 0472c929b6070e61fecaf2013d47efce2dcda462Apache-2.0Verified publisher

Production-ready Ente Photos with Museum, web applications, PostgreSQL, and external S3 storage

About this chart

Ente

A production-ready Helm chart for Ente, the end-to-end encrypted photo platform. The chart deploys Museum, Ente's web applications, and HelmForge PostgreSQL while using durable external S3-compatible object storage.

Status

  • Maturity: stable
  • Kubernetes: 1.26 or newer
  • Architectures: amd64 and arm64
  • Museum image: official ghcr.io/ente/server, pinned to the upstream production commit
  • Web image: official ghcr.io/ente/web, pinned to an immutable commit
  • License: Apache-2.0 for the chart; Ente is AGPL-3.0

Security Scan: ente

FrameworkScore
MITRE + NSA + SOC289.11616%

Security posture acceptable. Kubescape 4.0.9 reported no critical failures.

Architecture

Ente clients encrypt photos before upload. Museum stores metadata and encryption material in PostgreSQL and returns presigned object-storage URLs. Clients then transfer encrypted objects directly to S3.

flowchart LR
    clients[Browser and mobile clients]
    web[Ente web applications]
    museum[Museum API]
    database[(PostgreSQL)]
    objects[(External S3)]
    clients -->|HTTPS| web
    clients -->|HTTPS| museum
    museum --> database
    museum -->|S3 control operations| objects
    clients -->|presigned S3 URLs| objects

The S3 endpoint must be reachable from both the cluster and end-user clients. The chart deliberately does not bundle MinIO because upstream recommends an external provider for long-lived self-hosted installations.

Features

  • Official, immutable, multi-architecture Museum and web images
  • Stable cryptographic keys preserved through Helm upgrades
  • Existing Secret and External Secrets Operator integration
  • HelmForge PostgreSQL dependency or external PostgreSQL
  • Museum API and singleton job-worker HA topology
  • PostgreSQL advisory-lock gate for serialized HA migrations
  • Photos, Accounts, and Albums enabled by default
  • Auth, Cast, Share, Embed, and Memories optional
  • One hardened web Deployment instead of duplicated images
  • Non-root containers and read-only root filesystems
  • Restricted service accounts without API tokens
  • Startup, readiness, and liveness probes
  • Ingress with per-application hosts and TLS
  • Gateway API HTTPRoutes
  • Dual-stack Services
  • PDB and HPA for API and web workloads
  • NetworkPolicy with S3, SMTP, and private-network extension points
  • Native Museum metrics, ServiceMonitor, and PrometheusRule
  • PostgreSQL dump-to-S3 CronJob
  • Helm test hook for API and enabled web applications
  • Complete JSON schema, CI scenarios, and unit tests

Installation

Helm repository

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install ente helmforge/ente -f values-production.yaml

OCI registry

helm install ente oci://ghcr.io/helmforgedev/helm/ente \
  -f values-production.yaml

Configuration

Application listeners and Kubernetes Service ports are separate contracts:

ValueDefaultPurpose
museum.containerPorts.http8080Configures Museum's real http.port listener and named Pod port
museum.service.port8080Exposes Museum through the Kubernetes Service and targets http by name
museum.service.metricsPort2112Exposes the upstream metrics listener through the metrics Service
web.apps.<name>.portapp-specificConfigures each NGINX listener and named Pod port
web.service.port80Exposes each enabled web application Service

For example, Museum can listen on 18080 while its Service exposes 18081:

museum:
  containerPorts:
    http: 18080
  service:
    port: 18081

The Ente binary hard-codes Prometheus on port 2112, so that process listener is a documented fixed-protocol exception. museum.service.metricsPort changes the Service port only; its named target remains the fixed metrics container port.

Museum runs as a non-root container with all Linux capabilities dropped. A listener below the runtime's net.ipv4.ip_unprivileged_port_start requires the runtime to permit non-root binds; otherwise, keep the application listener on an unprivileged port and expose the desired low port through museum.service.port.

Required production inputs

A production installation needs:

  1. An S3-compatible bucket without object lock or versioning.
  2. CORS configured for the Ente web origins.
  3. A public HTTPS Museum API origin.
  4. HTTPS hosts for Photos, Accounts, and Albums.
  5. Durable Museum cryptographic secrets.
  6. Durable PostgreSQL.
  7. SMTP is strongly recommended for one-time login codes. Without SMTP, Museum writes the codes to its logs and the installation is not suitable for normal production authentication.

Set productionMode=true to reject evaluation placeholders and local-bucket workarounds.

Production quick start

Create Museum, S3, and SMTP Secrets before installation:

apiVersion: v1
kind: Secret
metadata:
  name: ente-museum
type: Opaque
stringData:
  encryption-key: REPLACE_WITH_32_BYTE_STANDARD_BASE64
  hash-key: REPLACE_WITH_64_BYTE_STANDARD_BASE64
  jwt-secret: REPLACE_WITH_32_BYTE_URL_SAFE_BASE64
---
apiVersion: v1
kind: Secret
metadata:
  name: ente-s3
type: Opaque
stringData:
  access-key: REPLACE_WITH_ACCESS_KEY
  secret-key: REPLACE_WITH_SECRET_KEY
---
apiVersion: v1
kind: Secret
metadata:
  name: ente-smtp
type: Opaque
stringData:
  username: REPLACE_WITH_SMTP_USERNAME
  password: REPLACE_WITH_SMTP_PASSWORD

Generate Ente key material with a cryptographically secure tool. Do not use the fixed development values from upstream local.yaml.

Create values-production.yaml:

productionMode: true

museum:
  externalUrl: https://api.ente.company.tld
  existingSecret: ente-museum
  config:
    webauthn:
      rpid: accounts.ente.company.tld
      rporigins:
        - https://accounts.ente.company.tld

storage:
  s3:
    endpoint: https://s3.us-east-1.amazonaws.com
    region: us-east-1
    bucket: company-ente-photos
    existingSecret: ente-s3

smtp:
  enabled: true
  host: smtp.company.tld
  port: 587
  email: [email protected]
  senderName: Ente
  encryption: tls
  existingSecret: ente-smtp

web:
  apps:
    photos:
      externalUrl: https://photos.ente.company.tld
    accounts:
      externalUrl: https://accounts.ente.company.tld
    albums:
      externalUrl: https://albums.ente.company.tld

ingress:
  enabled: true
  ingressClassName: nginx
  hosts:
    - host: api.ente.company.tld
      service: museum
      paths:
        - path: /
          pathType: Prefix
    - host: photos.ente.company.tld
      service: photos
      paths:
        - path: /
          pathType: Prefix
    - host: accounts.ente.company.tld
      service: accounts
      paths:
        - path: /
          pathType: Prefix
    - host: albums.ente.company.tld
      service: albums
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: ente-tls
      hosts:
        - api.ente.company.tld
        - photos.ente.company.tld
        - accounts.ente.company.tld
        - albums.ente.company.tld

PostgreSQL modes

The default database.mode=auto chooses the external configuration when set, otherwise the HelmForge PostgreSQL dependency.

Bundled PostgreSQL

postgresql:
  enabled: true
  architecture: standalone
  auth:
    database: ente
    username: ente
  standalone:
    persistence:
      enabled: true
      size: 100Gi

The bundled architecture is durable but does not provide automatic database failover. Use managed PostgreSQL or a Kubernetes database operator for HA.

External PostgreSQL

database:
  mode: external
  external:
    host: ente-rw.database.svc.cluster.local
    port: 5432
    name: ente
    username: ente
    existingSecret: ente-postgresql
    existingSecretPasswordKey: database-password
    sslMode: verify-full

postgresql:
  enabled: false

Museum supports PostgreSQL 14 and newer and applies migrations during startup.

High availability

Museum runs scheduled and background work inside the API process. Multiple cron-enabled replicas are unsafe. The chart rejects that configuration.

Use API replicas with jobs disabled plus one singleton worker:

museum:
  api:
    replicaCount: 3
    skipBackgroundJobs: true
  worker:
    enabled: true

web:
  replicaCount: 3

pdb:
  museum:
    enabled: true
  web:
    enabled: true

The worker has no public Service and uses Recreate to prevent overlapping schedulers during rollout.

Every Museum process attempts database migrations during startup. In HA, the chart adds a hardened PostgreSQL client sidecar to every Museum pod. The sidecar uses pg_try_advisory_lock without holding an active transaction, starts one Museum process, waits for museum.containerPorts.http, and only then releases the next pod. This avoids concurrent CREATE INDEX CONCURRENTLY migrations and a dirty migration state. Disabling museum.migrationGate in an HA or HPA topology is rejected.

Autoscaling

museum:
  api:
    skipBackgroundJobs: true
  worker:
    enabled: true

autoscaling:
  museum:
    enabled: true
    minReplicas: 2
    maxReplicas: 8
    targetCPUUtilizationPercentage: 70
  web:
    enabled: true
    minReplicas: 2
    maxReplicas: 10
    targetCPUUtilizationPercentage: 70

Resource requests must remain set for utilization-based HPA metrics.

External Secrets Operator

The chart accepts complete ExternalSecret specifications in items[]. This keeps provider-specific authentication and advanced ESO features available.

museum:
  existingSecret: ente-museum
storage:
  s3:
    existingSecret: ente-s3

externalSecrets:
  enabled: true
  items:
    - name: museum
      spec:
        secretStoreRef:
          name: production
          kind: ClusterSecretStore
        target:
          name: ente-museum
        dataFrom:
          - extract:
              key: ente/museum
    - name: s3
      spec:
        secretStoreRef:
          name: production
          kind: ClusterSecretStore
        target:
          name: ente-s3
        dataFrom:
          - extract:
              key: ente/s3

Object storage

Museum readiness only checks PostgreSQL. Validate S3 independently with an upload and download through an Ente client.

Required CORS methods:

  • GET
  • HEAD
  • POST
  • PUT
  • DELETE

Required request headers include Content-Type, Content-MD5, and UPLOAD-URL. Expose response headers needed by your provider and Ente client.

Do not enable storage.s3.localBuckets in production. That setting activates upstream workarounds for local MinIO evaluation environments.

Backup and restore

Enable the PostgreSQL dump CronJob:

backup:
  enabled: true
  schedule: "0 3 * * *"
  s3:
    endpoint: https://backup.example.com
    bucket: platform-backups
    prefix: ente/postgresql
    existingSecret: ente-backup-s3

The CronJob backs up PostgreSQL only. Back up the object bucket and Museum Secrets with provider-native tools. Restore all three as one consistency set.

For Amazon S3, the uploader can use IRSA or EKS Pod Identity without a static credential Secret:

backup:
  enabled: true
  serviceAccount:
    annotations:
      eks.amazonaws.com/role-arn: arn:aws:iam::123456789012:role/ente-backup
  s3:
    endpoint: https://s3.us-east-1.amazonaws.com
    bucket: platform-backups
    region: us-east-1
    credentialsFromPodIdentity: true

Set backup.serviceAccount.name and create: false to use a pre-existing ServiceAccount. EKS Pod Identity associations are configured outside the chart. Static backup Secrets are not rendered or referenced when workload identity is enabled.

Test a manual backup:

kubectl create job ente-backup-test \
  --from=cronjob/ente-postgresql-backup
kubectl wait --for=condition=complete job/ente-backup-test --timeout=10m
kubectl logs job/ente-backup-test --all-containers

Observability

Museum exposes Prometheus metrics on the upstream-fixed port 2112.

metrics:
  enabled: true
  serviceMonitor:
    enabled: true
    labels:
      release: kube-prometheus-stack
  prometheusRule:
    enabled: true

ServiceMonitor and PrometheusRule remain disabled by default because they require Prometheus Operator CRDs.

Network policy

networkPolicy:
  enabled: true
  egress:
    allowDNS: true
    allowSameNamespacePostgresql: true
    allowObjectStorage: true
    objectStoragePorts:
      - 443

The default object-storage rule permits public IPv4 and IPv6 destinations on TCP 443 while excluding private and link-local ranges. For a private or in-cluster S3 endpoint, replace networkPolicy.egress.objectStorageDestinations with explicit ipBlock, namespaceSelector, or podSelector peers. Add plaintext ports such as 80 or 9000 to objectStoragePorts only when the endpoint and network are trusted.

For external PostgreSQL or restricted SMTP, add shared rules to networkPolicy.extraEgress or Museum-only rules to networkPolicy.egress.museumExtraRules. NetworkPolicy cannot authorize a DNS hostname directly; use stable provider CIDRs or a controlled egress gateway.

Gateway API

gateway:
  enabled: true
  parentRefs:
    - name: public
      namespace: gateway-system
  routes:
    - name: museum
      service: museum
      hostnames: [api.ente.example.com]
    - name: photos
      service: photos
      hostnames: [photos.ente.example.com]

TLS is configured on the referenced Gateway listener.

Web applications

The single web image contains multiple static applications. Enabled apps receive individual Services and may receive individual routes.

ApplicationDefaultContainer port
Photosenabled3000
Accountsenabled3001
Albumsenabled3002
Authdisabled3003
Castdisabled3004
Sharedisabled3005
Embeddisabled3006
Memoriesdisabled3010

En

Deploy ente with OpenTenant

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