castopod

by HelmForge

Helm chartv1.2.17App 1.15.7Apache-2.0Verified publisher

Castopod open-source podcast hosting platform with MariaDB and optional Redis

About this chart

Castopod Helm Chart

Deploy Castopod, the open-source podcast hosting platform with RSS feeds, a web player, analytics, and ActivityPub federation, on Kubernetes with the official castopod/castopod image.

Features

  • Ready on first start: a setup init container applies migrations and creates the superadmin from a Secret; no open /cp-install wizard
  • Hardened pod: non-root www-data, no privilege escalation, every capability dropped except NET_BIND_SERVICE, RuntimeDefault seccomp
  • Scheduler sidecar: scheduled publishing, WebSub, and federation tasks run every minute
  • MariaDB backend: HelmForge MariaDB subchart or an external server on any port
  • Optional Redis cache: authenticated HelmForge Redis subchart
  • Persistent media: uploaded audio and images survive pod restarts
  • Stable secrets: analytics salt and superadmin password survive helm upgrade
  • Configurable listener: castopod.port changes the real FrankenPHP port
  • Exposure: Ingress or Gateway API HTTPRoutes
  • S3 backups: scheduled archives of the data volume

Installation

HTTPS repository:

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install castopod helmforge/castopod \
  --set castopod.baseURL=https://podcast.example.com

OCI registry:

helm install castopod oci://ghcr.io/helmforgedev/helm/castopod \
  --set castopod.baseURL=https://podcast.example.com

castopod.baseURL only sets the URL Castopod embeds in links and feeds; it does not expose the Service. Enable ingress or gatewayAPI for that hostname before using the public URL.

Quick Start

Without a base URL, Ingress, or HTTPRoute, the chart uses http://localhost:8080 and disables HTTPS redirection, which suits a local check:

helm install castopod helmforge/castopod
kubectl rollout status deploy/castopod-castopod --timeout=300s
kubectl get secret castopod-castopod-admin -o jsonpath='{.data.admin-password}' | base64 -d; echo
kubectl port-forward svc/castopod-castopod 8080:80

Open http://localhost:8080/cp-auth/login and log in with [email protected] and the password above. Resource names follow <release>-castopod.

Architecture

The pod runs a setup init container, the castopod container (FrankenPHP), and a scheduler sidecar (supercronic), all from the same image. The setup container waits for MariaDB, runs the upstream bootstrap (.env, migrations, cache), and creates the superadmin once. See DESIGN.md for the design, including why the upstream s6-overlay supervisor is not used.

Configuration

Application

KeyDefaultDescription
castopod.baseURL""Public URL; falls back to the first Ingress host, then HTTPRoute hostname, then http://localhost:8080
castopod.mediaBaseURL""Media URL, for a CDN; defaults to the base URL
castopod.port8080FrankenPHP listener (CADDY_HTTP_PORT), 1024-65535
castopod.adminGatewaycp-adminAdmin area path
castopod.authGatewaycp-authAuthentication path
castopod.extraEnv[]Extra env vars; CP_* settings (SMTP, S3 media, 2FA) go into .env
castopod.admin.createtrueCreate the superadmin when none exists
castopod.admin.usernameadminSuperadmin username
castopod.admin.email[email protected]Superadmin email, used to log in
castopod.admin.password""Superadmin password (8+ characters); generated once when empty
castopod.admin.existingSecret""Existing Secret with the superadmin password
castopod.admin.existingSecretPasswordKeyadmin-passwordKey in that Secret
analytics.salt / existingSecret""Analytics salt; generated once and kept on upgrade
setup.databaseWaitTimeoutSeconds300Seconds the setup container waits for MariaDB
scheduler.enabledtrueRun the task scheduler sidecar

Database and Redis

KeyDefaultDescription
mariadb.enabledtrueDeploy the HelmForge MariaDB subchart
mariadb.auth.database / usernamecastopodDatabase and user created by the subchart
database.external.host""External MariaDB host (required without the subchart)
database.external.port"3306"External MariaDB port
database.external.name / usernamecastopodExternal database and user
database.external.password""Inline password, stored in <release>-castopod-db
database.external.existingSecret""Existing Secret with the database password
database.external.existingSecretPasswordKeypasswordKey in that Secret
redis.enabledfalseDeploy the Redis subchart and use it as the cache handler
redis.auth.enabledtrueMust stay true: Castopod requires a Redis password

Exposure, probes, and storage

KeyDefaultDescription
service.type / service.portClusterIP / 80Service type and port
ingress.enabledfalseRender an Ingress
ingress.ingressClassNametraefikIngress class
gatewayAPI.enabledfalseRender Gateway API HTTPRoutes
gatewayAPI.httpRoutes[]HTTPRoutes; each requires parentRefs
probes.path/healthcheckHTTP path used by every probe
persistence.enabledtruePVC for writable files and uploaded media
persistence.size10GiPVC size
persistence.existingClaim""Use an existing PVC
backup.enabledfalseScheduled archive of the data volume to S3

Every key is documented in values.yaml and validated by values.schema.json. See docs/configuration.md for external databases, Redis, SMTP, and backups.

Examples

  • examples/production.yaml: HTTPS Ingress, existing Secrets, Redis, a 50Gi media volume, resources, and daily backups

Security

  • The pod runs as www-data (uid 33) without privilege escalation, with only NET_BIND_SERVICE kept (the FrankenPHP binary needs it in the bounding set to start), RuntimeDefault seccomp, and no ServiceAccount token.
  • The root filesystem stays writable because Caddy and the bootstrap write to the image tree.
  • The generated analytics salt and superadmin password are read back from their Secrets with lookup. Renderers without cluster access, such as client-side GitOps rendering, generate new values on every render: set analytics.salt or analytics.existingSecret, and castopod.admin.password or castopod.admin.existingSecret, in those setups.
  • Credentials come from Secrets and accept existing Secrets. The rendered .env is kept in a memory-backed volume, and the setup logs hide it.
  • Keep castopod.admin.create=true unless you complete /cp-install before exposing the instance; the first visitor of the wizard becomes the owner.

Troubleshooting

SymptomCheck
Pod stuck in Init:0/1kubectl logs deploy/<release>-castopod -c setup; MariaDB is unreachable or the credentials are wrong
Redirect loop or HTTPS errors behind a proxySet castopod.baseURL to the public https:// URL and forward X-Forwarded-Proto
Login rejectedLog in with the email, not the username; read the password from <release>-castopod-admin
Scheduled episodes never publishConfirm scheduler.enabled=true and read -c scheduler logs

More Information

Security Scan: castopod

FrameworkScore
MITRE + NSA + SOC287.878784%

Security posture acceptable.

Deploy castopod with OpenTenant

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