Skip to content

Security & secrets: Vault

Vault commands from the Security & secrets folder.

Index
2 items

Vault: Log in with OIDC

Safe

Browser-based SSO login; stores a token in ~/.vault-token.

vault login -method=oidc role=<role>
What each part does
  1. vault loginauthenticate and store a token in ~/.vault-token
  2. -method=oidcsign in through the browser with your SSO provider
  3. role=<role>the OIDC role configured in Vault (decides your policies)

Also known as: vault login · permission denied vault

Vault: Read a KV secret

Caution

Read the latest version of a KV v2 secret. Add -field=<key> for a single value.

vault kv get -mount=<mount> <path>
What each part does
  1. vault kv getread a secret from a KV engine (v1 or v2)
  2. -mount=<mount>where the engine is mounted, e.g. secret
  3. <path>path inside the mount, e.g. myapp/db; add -field=password for one value

Also known as: vault kv · read secret

My DevOps Playbook by Angelo John Calleja

New runbook

GitHub not connected

Saving is handled by the site: the GitHub token is stored in Cloudflare, not in your browser. Enter the editor password (the EDITOR_PASSWORD secret) to unlock saving in this browser.

Saving commits to gelogrammer/My_DevOps_Playbook. Create a fine-grained token with access to only this repo andContents: Read and write, then paste it here. It is stored only in this browser.

src/content/docs/…