etherpad

by 0hlov3

Helm chartv0.4.3App 3.3.22

A Helm chart for Kubernetes to Deploy Etherpad.

About this chart

Etherpad Helm Chart

This chart deploys the official Etherpad Docker image.

Upgrading from chart 0.3.0 / Etherpad 2.7.2 to chart 0.4.1 / Etherpad 3.3.6

This chart targets etherpad/etherpad:3.3.6. Etherpad 3.3.4 through 3.3.6 are security and bug-fix releases with no changes to the Docker image's settings.json.docker template (env vars, ports, volumes, and the container user are unchanged from 3.3.3), so if you are already on a 3.3.3-based chart install, no configuration changes are required. Notably:

  • 3.3.4 fixes a stored XSS in the createDiffHTML API output (GHSA-6vx2-3gwr-958v).
  • 3.3.6 fixes an OIDC login bypass for accounts configured without a password (GHSA-62cj-9j72-mfrh).

If you are upgrading from chart 0.3.0 (Etherpad 2.7.2), the following behavior changes apply even if you do not touch your values.yaml:

Security contexts are now hardened by default

Previously:

podSecurityContext: {}
securityContext: {}

The chart now ships:

podSecurityContext:
  seccompProfile:
    type: RuntimeDefault

securityContext:
  allowPrivilegeEscalation: false
  capabilities:
    drop:
      - ALL
  runAsNonRoot: true
  runAsUser: 5001

This only changes your deployment if you were not already overriding podSecurityContext/securityContext in your own values file — if you copied the old defaults verbatim into your overrides, you keep the old (unrestricted) behavior until you remove that override.

runAsUser: 5001 is required, not optional, alongside runAsNonRoot: true. The official etherpad/etherpad image's Dockerfile declares USER etherpad — a named user, not a numeric UID — and Kubernetes cannot verify runAsNonRoot against a named user. Without an explicit numeric runAsUser, the kubelet refuses to start the pod with:

Error: container has runAsNonRoot and image has non-numeric user (etherpad),
cannot verify user is non-root

This was verified against a real cluster (kind, Kubernetes 1.36): the pod sits in CreateContainerConfigError until runAsUser is set. UID 5001 resolves to the image's own etherpad user (GID 0), so the default value matches the image exactly and needs no further configuration. If you run a custom or forked Etherpad image with a different UID, override securityContext.runAsUser to match it, or set securityContext.runAsNonRoot: false if that image must run as root.

Socket.IO buffer size default increased

etherpad.advanced.socketioMaxHttpBufferSize: 10000 → 1000000

This follows Etherpad's current upstream Docker default (SOCKETIO_MAX_HTTP_BUFFER_SIZE now defaults to 1000000/1 MB rather than 10000). If you rely on the old, much smaller limit (e.g. to bound per-message memory more aggressively), set etherpad.advanced.socketioMaxHttpBufferSize explicitly.

showSettingsInAdminPage now actually takes effect

The chart previously emitted a misspelled environment variable (HOW_SETTINGS_IN_ADMIN_PAGE instead of SHOW_SETTINGS_IN_ADMIN_PAGE), so etherpad.advanced.showSettingsInAdminPage was silently ignored — Etherpad always used its own built-in default (true) regardless of this value. The chart now sets the correctly named SHOW_SETTINGS_IN_ADMIN_PAGE variable. If you had explicitly set:

etherpad:
  advanced:
    showSettingsInAdminPage: false

it had no effect before this upgrade; after upgrading, /admin's settings.json view will actually be hidden as configured. Double check this value reflects what you intend.

Authentication

Etherpad 3.x defaults AUTHENTICATION_METHOD to sso (the built-in OpenID Connect provider), a change from the implicit legacy API-key behavior on the 2.x line. Existing APIKEY.txt/API-key consumers upgrading from 2.7.2 may need:

etherpad:
  advanced:
    authenticationMethod: apikey

IP logging

etherpad.logging.disableIPLogging (boolean) is retained for compatibility. It is no longer sent to Etherpad as DISABLE_IP_LOGGING; instead the chart maps it to Etherpad 3.x's current IP_LOGGING variable (true → anonymous, false → full), matching the deprecated-fallback mapping Etherpad itself documents in settings.json.docker. Set etherpad.logging.ipLogging directly (anonymous, truncated, or full) if you need a value other than these two.

Other upgrade steps

  • Back up the Etherpad database before upgrading. For PostgreSQL, take a pg_dump or equivalent operational backup. Etherpad stores pad content, revisions, chat, sessions, and related metadata in the configured database.
  • Verify third-party plugins against Etherpad 3.x. The chart does not install plugins at runtime or mount /opt/etherpad-lite/src/plugin_packages; use a custom image if you need preinstalled plugins.
  • If Etherpad is behind an Ingress or reverse proxy, set etherpad.advanced.trustProxy=true only when the proxy is trusted and correctly manages X-Forwarded-* headers. Etherpad 3.2+ honors X-Forwarded-Prefix and X-Ingress-Path when trustProxy is enabled.
  • The official image exposes port 9001 and runs as an unprivileged etherpad user. The image currently uses UID 5001 and GID 0; this chart pins securityContext.runAsUser: 5001 to match, which is required for runAsNonRoot: true to work against this image's named (non-numeric) USER declaration.
  • The chart does not persist or mount /opt/etherpad-lite, /opt/etherpad-lite/var, /opt/etherpad-lite/settings.json, or /opt/etherpad-lite/src/plugin_packages. With the default DirtyDB backend, data is ephemeral; use PostgreSQL for production.

Configuration Notes

  • Etherpad settings are supplied through environment variables consumed by the upstream settings.json.docker template.
  • showSettingsInAdminPage renders as SHOW_SETTINGS_IN_ADMIN_PAGE.
  • etherpad.logging.disableIPLogging is preserved for chart compatibility and rendered as the newer IP_LOGGING variable unless etherpad.logging.ipLogging is explicitly set.
  • etherpad.advanced.tidyHTML is kept as a deprecated values key for compatibility but is not rendered because Etherpad 3.3.x no longer exposes TIDY_HTML in settings.json.docker. It has no effect with Etherpad 3.3.6.
  • Probes use Etherpad's /health endpoint. Startup probing is intentionally tolerant to allow database connection and startup work to finish.

PostgreSQL configuration

The chart supports exactly three database modes, chosen by two independent booleans:

postgresql.enabledexternalPostgresql.enabledResult
falsefalseEtherpad's default DirtyDB backend (ephemeral, no DB_* vars rendered)
falsetrueExternally managed PostgreSQL (any provider)
truefalseBundled Bitnami PostgreSQL subchart
truetrueInvalid. The chart fails to render with an explicit error — enabling both would deploy an unused bundled PostgreSQL instance (and its persistent storage) while Etherpad actually connects to the external database. Set exactly one to true.

Verified/supported:

  • Discrete fields — externalPostgresql.host/port/database/username/password (or externalPostgresql.existingSecret) render Etherpad's standard DB_TYPE/DB_HOST/DB_PORT/DB_NAME/DB_USER/DB_PASS variables. This is the only verified way to configure an external PostgreSQL database through the stock image. externalPostgresql.host is used exactly as given — the chart makes no assumptions about the database running in the same Helm release/namespace, so any Service DNS name (short name or FQDN) from any PostgreSQL provider or operator works.
  • External existing Secret — set externalPostgresql.existingSecret to a pre-created Secret name and Etherpad reads both DB_USER and DB_PASS from it via secretKeyRef, instead of the literal username/password values. The Secret keys default to username/password for backward compatibility, but are configurable via externalPostgresql.existingSecretUsernameKey/existingSecretPasswordKey if your Secret uses different key names. The chart never copies these credentials into a chart-managed Secret or ConfigMap.
  • Bundled PostgreSQL (postgresql.enabled: true) — the chart always wires DB_PASS through a secretKeyRef against the Bitnami postgresql subchart's own Secret (<release>-postgresql, key password), whether that Secret's password was auto-generated by the subchart or set explicitly via postgresql.auth.password. The bundled PostgreSQL password is never inlined into the Etherpad Deployment as plain text. Set postgresql.auth.existingSecret to use your own pre-created Secret instead (same password key expectation).
  • extraEnv — a generic list of extra Kubernetes EnvVar objects appended to the Etherpad container, for provider-specific settings this chart doesn't (and shouldn't) model directly. For example, Etherpad's PostgreSQL driver (node-postgres, via ueberdb2) reads the standard libpq PGSSLMODE environment variable when no explicit ssl setting is present in settings.json, so extraEnv can be used to set it. This is not a chart-verified TLS feature — whether it actually satisfies your PostgreSQL server/operator's TLS requirements depends on your setup and must be tested end-to-end; the chart makes no claims about which PGSSLMODE values work or that certificate verification is possible (the stock image has no way to supply a custom CA/client cert/key for the database connection).

Deprecated/unsupported:

  • externalPostgresql.useConnectionString — do not enable this. It was intended to render a PostgreSQL connection string via Etherpad's DB_URL variable, but DB_URL is not consumed by Etherpad 3.3.6's PostgreSQL driver (ueberdb2 6.1.16 passes dbSettings straight into pg.Pool, which only recognizes a connectionString key, not url). There is no supported way to configure PostgreSQL via a connection string through the stock Etherpad Docker image's environment-variable interface — only the discrete DB_* variables are honored. To prevent silently deploying a broken database configuration, the chart fails to render (helm template/helm install/helm upgrade all abort with an explicit error) if externalPostgresql.useConnectionString: true is set. The value is kept in values.yaml for backward compatibility with existing overrides, but it must be false (the default); use the discrete fields above instead.

Example: external PostgreSQL with an existing Secret

postgresql:
  enabled: false

externalPostgresql:
  enabled: true
  host: postgres.example.internal
  port: "5432"
  database: etherpad
  existingSecret: etherpad-postgres-credentials
  existingSecretUsernameKey: username   # defaults shown; override if your Secret differs
  existingSecretPasswordKey: password

Example: generic external PostgreSQL functionality with a CloudNativePG-provisioned database

This is a plain usage of the generic external PostgreSQL support above — the chart has no CloudNativePG-specific code, values, or assumptions. It works here only because CloudNativePG's default <cluster>-app Secret happens to use username/password as its key names, which are also this chart's defaults; the same configuration shape works with any other operator or managed PostgreSQL service that exposes a stable Service name and a Secret with username/password keys. Assuming a CloudNativePG Cluster named etherpad-postgresql with its default -rw read/write Service and -app credentials Secret:

postgresql:
  enabled: false

externalPostgresql:
  enabled: true
  host: etherpad-postgresql-rw        # the Cluster's read/write Service;
                                       # use the FQDN (etherpad-postgresql-rw.<namespace>.svc.cluster.local)
                                       # if Etherpad and the database are in different namespaces
  port: "5432"
  database: etherpad
  existingSecret: etherpad-postgresql-app
  existingSecretUsernameKey: username
  existingSecretPasswordKey: password

# Optional: see the extraEnv note above before relying on this for TLS.
# extraEnv:
#   - name: PGSSLMODE
#     value: require

Parameters

Global parameters

NameDescriptionValue
replicaCountNumber of Etherpad pod replicas to run1
imagePullSecretsNames of existing Secrets to use for pulling the Etherpad image from a private registry[]
nameOverrideOverride for the chart name used when generating resource names""
fullnameOverrideOverride for the fully qualified release name used to generate resource names""

Image parameters

NameDescriptionValue
imageEtherpad container image
image.repositoryEtherpad container image repositoryetherpad/etherpad
image.pullPolicyEtherpad image pull policyIfNotPresent
image.tagEtherpad image tag. Defaults to the chart's appVersion when empty""

Etherpad general settings

| Name | Description | Value | | -------------------------------------------------- | ----------------------

Deploy etherpad with OpenTenant

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