Chuyển đến nội dung
Skillpedia
Bảo mật29k · #9599

secrets-vault-manager

Skill này làm gì

Skill này giúp đội thiết lập và vận hành các hệ thống lưu mật khẩu, khóa API và chứng chỉ. Skill dành cho kỹ sư chịu trách nhiệm quản lý bí mật và tuân thủ bảo mật.

Khi nào nên dùng

  • ✓Khi bạn đang thiết lập HashiCorp Vault hoặc trình quản lý bí mật trên cloud.
  • ✓Khi bạn cần xoay vòng mật khẩu, khóa API hoặc chứng chỉ theo lịch.
  • ✓Khi bạn cần xem ai đã truy cập bí mật để phục vụ kiểm toán.

Liên kết skill

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/secrets-vault-manager/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/secrets-vault-manager/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Giúp tôi thiết lập HashiCorp Vault cho đội và lên kế hoạch xoay vòng mật khẩu cơ sở dữ liệu.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill tạo cấu hình cho kho bí mật, lên kế hoạch các bước xoay vòng khóa và mật khẩu, rồi xem nhật ký kiểm toán để cho thấy bí mật đã được truy cập như thế nào.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Secrets Vault Manager

Tier: POWERFUL Category: Engineering Domain: Security / Infrastructure / DevOps


Overview

Production secret infrastructure management for teams running HashiCorp Vault, cloud-native secret stores, or hybrid architectures. This skill covers policy authoring, auth method configuration, automated rotation, dynamic secrets, audit logging, and incident response.

Distinct from env-secrets-manager which handles local .env file hygiene and leak detection. This skill operates at the infrastructure layer — Vault clusters, cloud KMS, certificate authorities, and CI/CD secret injection.

When to Use

  • Standing up a new Vault cluster or migrating to a managed secret store
  • Designing auth methods for services, CI runners, and human operators
  • Implementing automated credential rotation (database, API keys, certificates)
  • Auditing secret access patterns for compliance (SOC 2, ISO 27001, HIPAA)
  • Responding to a secret leak that requires mass revocation
  • Integrating secrets into Kubernetes workloads or CI/CD pipelines

HashiCorp Vault Patterns

Architecture Decisions

Decision Recommendation Rationale
Deployment mode HA with Raft storage No external dependency, built-in leader election
Auto-unseal Cloud KMS (AWS KMS / Azure Key Vault / GCP KMS) Eliminates manual unseal, enables automated restarts
Namespaces One per environment (dev/staging/prod) Blast-radius isolation, independent policies
Audit devices File + syslog (dual) Vault refuses requests if all audit devices fail — dual prevents outages

Auth Methods

AppRole — Machine-to-machine authentication for services and batch jobs.

# Enable AppRole
path "auth/approle/*" {
  capabilities = ["create", "read", "update", "delete", "list"]
}

# Application-specific role
vault write auth/approle/role/payment-service \
  token_ttl=1h \
  token_max_ttl=4h \
  secret_id_num_uses=1 \
  secret_id_ttl=10m \
  token_policies="payment-service-read"

Kubernetes — Pod-native authentication via service account tokens.

vault write auth/kubernetes/role/api-server \
  bound_service_account_names=api-server \
  bound_service_account_namespaces=production \
  policies=api-server-secrets \
  ttl=1h

OIDC — Human operator access via SSO provider (Okta, Azure AD, Google Workspace).

vault write auth/oidc/role/engineering \
  bound_audiences="vault" \
  allowed_redirect_uris="https://vault.example.com/ui/vault/auth/oidc/oidc/callback" \
  user_claim="email" \
  oidc_scopes="openid,profile,email" \
  policies="engineering-read" \
  ttl=8h

Secret Engines

Engine Use Case TTL Strategy
KV v2 Static secrets (API keys, config) Versioned, manual rotation
Database Dynamic DB credentials 1h default, 24h max
PKI TLS certificates 90d leaf certs, 5y intermediate CA
Transit Encryption-as-a-service Key rotation every 90d
SSH Signed SSH certificates 30m for interactive, 8h for automation

Policy Design

Follow least-privilege with path-based granularity:

# payment-service-read policy
path "secret/data/production/payment/*" {
  capabilities = ["read"]
}

path "database/creds/payment-readonly" {
  capabilities = ["read"]
}

# Deny access to admin paths explicitly
path "sys/*" {
  capabilities = ["deny"]
}

Policy naming convention: {service}-{access-level} (e.g., payment-service-read, api-gateway-admin).


Cloud Secret Store Integration

Comparison Matrix

Feature AWS Secrets Manager Azure Key Vault GCP Secret Manager
Rotation Built-in Lambda Custom logic via Functions Cloud Functions
Versioning Automatic Manual or automatic Automatic
Encryption AWS KMS (default or CMK) HSM-backed Google-managed or CMEK
Access control IAM policies + resource policy RBAC + Access Policies IAM bindings
Cross-region Replication supported Geo-redundant by default Replication supported
Audit CloudTrail Azure Monitor + Diagnostic Logs Cloud Audit Logs
Pricing model Per-secret + per-API call Per-operation + per-key Per-secret version + per-access

When to Use Which

  • AWS Secrets Manager: RDS/Aurora credential rotation out of the box. Best when fully on AWS.
  • **Azur
Câu hỏi thường gặp

Nó hỗ trợ những kho bí mật nào?

HashiCorp Vault, AWS Secrets Manager, Azure Key Vault và GCP Secret Manager.

Có giống kiểm tra file .env có bị lộ không?

Không, đó là một skill khác; skill này làm việc ở tầng hạ tầng.

Nó có giúp được sau khi bị lộ bí mật không?

Có, nó bao gồm việc ứng phó khi một bí mật bị lộ và cần thu hồi hàng loạt.

Chi tiết

Mô tả gốc của tác giả

Use when setting up HashiCorp Vault, AWS Secrets Manager, Azure Key Vault or GCP Secret Manager, rotating secrets or auditing secret access. Generates config with vault_config_generator.py, plans rotation with rotation_planner.py and analyzes audit logs.

repo: alirezarezvani/claude-skills

Độ phổ biến

Sao GitHub
29k
Vị trí xếp hạng
#9599
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự