Integrating secrets managers

From jeremylongshore/claude-code-plugins-plus-skills · View interactive version

Integrating secrets managers is an AI agent skill from the GitHub repository jeremylongshore/claude-code-plugins-plus-skills. Manage this skill enables AI assistant to seamlessly integrate with various secrets managers like hashicorp vault and aws secrets manager. it generates configurations and setup code, ensuring best practices for secure credential management. use this skill when... Use when appropriate context detecte

How to use this skill

Skill file

Integrating Secrets Managers

Overview

Integrate secrets management platforms (HashiCorp Vault, AWS Secrets Manager, GCP Secret Manager, Azure Key Vault) into applications and infrastructure. Generate authentication configurations, access policies, secret rotation schedules, and application code patterns for secure credential retrieval at runtime.

Prerequisites

Instructions

  1. Inventory all secrets currently in use: database credentials, API keys, TLS certificates, OAuth tokens
  2. Select the secrets manager based on infrastructure: Vault for multi-cloud, AWS Secrets Manager for AWS-native, GCP Secret Manager for GCP
  3. Create the secrets store structure: organize by application, environment, and secret type (e.g., apps/myapp/prod/database)
  4. Generate access policies with least-privilege: each application identity gets read access only to its own secrets
  5. Configure authentication method: Kubernetes service account (Vault K8s auth), IAM role (AWS), Workload Identity (GCP)
  6. Implement secret retrieval in the application: SDK call at startup, sidecar injection (Vault Agent), or CSI driver mount
  7. Set up automatic secret rotation: define rotation lambda/function, rotation interval, and notification on rotation events
  8. Remove hardcoded secrets from code and configuration files; replace with secret references
  9. Add monitoring: alert on secret access failures, rotation failures, and unauthorized access attempts

Output

Error Handling

| Error | Cause | Solution |

|-------|-------|---------|

| permission denied on secret read | Policy does not grant access to the requested path | Update Vault policy or IAM policy to include the specific secret ARN/path |

| Vault token expired | Authentication token TTL exceeded | Configure token renewal or use short-lived tokens with auto-renewal via Vault Agent |

| Secret not found | Secret path/name incorrect or secret deleted | Verify the secret exists with vault kv get or aws secretsmanager describe-secret |

| Rotation failed | Rotation function lacks permissions or target service unreachable | Check rotation function logs; verify it has permissions to update credentials on the target service |

| Connection refused to Vault | Vault server down or network policy blocking access | Verify Vault is running and healthy; check network policies/firewalls between application and Vault |

Examples

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.