Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)48k · #5692

secrets-management

Skill này làm gì

Tool này giúp quản lý an toàn mật khẩu và khóa truy cập cho các hệ thống tự động, như những hệ thống dùng trong phát triển phần mềm. Nó đảm bảo chỉ những chương trình phù hợp mới được truy cập thông tin nhạy cảm.

Khi nào nên dùng

  • ✓Khi bạn thiết lập truy cập cơ sở dữ liệu an toàn cho một ứng dụng.
  • ✓Khi bạn cấp quyền cho một hệ thống tự động chạy các tác vụ.
  • ✓Khi bạn lên kế hoạch thay đổi mật khẩu định kỳ.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/secrets-management/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/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/secrets-management/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

“Làm sao để thiết lập quyền truy cập an toàn để ứng dụng của tôi dùng khóa API của dịch vụ X?”

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

Cách hoạt động

Tool chọn một nơi lưu trữ mật khẩu an toàn (như Vault hoặc dịch vụ đám mây). Nó xác định ai được truy cập những gì và cách cập nhật mật khẩu mà không làm lộ dữ liệu.

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 Management

When to Use

Design or repair secret retrieval, CI credentials, workload identity, access policies and rotation for an authorized system.

Inputs

Identify secret names and owners, consumers, environments, authentication mechanism and the rotation/recovery policy. Inspect configuration without displaying values.

Procedure

  1. Choose the existing supported backend: Vault, a cloud secret manager or the host's protected secret store. Keep environment boundaries and minimum privileges explicit.
  2. For Vault, read references/vault-setup.md. Development mode and root tokens are not production configuration.
  3. For GitHub Actions, read references/github-secrets.md. Keep pull-request validation separate from privileged jobs. Supply values to the consuming process, never interpolate them into generated shell source or print them for debugging.
  4. Prefer short-lived workload identity when the backend supports it. Check issuer, audience, workload/environment restrictions and denied access before enabling retrieval.
  5. Rotate through prepare, consumer switch, verification and old-credential revocation. Use the backend's supported rotation protocol; retries must not leave the database and secret store on different credentials.
  6. Inspect logs, error paths, artifacts and crash reports with synthetic secret markers. Record metadata such as operation, principal and outcome rather than values.

Example

A deployment needs a database credential. The trusted job retrieves it through the configured identity and passes it only to the migration process. Test missing access and an expired identity in staging. Verify no credential appears in output, and that a failed rotation leaves a recoverable working state.

Verification

  • Authorized retrieval succeeds; a different workload or environment is denied.
  • Missing credentials fail closed without exposing values.
  • Rotation and rollback are exercised with synthetic data.
  • Logs and artifacts contain no secret markers, including on failure.
  • Exposed credentials are revoked or rotated; merely deleting their log entry is insufficient.

Limitations

Masking cannot make logging secrets safe. Secret data can persist in infrastructure state, subprocess environments or backups; review those boundaries explicitly. Do not alter real credentials or deploy secret infrastructure without authorization.

Sources

Câu hỏi thường gặp

“Secrets” là gì?

Secrets là thông tin nhạy cảm như mật khẩu, khóa API hoặc chứng chỉ cần được bảo vệ.

Vì sao không thể đặt mật khẩu trực tiếp trong code?

Đặt mật khẩu trực tiếp trong code rất nguy hiểm. Nếu code bị người không được phép nhìn thấy, mật khẩu cũng sẽ bị lộ, làm giảm mức độ bảo mật.

“Secret rotation” là gì?

Đó là quá trình thay đổi định kỳ mật khẩu hoặc khóa bằng cái mới. Điều này giảm rủi ro nếu mật khẩu cũ bị lộ.

Chi tiết

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

Secure secrets management practices for CI/CD pipelines using Vault, AWS Secrets Manager, and other tools.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#5692
Giấy phép
MIT
Cập nhật
15/10/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ự