Integrate Kubernetes Secrets with 1Password, and auto-restart deployments when 1Password items are updated
open sourceMITself-hostablefree
The 1Password Connect Kubernetes Operator is 1Password's official operator that turns 1Password items into Kubernetes Secrets and keeps them in sync. You declare a OnePasswordItem custom resource with a vault and item path, or annotate a Deployment, and the operator creates a Secret whose keys are the item's fields; it polls 1Password every 600 seconds by default, updates the Secret when the item changes and can give the Deployments that use it a rolling restart. It authenticates with a 1Password service account token or through a self-hosted Connect server, and installs with 1Password's Connect Helm chart or from manifests. It's part of 1Password Secrets Automation and MIT licensed; use of the 1Password APIs follows 1Password's API terms.
Ways to install
Problems it solves
- our team's credentials live in a password manager vault but our apps read Kubernetes Secrets
- rotate a credential in the vault and have pods pick up the new value without a manual redeploy
- restart the deployments that use a secret automatically when its value changes in our vault
- stop copying values out of our password vault into kubectl create secret by hand
- sync vault items into Secrets without running an extra server in the cluster
- commit only a reference to where a secret lives in our vault, never the value, to our GitOps repo
- freeze one Secret so edits to its vault item don't roll out until we're ready
- file attachments stored in our password manager as Kubernetes Secret values
- limit which namespaces can pull secrets from our team vault
- cache vault reads inside the cluster so frequent syncs don't hit API rate limits
Features
- OnePasswordItem custom resource (short name opi) creates a Kubernetes Secret from an item path
- Deployment annotations operator.1password.io/item-path and item-name create a Secret for that Deployment
- item fields become Secret keys; file fields use the file's contents
- POLLING_INTERVAL (default 600 seconds) keeps Secrets in sync
- AUTO_RESTART rolling restarts at operator, namespace, Deployment or OnePasswordItem level
- operator.1password.io:ignore-secret tag on an item stops its Secret from updating
- WATCH_NAMESPACE to limit the watched namespaces
- authentication with a 1Password service account token or a Connect server (MANAGE_CONNECT can deploy one)
- --enable-annotations for custom annotations on generated Secrets; --allow-empty-values
- Helm chart (1Password's connect chart with operator.create) or manual deployment
Limitations
- Doesn't inject secrets into pods directly: it creates Kubernetes Secrets, so new values reach environment variables only after a restart3
- Can't pick individual secrets granularly or use several 1Password credentials at once in one operator34
Capabilities
| Has an API | plan not known |
|---|
Alternatives
The same job
These do what 1Password Connect Kubernetes Operator does.
- External Secrets Operator Sync secrets from external secret managers into Kubernetes Secrets
- Vault Secrets Operator Lets Pods consume Vault secrets natively from Kubernetes Secrets
- Kubernetes Secrets Store CSI Driver Integrates secrets stores with Kubernetes via a CSI volume.
Compare 1Password Connect Kubernetes Operator with the top 3
