etherpad
by 0hlov3
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
createDiffHTMLAPI 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_dumpor 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=trueonly when the proxy is trusted and correctly managesX-Forwarded-*headers. Etherpad 3.2+ honorsX-Forwarded-PrefixandX-Ingress-PathwhentrustProxyis enabled. - The official image exposes port
9001and runs as an unprivilegedetherpaduser. The image currently uses UID5001and GID0; this chart pinssecurityContext.runAsUser: 5001to match, which is required forrunAsNonRoot: trueto work against this image's named (non-numeric)USERdeclaration. - 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.dockertemplate. showSettingsInAdminPagerenders asSHOW_SETTINGS_IN_ADMIN_PAGE.etherpad.logging.disableIPLoggingis preserved for chart compatibility and rendered as the newerIP_LOGGINGvariable unlessetherpad.logging.ipLoggingis explicitly set.etherpad.advanced.tidyHTMLis kept as a deprecated values key for compatibility but is not rendered because Etherpad 3.3.x no longer exposesTIDY_HTMLinsettings.json.docker. It has no effect with Etherpad 3.3.6.- Probes use Etherpad's
/healthendpoint. 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.enabled | externalPostgresql.enabled | Result |
|---|---|---|
false | false | Etherpad's default DirtyDB backend (ephemeral, no DB_* vars rendered) |
false | true | Externally managed PostgreSQL (any provider) |
true | false | Bundled Bitnami PostgreSQL subchart |
true | true | Invalid. 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(orexternalPostgresql.existingSecret) render Etherpad's standardDB_TYPE/DB_HOST/DB_PORT/DB_NAME/DB_USER/DB_PASSvariables. This is the only verified way to configure an external PostgreSQL database through the stock image.externalPostgresql.hostis 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.existingSecretto a pre-created Secret name and Etherpad reads bothDB_USERandDB_PASSfrom it viasecretKeyRef, instead of the literalusername/passwordvalues. The Secret keys default tousername/passwordfor backward compatibility, but are configurable viaexternalPostgresql.existingSecretUsernameKey/existingSecretPasswordKeyif 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 wiresDB_PASSthrough asecretKeyRefagainst the Bitnamipostgresqlsubchart's own Secret (<release>-postgresql, keypassword), whether that Secret's password was auto-generated by the subchart or set explicitly viapostgresql.auth.password. The bundled PostgreSQL password is never inlined into the Etherpad Deployment as plain text. Setpostgresql.auth.existingSecretto use your own pre-created Secret instead (samepasswordkey expectation). extraEnv— a generic list of extra KubernetesEnvVarobjects 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, viaueberdb2) reads the standard libpqPGSSLMODEenvironment variable when no explicitsslsetting is present insettings.json, soextraEnvcan 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 whichPGSSLMODEvalues 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'sDB_URLvariable, butDB_URLis not consumed by Etherpad 3.3.6's PostgreSQL driver (ueberdb26.1.16 passesdbSettingsstraight intopg.Pool, which only recognizes aconnectionStringkey, noturl). There is no supported way to configure PostgreSQL via a connection string through the stock Etherpad Docker image's environment-variable interface — only the discreteDB_*variables are honored. To prevent silently deploying a broken database configuration, the chart fails to render (helm template/helm install/helm upgradeall abort with an explicit error) ifexternalPostgresql.useConnectionString: trueis set. The value is kept invalues.yamlfor backward compatibility with existing overrides, but it must befalse(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
| Name | Description | Value |
|---|---|---|
replicaCount | Number of Etherpad pod replicas to run | 1 |
imagePullSecrets | Names of existing Secrets to use for pulling the Etherpad image from a private registry | [] |
nameOverride | Override for the chart name used when generating resource names | "" |
fullnameOverride | Override for the fully qualified release name used to generate resource names | "" |
Image parameters
| Name | Description | Value |
|---|---|---|
image | Etherpad container image | |
image.repository | Etherpad container image repository | etherpad/etherpad |
image.pullPolicy | Etherpad image pull policy | IfNotPresent |
image.tag | Etherpad 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartetherpad is pinned at v0.4.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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