AGENT SKILL

integrating-secrets-managers

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 detected. Trigger with relevant phrases based on skill purpose.

License 许可
MIT
最近更新
2026-05-26
Stars
★ 0
Forks
0

01 前言 Front Matter

name
integrating-secrets-managers
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
version
1.0.0
description
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 detected. Trigger with relevant phrases based on skill purpose.
allowed-tools
Read, Write, Edit, Grep, Glob, Bash(cmd:*)
compatible-with
claude-code, codex, openclaw

02 资源文件 7

03 SKILL.md 正文

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

  • Secrets manager instance running and accessible (Vault server, AWS Secrets Manager enabled)
  • Cloud provider CLI authenticated or Vault CLI installed (vault, aws, gcloud, az)
  • IAM/policy permissions to create secrets and access policies
  • Understanding of which application components need which secrets
  • Network connectivity between application workloads and the secrets manager endpoint

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

  • Vault policies (HCL) or IAM policies (JSON) for secret access
  • Authentication configuration (Vault K8s auth, AWS IAM role, GCP Workload Identity)
  • Application code snippets for secret retrieval (SDK-based or environment variable injection)
  • Secret rotation configuration (AWS rotation Lambda, Vault dynamic secrets)
  • Kubernetes External Secrets Operator or CSI SecretProviderClass manifests

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

  • "Integrate HashiCorp Vault with a Kubernetes deployment using the Vault Agent sidecar injector to inject database credentials as environment variables."
  • "Set up AWS Secrets Manager with automatic rotation every 30 days for an RDS PostgreSQL password, with a Lambda rotation function."
  • "Replace all hardcoded API keys in the application with GCP Secret Manager references using Workload Identity for authentication."

Resources

04 同仓库更多 Skills

SamuelChien
SamuelChien/mega-skills-collection

zustand-store-ts

Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zustand-store-creator

Zustand Store Creator - Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zero-trust-config-helper

Zero Trust Config Helper - Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zapier-integration-helper

Zapier Integration Helper - Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zai-cli

Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP. Use when user needs image/video analysis, OCR, UI-to-code conversion, error diagnosis, real-time web search, web page to markdown extraction, or GitHub code exploration. Trigger with phrases like "analyze this image", "search the web for", "read this page", "explore this repo", or "use zai". Requires Z_AI_API_KEY.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

yt-research

Research competitor YouTube channels, niches, and trending topics for your content strategy. Use this skill whenever the user says "research channels", "analyze competitors", "find trending topics", "niche analysis", "competitive research", "what are other creators doing", "scrape YouTube channels", or wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.

★ 0