oafpass

by One Acre Fund

Helm chartv0.1.3App 14.9.0Verified publisher

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

NameEmailUrl
ajimoh-oaf[email protected]https://github.com/ajimoh-oaf

Source Code

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.modeWhat it doesLicence
noneAnyone who reaches the ingress can create and read secrets.—
oauth2-proxyAn oauth2-proxy sidecar fronts Yopass. Every request — creating a secret and opening one — needs a Google login from an allowed domain.none
oidcYopass' 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/callback
  • oidc → 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:

SettingWithout a licence
oafpass.auditLog, oafpass.webhookUrl, auth.mode: oidcContainer crash-loops. validateFlags calls logger.Fatal, e.g. --audit-log requires a valid license key.
branding.appName, branding.logoUrl, branding.themeLight/themeDarkSilently 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.maxFileSizeCapped 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=redis points at an external Redis via database.redis.url, or at a Secret key when the URL carries a password.

Values

KeyTypeDefaultDescription
affinityobject{}Affinity rules for the pods.
auth.modestring"none"Sign-in mode: none, oauth2-proxy or oidc.
auth.oauth2Proxy.cookieExpirestring"168h"Session cookie lifetime (--cookie-expire).
auth.oauth2Proxy.cookieRefreshstring"1h"How often the session is refreshed against the provider (--cookie-refresh). Must be shorter than cookieExpire.
auth.oauth2Proxy.cookieSecurebooltrueOnly send the session cookie over HTTPS (--cookie-secure).
auth.oauth2Proxy.emailDomainslist["*"]Email domains allowed to sign in (--email-domain). ["*"] allows any account that completes the Google login — set your own domain instead.
auth.oauth2Proxy.extraArgslist[]Extra args for oauth2-proxy.
auth.oauth2Proxy.extraEnvobject{}Extra environment variables for oauth2-proxy.
auth.oauth2Proxy.image.pullPolicystring"IfNotPresent"oauth2-proxy image pull policy.
auth.oauth2Proxy.image.repositorystring"quay.io/oauth2-proxy/oauth2-proxy"oauth2-proxy image repository.
auth.oauth2Proxy.image.tagstring"v7.7.1"oauth2-proxy image tag.
auth.oauth2Proxy.portint4180Port the sidecar listens on. The Service targets this port in this mode.
auth.oauth2Proxy.providerstring"google"Identity provider (--provider). google for Google Workspace.
auth.oauth2Proxy.redirectUrlstring""Full callback URL registered with the provider (--redirect-url). Must be https://<host>/oauth2/callback. Derived from oafpass.publicUrl when empty.
auth.oauth2Proxy.resourcesobject{"limits":{"cpu":"200m","memory":"128Mi"},"requests":{"cpu":"25m","memory":"64Mi"}}Resources for the oauth2-proxy container.
auth.oauth2Proxy.skipAuthRouteslist["^/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.skipProviderButtonbooltrueSkip the "Sign in with Google" interstitial and redirect straight to the provider (--skip-provider-button).
auth.oidc.allowedDomainsstring""Comma-separated email domains allowed to sign in (--oidc-allowed-domains).
auth.oidc.clientIdstring""OAuth2 client ID (--oidc-client-id).
auth.oidc.issuerstring"https://accounts.google.com"Issuer URL (--oidc-issuer). https://accounts.google.com for Google.
auth.oidc.redirectUrlstring""Callback URL (--oidc-redirect-url). Must be https://<host>/auth/callback. Derived from oafpass.publicUrl when empty.
auth.oidc.requireAuthbooltrueRefuse to create secrets without a login (--require-auth). Reading stays open either way.
autoscaling.enabledboolfalseDeploy a HorizontalPodAutoscaler.
autoscaling.maxReplicasint5Maximum replicas.
autoscaling.minReplicasint1Minimum replicas.
autoscaling.targetCPUUtilizationPercentageint80Target average CPU utilisation.
autoscaling.targetMemoryUtilizationPercentagestring""Target average memory utilisation.
branding.appNamestring"oafpass"Product name shown in the UI and page title (--app-name).
branding.logoUrlstring""URL of a logo served in the header (--logo-url).
branding.themeDarkstring""Built-in dark theme (--theme-dark), e.g. dim.
branding.themeLightstring""Built-in light theme (--theme-light), e.g. emerald.
database.memcached.enabledbooltrueDeploy the bundled single-replica memcached. Turn it off to point at database.memcachedAddress instead.
database.memcached.extraArgslist[]Extra args for the memcached container.
database.memcached.image.pullPolicystring"IfNotPresent"Memcached image pull policy.
database.memcached.image.repositorystring"memcached"Memcached image repository.
database.memcached.image.tagstring"1.6-alpine"Memcached image tag.
database.memcached.memoryLimitMbint64Memcached cache size in MiB (-m). This is the ceiling on all live secrets at once; memcached evicts the oldest when it fills.
database.memcached.resourcesobject{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"25m","memory":"96Mi"}}Resources for the memcached container.
database.memcachedAddressstring""Memcached address used when database.memcached.enabled=false (--memcached).
database.redis.existingSecretstring""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.existingSecretUrlKeystring"redis-url"Key holding the Redis URL in that Secret.
database.redis.urlstring""Redis connection URL (--redis), e.g. redis://redis.tools:6379/0. Only read when database.type=redis.
database.typestring"memcached"Backend type: memcached or redis (--database).
extraArgslist[]Extra flags for the Yopass server, e.g. ["--file-store=s3"].
extraEnvobject{}Extra environment variables for the Yopass container.
extraEnvFromlist[]Extra environment variables sourced from existing ConfigMaps/Secrets.
extraVolumeMountslist[]Extra volume mounts on the Yopass container.
extraVolumeslist[]Extra volumes on the Deployment.
fullnameOverridestring""Override the full resource name prefix (usually <release>-<chart>).
image.pullPolicystring"IfNotPresent"Image pull policy.
image.repositorystring"jhaals/yopass"Yopass image repository.
image.tagstring""Image tag. Defaults to the chart appVersion when empty.
imagePullSecretslist[]Image pull secrets for the Yopass and sidecar images.
ingress.annotationsobject{}Annotations for the Ingress.
ingress.classNamestring""ingressClassName of the Ingress.
ingress.enabledboolfalseDeploy an Ingress for Yopass.
ingress.hostslist[{"host":"oafpass.local","paths":[{"path":"/","pathType":"Prefix"}]}]Ingress hosts and paths.
ingress.tlslist[]Ingress TLS configuration.
license.enabledboolfalseSet 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.keystring""Yopass licence key. Prefer delivering it through the Secret (secret.licenseKey) rather than here.
livenessProbeobject{"httpGet":{"path":"/health","port":"http"},"initialDelaySeconds":10,"periodSeconds":20}Liveness probe for the Yopass container. Probes hit Yopass directly, not through oauth2-proxy.
nameOverridestring""Override the chart name used in resource names.
nodeSelectorobject{}Node selector for the pods.
oafpass.argon2boolfalseUse Argon2id for password key derivation (--argon2). Slower, stronger.
oafpass.auditLogboolfalseEmit 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.auditLogFilestring""Write the audit log to this path instead of stdout (--audit-log-file). Needs a writable volume — see extraVolumes / extraVolumeMounts.
oafpass.corsAllowOriginstring""CORS allow-origin header (--cors-allow-origin). Chart default is the public URL only; set "*" to restore the upstream default.
oafpass.defaultExpirystring"1h"Default expiry offered in the UI (--default-expiry). Yopass accepts 1h, 1d or 1w and rejects anything else at startup.
oafpass.disableSecretRequestsboolfalseDisable the secret-request feature (--disable-secret-requests).
oafpass.disableUploadboolfalseDisable file uploads (--disable-upload).
oafpass.forceExpirationstring""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.forceOnetimeSecretsboolfalseForce every secret to be one-time only (--force-onetime-secrets).
oafpass.imprintUrlstring""URL of an imprint linked in the footer (--imprint-url).
oafpass.logLevelstring"info"Log level: debug, info, warn or error (--log-level).
oafpass.maxFileSizestring"512KB"Maximum upload size (--max-file-size). Ignored when uploads are off.
oafpass.maxLengthint10000Maximum secret length in characters (--max-length).
oafpass.metricsPortint-1Prometheus 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartoafpass is pinned at v0.1.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