opkube

CLI utility for transferring secrets betweeen Kubernetes and 1Password

Usage no npm install needed!

<script type="module">
  import opkube from 'https://cdn.skypack.dev/opkube';
</script>

README

opkube

CLI utility for transferring secrets betweeen Kubernetes and 1Password

Installation

npm install opkube

Usage

You need the op binary available in $PATH.

# Sign in with op
eval $(op signin myteam)

# Create kubernetes secrets from 1P vault items
opkube from-vault myvault | kubectl create -f -

# Store kubernetes secrets in 1Password vault
kubectl get secrets | opkube to-vault myvault

# Install shell completion (bash, zsh, fish)
opkube --install-completion

# Uninstall shell completion
opkube --uninstall-completion

Secrets in 1Password

A secret is represented as a Secure Note. Single line values are stored as key/value pairs under a section titled data, while multiline values are stored as linked documents.

1Password secure notes must be tagged secret te be considered by opkube.