yopass

by Cloudhippie

Helm chartv11.6.0App 16.3.0Apache-2.0Verified publisher

Secure sharing of secrets, passwords and files

About this chart

yopass

Secure sharing of secrets, passwords and files

Homepage: https://yopass.se/

This chart is not maintained by the upstream project and any issues with the chart should be raised here

Installing the Chart

OCI (Recommended)

helm install yopass oci://ghcr.io/cloudhippie/charts/yopass

Traditional

helm repo add cloudhippie https://cloudhippie.github.io/charts
helm repo update
helm install yopass cloudhippie/yopass

Example for Values

Ingress Enabled

ingress:
  enabled: true

  hosts:
    - host: yopass.example.com
      paths:
        - path: /
          pathType: Prefix

Redis Storage

Warning: Use this deployment only for testing, we recommend a proper deployment based on some operator to have a real lifecycle management.

database:
  type: redis
  dsn: redis://redis:6379/0

redis:
  enabled: true

memcached:
  enable: false

Memcached Storage

Warning: Use this deployment only for testing, we recommend a proper deployment based on some operator to have a real lifecycle management.

database:
  type: memcached
  dsn: memcached:11211

redis:
  enabled: false

memcached:
  enable: true

Maintainers

NameEmailUrl
tboerger[email protected]https://github.com/tboerger

Source Code

Requirements

RepositoryNameVersion
oci://registry-1.docker.io/cloudpiratesmemcached0.14.14
oci://registry-1.docker.io/cloudpiratesredis0.42.0

Values

KeyTypeDefaultDescription
affinityobject{}Affinity for the deployment
annotationsobject{}Define additional annotations
config.maxLengthint10000Max length of encrypted secret
database.dsnstring"memcached:11211"DSN to access the database
database.typestring"memcached"Type of database backend
envFromConfigMapslist[]List of environment variables from existing configmaps
envFromSecretslist[]List of environment variables from existing secrets
extraEnvSecretsobject{}Extra environment variables from secrets
extraEnvVariablesobject{}Extra environment variables from mapping
extraInitContainerslist[]List of extra init containers
extraSidecarContainerslist[]List of extra sidecar containers
extraVolumeMountslist[]List of extra volume mounts
extraVolumeslist[]List of extra volumes
fullnameOverridestring""Override the fullname
image.pullPolicystring"IfNotPresent"Image pull policy
image.pullSecretslist[]Optional name of pull secret if using a private registry
image.repositorystring"jhaals/yopass"Image repository used by deployment
image.tagstring""Optional tag for the repository, defaults to app version
ingress.annotationsobject{}Additional annotations for the ingress
ingress.classNamestringnilClass name for the ingress resource
ingress.enabledboolfalseEnable ingress
ingress.hostslist[{"host":"example.local","paths":[{"path":"/","pathType":"Prefix"}]}]Host definition for ingress
ingress.labelsobject{}Additional labels for the ingress
ingress.tlslist[]Optional TLS configuration for ingress
labelsobject{}Define additional labels
memcached.enabledboolfalseEnable memcached dependency
memcached.fullnameOverridestring"memcached"Override fullname of memcached dependency
metrics.enabledbooltrueEnable metrics
metrics.internalPortint3001Internal metrics port of the service
metrics.portint3001Metrics port of the service
metrics.serviceMonitor.annotationsobject{}Additional annotations for the service monitor
metrics.serviceMonitor.enabledboolfalseEnable service monitor
metrics.serviceMonitor.honorLabelsboolfalseHonorLabels chooses the metric’s labels on collisions with target labels
metrics.serviceMonitor.intervalstringnilInterval at which metrics should be scraped
metrics.serviceMonitor.jobLabelstringnilOptional job label for the target service in Prometheus
metrics.serviceMonitor.labelsobject{}Additional labels for the service monitor
metrics.serviceMonitor.metricRelabelingslist[]List of metric relabel configs to apply to samples before ingestion
metrics.serviceMonitor.namespacestringnilNamespace for ServiceMonitor, defaults to release namespace
metrics.serviceMonitor.relabelingslist[]List of relabel configs to apply to samples before scraping
metrics.serviceMonitor.scrapeTimeoutstringnilTimeout after which the scrape is ended
nameOverridestring""Override the name
networkPolicy.allowExternalEgressbooltrueAllow any egress traffic to external sources
networkPolicy.allowExternalIngressbooltrueAllow any ingress traffic from external sources
networkPolicy.egressMemcachedMatchlist[{"podSelector":{"matchLabels":{"app.kubernetes.io/name":"memcached"}}}]Match to allow egress traffic to Memcached service
networkPolicy.egressMemcachedPortint11211Egress port for Memcached service
networkPolicy.egressRedisMatchlist[{"podSelector":{"matchLabels":{"app.kubernetes.io/name":"redis"}}}]Match to allow egress traffic to Redis service
networkPolicy.egressRedisPortint6379Egress port for Redis service
networkPolicy.enabledboolfalseSpecifies whether a NetworkPolicy should be created
networkPolicy.extraEgresslist[]List of extra egress rules to the NetworkPolicy
networkPolicy.extraIngresslist[]List of extra ingress rules to the NetworkPolicy
networkPolicy.generalEgresslist[{"ports":[{"port":53,"protocol":"UDP"},{"port":53,"protocol":"TCP"}]}]List of general egress rules to the NetworkPolicy
networkPolicy.ingressMetricsMatchlist[]Match to allow ingress traffic to metrics port
networkPolicy.ingressServiceMatchlist[]Match to allow ingress traffic to service port
nodeSelectorobject{}Node selector for the deployment
podSecurityContextobject{}Security context for the pod
readOnlyobject{"affinity":{},"enabled":false,"envFromConfigMaps":[],"envFromSecrets":[],"extraEnvSecrets":{},"extraEnvVariables":{},"ingress":{"annotations":{},"className":null,"enabled":false,"hosts":[{"host":"example.local","paths":[{"path":"/","pathType":"Prefix"}]}],"labels":{},"tls":[]},"nodeSelector":{},"replicaCount":null,"resources":{},"service":{"annotations":{},"enabled":true,"internalPort":null,"labels":{},"port":null,"type":null},"tolerations":[]}Optional second deployment in read-only mode
readOnly.affinityobject{}Affinity for the read-only deployment (defaults to .Values.affinity)
readOnly.enabledboolfalseEnable rendering a second, read-only instance (resources suffixed with -readonly)
readOnly.envFromConfigMapslist[]List of environment variables from existing configmaps for read-only instance
readOnly.envFromSecretslist[]List of environment variables from existing secrets for read-only instance
readOnly.extraEnvSecretsobject{}Extra environment variables from secrets for read-only instance
readOnly.extraEnvVariablesobject{}Extra environment variables for read-only instance
readOnly.ingress.annotationsobject{}Additional annotations for the read-only ingress
readOnly.ingress.classNamestringnilClass name for the ingress resource
readOnly.ingress.enabledboolfalseEnable ingress for read-only instance
readOnly.ingress.hostslist[{"host":"example.local","paths":[{"path":"/","pathType":"Prefix"}]}]Host definition for read-only ingress
readOnly.ingress.labelsobject{}Additional labels for the read-only ingress
readOnly.ingress.tlslist[]Optional TLS configuration for read-only ingress
readOnly.nodeSelectorobject{}Node selector for the read-only deployment (defaults to .Values.nodeSelector)
readOnly.replicaCountintnilReplicas for the read-only deployment (defaults to .Values.replicaCount)
readOnly.resourcesobject{}Resources for the read-only deployment (defaults to .Values.resources)
readOnly.service.annotationsobject{}Additional annotations for the read-only service
readOnly.service.enabledbooltrueEnable Service for read-only instance
readOnly.service.internalPortintnilInternal port of the read-only service (defaults to .Values.service.internalPort)
readOnly.service.labelsobject{}Additional labels for the read-only service
readOnly.service.portintnilPort of the read-only service (defaults to .Values.service.port)
readOnly.service.typestringnilType of the read-only service (defaults to .Values.service.type)
readOnly.tolerationslist[]Tolerations for the read-only deployment (defaults to .Values.tolerations)
redis.auth.enabledboolfalse
redis.enabledboolfalseEnable redis dependency
redis.fullnameOverridestring"redis"Override fullname of redis dependency
replicaCountint1Replicas for the deployment
resourcesobject{"limits":{},"requests":{"cpu":"100m","memory":"64Mi"}}Resources for the deployment
securityContextobject{}Security context for the deployment
service.annotationsobject{}Additional annotations for the service
service.internalPortint3000Internal port of the service
service.labelsobject{}Additional labels for the service
service.portint3000Port of the service
service.typestring"ClusterIP"Type of the service
serviceAccount.annotationsobject{}Define annotations for the service account
serviceAccount.automountTokenboolfalseAutomount service account token
serviceAccount.createbooltrueCreate a new service account
serviceAccount.namestring""Optional name for an existing service account
tolerationslist[]Tolerations for the deployment
updateStrategyobject{"type":"Recreate"}Updaqte strategy for deployment

Read-Only Mode & Split Deployments

Read-only mode disables all secret creation endpoints while keeping retrieval fully functional. This chart can deploy an optional second instance in read-only mode within the same release.

Enable read-only instance

readOnly:
  enabled: true
  ingress:
    enabled: true
    hosts:
      - host: yopass.example.com
        paths:
          - path: /
            pathType: Prefix

Resources created for the read-only instance are suffixed with -readonly (Deployment, Service, Ingress). Both instances share the same database configured via .Values.database.*.

In read-only mode the server is started with --read-only. Endpoint behavior:

EndpointBehavior
POST /create/secret404 Not Found
POST /create/file404 Not Found
GET /secret/{key}Active
GET /file/{key}Active
DELETE /secret/{key}Active

The frontend detects READ_ONLY: true from the /config endpoint and shows a read-only landing page instead of the create form.

Split deployment pattern (one release)

Deploy one Helm release with both instances sharing one database:

database:
  type: memcached
  dsn: memcached:11211

memcached:
  enabled: true

ingress:
  enabled: true
  hosts:
    - host: internal.example.com
      paths:
        - path: /
          pathType: Prefix

readOnly:
  enabled: true
  ingress:
    enabled: true
    hosts:
      - host: yopass.example.com
        paths:
          - path: /
            pathType: Prefix

Both instances connect to the same Memcached or Redis database. Secrets created on the internal instance can be retrieved via the public read-only instance.

OIDC on internal, public read-only

Require authentication only on the internal instance while the public instance remains open for retrieval:

extraEnvVariables:
  REQUIRE_AUTH: "true"
  OIDC_ISSUER: https://accounts.google.com
  OIDC_CLIENT_ID: "123456789-abc.apps.googleusercontent.com"
  OIDC_CLIENT_SECRET: "GOCSPX-..."
  OIDC_REDIRECT_URL: https://internal.example.com/auth/callback
  OIDC_ALLOWED_DOMAIN: example.com

readOnly:
  enabled: true
  # no auth variables here

Notes:

  • Deletion of one-time secrets happens automatically via DELETE /secret/{key} when a recipient opens a secret; this endpoint remains active in read-only mode intentionally.
  • If you use a CDN or caching layer in front of the public instance, ensure retrieval endpoints (GET /secret/*, GET /file/*) are not cached.

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 v11.6.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