yopass

by 0hlov3

Helm chartv1.1.0App 14.10.0

A Helm chart for Kubernetes to Deploy Yopass

About this chart

Yopass Chart

A Helm chart to deploy Yopass on Kubernetes.

Yopass is a minimal, open-source secret sharing service for one-time or time-limited secrets.
This chart deploys the Yopass server with an in-pod Memcached sidecar for storage.

Features

  • Yopass server with configurable flags (address, max secret length, UI feature toggles)
  • Built-in Memcached sidecar (ephemeral by design)
  • Configurable Service (ClusterIP by default)
  • Optional Ingress with TLS
  • Optional Prometheus metrics endpoint (--metrics-port)
  • extraArgs / extraEnv / extraEnvFrom escape hatches for upstream flags this chart doesn't model directly (license key, OIDC, webhooks, audit logging, TLS, --trusted-proxies, etc.)
  • Helm test hook to validate connectivity

Upgrade note (1.0.2 -> 1.1.0)

securityContext and podSecurityContext changed from empty ({}) to hardened, non-root defaults (see Pod annotations & security). This is safe for the stock jhaals/yopass image with the chart's default in-database (Memcached) storage. If you run a custom/forked image with a different UID or as root, or enable a disk-writing feature such as --file-store disk via extraArgs, override the relevant key(s), e.g.:

securityContext:
  runAsUser: null       # explicit null removes the key; an empty {} override does not,
  readOnlyRootFilesystem: false  # since Helm deep-merges map values against the chart defaults

Requirements

  • Kubernetes 1.19+ (Ingress templates handle older APIs too)
  • Helm 3.9+
  • (Optional) An Ingress controller (e.g., NGINX) and cert-manager for TLS

Notes & Caveats

  • Ephemeral storage: The chart hard-codes --database=memcached and runs a Memcached sidecar. If the Pod restarts, in-memory secrets are lost. This matches Yopass’ ephemeral design.
  • Replica caveat: replicaCount must remain 1 unless you wire external/shared storage; each pod has its own in-pod Memcached and the Service load-balances requests (no shared cache, no session affinity).
  • Redis backend: upstream Yopass also supports --database redis as an alternative to Memcached, but this chart only wires up Memcached today. Using Redis currently requires overriding extraArgs/extraEnv yourself and disabling the bundled sidecar is not supported; see the project's issue tracker/README if you need native Redis support added.
  • DynamoDB: not applicable here — the self-hosted yopass-server binary this chart deploys only supports memcached and redis as --database backends; DynamoDB is part of Yopass' separately-hosted offering, not something this chart can or should configure.
  • Sidecar image: Pin Memcached using memcached.image.tag to avoid drifting image versions.
  • Security context: securityContext/podSecurityContext default to a hardened, non-root, read-only-root-filesystem profile that matches the upstream image (USER 1000 on a distroless base). This is safe with the chart's default in-database storage; if you enable a feature that writes to disk (e.g. --file-store disk via extraArgs), also relax securityContext.readOnlyRootFilesystem.
  • License-gated features: OIDC, audit logging, webhooks, secret requests, read receipts, and theming all require an upstream --license-key and are not modeled as first-class values. Use extraArgs/extraEnv/extraEnvFrom (e.g. to inject the license key from a Secret) to enable them.
  • Resource limits: The Yopass container (resources) has no defaults; the Memcached sidecar (memcached.resources) ships with default requests/limits. Tune both for your environment.

Parameters

Deployment

NameDescriptionValue
replicaCountNumber of Yopass server replicas to run1

Container image

NameDescriptionValue
imageContainer image configuration
image.registryContainer image registrydocker.io
image.repositoryContainer image repository for Yopassjhaals/yopass
image.pullPolicyImage pull policyIfNotPresent
image.tagImage tag (defaults to chart appVersion if empty)""

Yopass server settings

NameDescriptionValue
yopassYopass server flags (mapped to CLI flags)
yopass.listenAddressBind address for the server (maps to --address)0.0.0.0
yopass.secretMaxLengthMaximum allowed encrypted secret size in bytes (maps to --max-length)10000

Web UI & feature toggles

NameDescriptionValue
configFrontend/runtime feature flags returned via /config
config.disable_uploadDisable file upload endpoints and UI (maps to --disable-upload)false
config.prefetch_secretEnable prefetch/status check for one-time secrets (maps to --prefetch-secret)true
config.disable_featuresHide the “features” section on the homepage (maps to --disable-features)true
config.no_language_switcherHide the language switcher in the UI (maps to --no-language-switcher)false

Metrics

NameDescriptionValue
metricsPrometheus metrics server (maps to --metrics-port)
metrics.enabledStart Yopass's built-in Prometheus metrics listener (--metrics-port) on a dedicated container port and annotate the Pod for prometheus.io auto-discoveryfalse
metrics.portPort the metrics listener binds to; also used for the prometheus.io/port pod annotation9090

Advanced configuration

NameDescriptionValue
extraArgsExtra CLI flags appended to yopass-server, for upstream options this chart doesn't model directly (license key, OIDC, webhooks, TLS, --trusted-proxies, etc.)[]
extraEnvExtra environment variables appended to the yopass container (Kubernetes EnvVar objects), e.g. to inject a license key from a Secret[]
extraEnvFromExtra envFrom sources appended to the yopass container (Kubernetes EnvFromSource objects), for bulk-loading env vars from a ConfigMap/Secret[]

Global image & naming

NameDescriptionValue
imagePullSecretsNames of imagePullSecrets to use for pulling images[]
nameOverrideString to partially override chart name""
fullnameOverrideString to fully override chart fullname""

Service account

NameDescriptionValue
serviceAccountServiceAccount options
serviceAccount.createWhether to create a ServiceAccounttrue
serviceAccount.annotationsAnnotations to add to the ServiceAccount{}
serviceAccount.nameName of the ServiceAccount to use (generated if empty and create=true)""

Pod annotations & security

NameDescriptionValue
podAnnotationsAnnotations to add to the Pod metadata{}
podSecurityContextPod-level security context. Defaults to a restricted seccomp profile only, so it doesn't force a UID onto the Memcached sidecar's own non-root user{}
securityContextContainer-level security context for the yopass container. Defaults to a hardened non-root profile (UID 1000, all capabilities dropped, read-only root filesystem) matching the upstream distroless image; relax readOnlyRootFilesystem if you enable a disk-writing feature via extraArgs{}

Service

NameDescriptionValue
serviceKubernetes Service configuration
service.typeService typeClusterIP
service.portService port for the HTTP API/UI1337

Ingress

NameDescriptionValue
ingressKubernetes Ingress configuration
ingress.enabledEnable Ingress resourcefalse
ingress.classNameIngressClass to use (Kubernetes >=1.18)""
ingress.annotationsAnnotations to add to the Ingress{}
ingress.hostsIngress host definitions[]
ingress.tlsTLS configuration for the Ingress (secrets and hostnames)[]

Resources

NameDescriptionValue
resourcesCPU/Memory resource requests/limits for the Pod{}

Scheduling

NameDescriptionValue
nodeSelectorNode labels for Pod assignment{}
tolerationsTolerations for taints to schedule on matching nodes[]
affinityAffinity/anti-affinity rules for Pod scheduling{}

Memcached

NameDescriptionValue
memcachedMemcached sidecar configuration
memcached.imageMemcached image configuration
memcached.image.registryMemcached image registrydocker.io
memcached.image.repositoryMemcached image repositorymemcached
memcached.image.tagMemcached image tag (must be set, no latest)1.6.45-alpine
memcached.image.pullPolicyMemcached image pull policyIfNotPresent
memcached.resourcesCPU/Memory resource requests/limits for Memcached (default limits/requests: cpu=100m, memory=100Mi){}

Contributing

Issues and PRs welcome!

Deploy yopass with OpenTenant

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