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.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
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
- Choose the existing supported backend: Vault, a cloud secret manager or the host's protected secret store. Keep environment boundaries and minimum privileges explicit.
- For Vault, read
references/vault-setup.md. Development mode and root tokens are not production configuration. - 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. - Prefer short-lived workload identity when the backend supports it. Check issuer, audience, workload/environment restrictions and denied access before enabling retrieval.
- 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.
- 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.
Độ 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
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.