oafpass
oafpass — One Acre Fund's branded Yopass deployment for client-side encrypted secret sharing, with optional Google sign-in in front of it
About this chart
oafpass
oafpass — One Acre Fund's branded Yopass deployment for client-side encrypted secret sharing, with optional Google sign-in in front of it
Maintainers
| Name | Url | |
|---|---|---|
| ajimoh-oaf | [email protected] | https://github.com/ajimoh-oaf |
Source Code
- https://github.com/jhaals/yopass
- https://github.com/one-acre-fund/oaf-public-charts/tree/main/charts/oafpass
TL;DR
Yopass shares secrets through one-time links. The message is
encrypted in the browser and the key never leaves the fragment of the URL, so the
server stores ciphertext it cannot read. This chart deploys it under One Acre
Fund's oafpass branding, with a storage backend and an optional Google login
in front.
helm repo add one-acre-fund https://one-acre-fund.github.io/oaf-public-charts
helm install oafpass one-acre-fund/oafpass
Sign-in
auth.mode picks one of three:
auth.mode | What it does | Licence |
|---|---|---|
none | Anyone who reaches the ingress can create and read secrets. | — |
oauth2-proxy | An oauth2-proxy sidecar fronts Yopass. Every request — creating a secret and opening one — needs a Google login from an allowed domain. | none |
oidc | Yopass' own OIDC. Only secret creation is gated; recipients open links without an account. | a paid Yopass licence key — the server refuses to start with OIDC configured and no licence |
Both authenticated modes need a Google OAuth 2.0 client (APIs & Services →
Credentials → OAuth client ID → Web application) with the callback registered
verbatim, or Google answers redirect_uri_mismatch:
oauth2-proxy→https://<host>/oauth2/callbackoidc→https://<host>/auth/callback
oafpass.publicUrl is where both are derived from, so set it to the ingress
host. It is also what Yopass builds the copied secret links out of.
oauth2-proxy quick setup
auth:
mode: oauth2-proxy
oauth2Proxy:
emailDomains:
- example.com # do not leave this at "*"
oafpass:
publicUrl: https://secrets.example.com
secret:
oauth2ProxyClientId: "<client id>.apps.googleusercontent.com"
oauth2ProxyClientSecret: "GOCSPX-..."
# openssl rand -base64 32 | tr -- '+/' '-_'
oauth2ProxyCookieSecret: "..."
Because oauth2-proxy gates reads as well as writes, a link shared with someone
outside the allowed domains will not open. That is the trade-off for not needing
a licence; oidc is the mode that keeps reads public.
What a Yopass licence gates
Several settings are business-licence features. Two failure modes, and the silent one is the trap:
| Setting | Without a licence |
|---|---|
oafpass.auditLog, oafpass.webhookUrl, auth.mode: oidc | Container crash-loops. validateFlags calls logger.Fatal, e.g. --audit-log requires a valid license key. |
branding.appName, branding.logoUrl, branding.themeLight/themeDark | Silently ignored. The server accepts the flags, then omits them from /config, so the UI keeps Yopass' own name and look. No error, no log line. |
oafpass.maxFileSize | Capped at 1MB. |
license.enabled is the chart's guard: it refuses to render the crash-looping
combinations rather than letting them reach the cluster. It is an assertion that
a key actually reaches the container, since the chart cannot read the Secret
when an ExternalSecret owns it. Set it alongside the key itself.
Secrets
Everything credential-shaped lives in one Secret so a cluster can hand the whole thing to External Secrets instead of git:
secret:
create: false # nothing rendered from values
name: oafpass # an ExternalSecret owns a Secret of this name
The container wiring is identical either way. secretKeys.* renames the keys if
an existing Secret spells them differently.
Storage
Yopass exits at startup without a backend.
database.type=memcached(default) deploys a single bundled memcached. It is in-memory only: secrets still in flight are lost when that pod restarts. For short-lived one-time links that is usually the right trade-off.database.type=redispoints at an external Redis viadatabase.redis.url, or at a Secret key when the URL carries a password.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity rules for the pods. |
| auth.mode | string | "none" | Sign-in mode: none, oauth2-proxy or oidc. |
| auth.oauth2Proxy.cookieExpire | string | "168h" | Session cookie lifetime (--cookie-expire). |
| auth.oauth2Proxy.cookieRefresh | string | "1h" | How often the session is refreshed against the provider (--cookie-refresh). Must be shorter than cookieExpire. |
| auth.oauth2Proxy.cookieSecure | bool | true | Only send the session cookie over HTTPS (--cookie-secure). |
| auth.oauth2Proxy.emailDomains | list | ["*"] | Email domains allowed to sign in (--email-domain). ["*"] allows any account that completes the Google login — set your own domain instead. |
| auth.oauth2Proxy.extraArgs | list | [] | Extra args for oauth2-proxy. |
| auth.oauth2Proxy.extraEnv | object | {} | Extra environment variables for oauth2-proxy. |
| auth.oauth2Proxy.image.pullPolicy | string | "IfNotPresent" | oauth2-proxy image pull policy. |
| auth.oauth2Proxy.image.repository | string | "quay.io/oauth2-proxy/oauth2-proxy" | oauth2-proxy image repository. |
| auth.oauth2Proxy.image.tag | string | "v7.7.1" | oauth2-proxy image tag. |
| auth.oauth2Proxy.port | int | 4180 | Port the sidecar listens on. The Service targets this port in this mode. |
| auth.oauth2Proxy.provider | string | "google" | Identity provider (--provider). google for Google Workspace. |
| auth.oauth2Proxy.redirectUrl | string | "" | Full callback URL registered with the provider (--redirect-url). Must be https://<host>/oauth2/callback. Derived from oafpass.publicUrl when empty. |
| auth.oauth2Proxy.resources | object | {"limits":{"cpu":"200m","memory":"128Mi"},"requests":{"cpu":"25m","memory":"64Mi"}} | Resources for the oauth2-proxy container. |
| auth.oauth2Proxy.skipAuthRoutes | list | ["^/health$","^/ready$"] | Paths served without a login, as regexes (--skip-auth-route). The health endpoints are here so kubelet probes and uptime checks do not get bounced to Google. |
| auth.oauth2Proxy.skipProviderButton | bool | true | Skip the "Sign in with Google" interstitial and redirect straight to the provider (--skip-provider-button). |
| auth.oidc.allowedDomains | string | "" | Comma-separated email domains allowed to sign in (--oidc-allowed-domains). |
| auth.oidc.clientId | string | "" | OAuth2 client ID (--oidc-client-id). |
| auth.oidc.issuer | string | "https://accounts.google.com" | Issuer URL (--oidc-issuer). https://accounts.google.com for Google. |
| auth.oidc.redirectUrl | string | "" | Callback URL (--oidc-redirect-url). Must be https://<host>/auth/callback. Derived from oafpass.publicUrl when empty. |
| auth.oidc.requireAuth | bool | true | Refuse to create secrets without a login (--require-auth). Reading stays open either way. |
| autoscaling.enabled | bool | false | Deploy a HorizontalPodAutoscaler. |
| autoscaling.maxReplicas | int | 5 | Maximum replicas. |
| autoscaling.minReplicas | int | 1 | Minimum replicas. |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | Target average CPU utilisation. |
| autoscaling.targetMemoryUtilizationPercentage | string | "" | Target average memory utilisation. |
| branding.appName | string | "oafpass" | Product name shown in the UI and page title (--app-name). |
| branding.logoUrl | string | "" | URL of a logo served in the header (--logo-url). |
| branding.themeDark | string | "" | Built-in dark theme (--theme-dark), e.g. dim. |
| branding.themeLight | string | "" | Built-in light theme (--theme-light), e.g. emerald. |
| database.memcached.enabled | bool | true | Deploy the bundled single-replica memcached. Turn it off to point at database.memcachedAddress instead. |
| database.memcached.extraArgs | list | [] | Extra args for the memcached container. |
| database.memcached.image.pullPolicy | string | "IfNotPresent" | Memcached image pull policy. |
| database.memcached.image.repository | string | "memcached" | Memcached image repository. |
| database.memcached.image.tag | string | "1.6-alpine" | Memcached image tag. |
| database.memcached.memoryLimitMb | int | 64 | Memcached cache size in MiB (-m). This is the ceiling on all live secrets at once; memcached evicts the oldest when it fills. |
| database.memcached.resources | object | {"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"25m","memory":"96Mi"}} | Resources for the memcached container. |
| database.memcachedAddress | string | "" | Memcached address used when database.memcached.enabled=false (--memcached). |
| database.redis.existingSecret | string | "" | Read the URL from a Secret key instead, so a password in the URL stays out of git. Defaults to the chart Secret (see secret) when empty. |
| database.redis.existingSecretUrlKey | string | "redis-url" | Key holding the Redis URL in that Secret. |
| database.redis.url | string | "" | Redis connection URL (--redis), e.g. redis://redis.tools:6379/0. Only read when database.type=redis. |
| database.type | string | "memcached" | Backend type: memcached or redis (--database). |
| extraArgs | list | [] | Extra flags for the Yopass server, e.g. ["--file-store=s3"]. |
| extraEnv | object | {} | Extra environment variables for the Yopass container. |
| extraEnvFrom | list | [] | Extra environment variables sourced from existing ConfigMaps/Secrets. |
| extraVolumeMounts | list | [] | Extra volume mounts on the Yopass container. |
| extraVolumes | list | [] | Extra volumes on the Deployment. |
| fullnameOverride | string | "" | Override the full resource name prefix (usually <release>-<chart>). |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy. |
| image.repository | string | "jhaals/yopass" | Yopass image repository. |
| image.tag | string | "" | Image tag. Defaults to the chart appVersion when empty. |
| imagePullSecrets | list | [] | Image pull secrets for the Yopass and sidecar images. |
| ingress.annotations | object | {} | Annotations for the Ingress. |
| ingress.className | string | "" | ingressClassName of the Ingress. |
| ingress.enabled | bool | false | Deploy an Ingress for Yopass. |
| ingress.hosts | list | [{"host":"oafpass.local","paths":[{"path":"/","pathType":"Prefix"}]}] | Ingress hosts and paths. |
| ingress.tls | list | [] | Ingress TLS configuration. |
| license.enabled | bool | false | Set true when a valid Yopass licence key reaches the container, whether from secret.licenseKey or an ExternalSecret. It is an assertion, not a switch: the chart uses it to allow licence-gated settings, and cannot read the key itself when the Secret is owned externally. |
| license.key | string | "" | Yopass licence key. Prefer delivering it through the Secret (secret.licenseKey) rather than here. |
| livenessProbe | object | {"httpGet":{"path":"/health","port":"http"},"initialDelaySeconds":10,"periodSeconds":20} | Liveness probe for the Yopass container. Probes hit Yopass directly, not through oauth2-proxy. |
| nameOverride | string | "" | Override the chart name used in resource names. |
| nodeSelector | object | {} | Node selector for the pods. |
| oafpass.argon2 | bool | false | Use Argon2id for password key derivation (--argon2). Slower, stronger. |
| oafpass.auditLog | bool | false | Emit structured audit log lines for every secret operation (--audit-log). Goes to stdout unless auditLogFile is set. LICENSED: Yopass exits with "--audit-log requires a valid license key" if this is on without one, so it is gated on license.enabled. |
| oafpass.auditLogFile | string | "" | Write the audit log to this path instead of stdout (--audit-log-file). Needs a writable volume — see extraVolumes / extraVolumeMounts. |
| oafpass.corsAllowOrigin | string | "" | CORS allow-origin header (--cors-allow-origin). Chart default is the public URL only; set "*" to restore the upstream default. |
| oafpass.defaultExpiry | string | "1h" | Default expiry offered in the UI (--default-expiry). Yopass accepts 1h, 1d or 1w and rejects anything else at startup. |
| oafpass.disableSecretRequests | bool | false | Disable the secret-request feature (--disable-secret-requests). |
| oafpass.disableUpload | bool | false | Disable file uploads (--disable-upload). |
| oafpass.forceExpiration | string | "" | Cap every secret at this expiry, overriding the user's choice (--force-expiration). One of 1h, 1d, 1w. Empty leaves the user's choice alone. |
| oafpass.forceOnetimeSecrets | bool | false | Force every secret to be one-time only (--force-onetime-secrets). |
| oafpass.imprintUrl | string | "" | URL of an imprint linked in the footer (--imprint-url). |
| oafpass.logLevel | string | "info" | Log level: debug, info, warn or error (--log-level). |
| oafpass.maxFileSize | string | "512KB" | Maximum upload size (--max-file-size). Ignored when uploads are off. |
| oafpass.maxLength | int | 10000 | Maximum secret length in characters (--max-length). |
| oafpass.metricsPort | int | -1 | Prometheus metrics port (--metrics-port). -1 disables met |
Deploy oafpass with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has oafpass 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 chartoafpass is pinned at v0.1.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