Vault & Secrets Management

Manage HashiCorp Vault secrets and lifecycle for Kubernetes deployments.

1|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/colek42/claude-plugins --skill vault-secrets-management
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Vault & Secrets Management
Source: https://github.com/colek42/claude-plugins/tree/main/nk-devops-tools/skills/vault-secrets
Command: npx skills add https://github.com/colek42/claude-plugins --skill vault-secrets-management

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides HashiCorp Vault and External Secrets Operator (ESO) best practices, ensuring secure, automated secrets management in Kubernetes. It guides users through Vault's lifecycle, preventing common security missteps and simplifying secret rotation.

Core Features & Use Cases

  • Vault Lifecycle Management: Guides on initializing Vault (make vault-init) and unsealing it after restarts (make vault-unseal).
  • External Secrets Operator Integration: Explains how ESO automates Kubernetes Secret creation directly from Vault, eliminating manual secret handling.
  • Security Best Practices: Emphasizes never committing Vault keys to Git and using environment variables or ESO for secrets in code.
  • Use Case: A developer needs to add a new API key to an application. This skill guides them to store it securely in Vault, define an ExternalSecret Custom Resource, and ensures the secret is automatically provisioned to Kubernetes, avoiding hardcoding and manual secret management.

Quick Start

Initialize Vault (run once for a new instance)

make vault-init

Unseal Vault (required after pod restarts)

make vault-unseal

Example ExternalSecret to sync a secret from Vault to Kubernetes

apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret metadata: name: app-secrets spec: refreshInterval: 1h secretStoreRef: name: vault-backend kind: SecretStore target: name: app-secrets creationPolicy: Owner data: - secretKey: api-key remoteRef: key: secret/data/app property: api_key

Frequently Asked Questions about Vault & Secrets Management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I securely manage secrets in Kubernetes without hardcoding them?

Use Vault with External Secrets Operator to automatically sync secrets from Vault into Kubernetes Secrets. This eliminates hardcoding and ensures secrets never appear in code or Git repositories, meeting security best practices for Kubernetes deployments.

What's the best way to initialize and unseal Vault for Kubernetes?

Run `make vault-init` once to initialize a new Vault instance, then run `make vault-unseal` after pod restarts to restore access. This automates Vault's lifecycle management and prevents manual key handling errors in production.

How does External Secrets Operator integrate with Vault?

ESO watches ExternalSecret Custom Resources and automatically pulls secrets from Vault based on their specifications, then creates or updates corresponding Kubernetes Secrets. This eliminates manual secret provisioning and enables automated secret rotation.

Can I use External Secrets Operator to populate secrets from Vault automatically?

Yes. Define an ExternalSecret resource with a reference to your Vault SecretStore, specify the secret key and remote path in Vault, and ESO automatically syncs and refreshes the Kubernetes Secret on your defined interval.

What security precautions should I take with Vault keys?

Never commit Vault initialization keys or unsealing keys to Git. Store keys securely using environment variables or external key management systems, and rotate them regularly to maintain security in Kubernetes environments.

Does Vault work with DevOps workflows in Kubernetes clusters?

Yes. Vault is purpose-built for DevOps and Kubernetes environments, providing centralized secrets management, automated rotation, and audit logging. It integrates seamlessly with External Secrets Operator for fully automated secret provisioning in clusters.