secrets-security
Zero hardcoded secrets, automated pre-commit scanning, centralized secret managers, ephemeral tokens, and automated log redaction
- License 许可
- MIT
- 最近更新
- 2026-10-16
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- secrets-security
- description
- Zero hardcoded secrets, automated pre-commit scanning, centralized secret managers, ephemeral tokens, and automated log redaction
02 资源文件 7
- 参考文档checks/secrets-security-checklist.md658 B
- 参考文档examples/aws_secrets_manager_usage.md2.4 KB
- 参考文档manifest.json1.7 KB
- 参考文档references/secrets-management.md1.9 KB
- 脚本scripts/scan_secrets.sh57 B
- 脚本scripts/verify.sh4.0 KB
- 参考文档templates/secrets-security-report.md1.1 KB
03 SKILL.md 正文
Secrets & Credential Protection
1. Zero Hardcoded Secrets Invariant
Enforce an absolute ban on plaintext secrets (API keys, private keys, database passwords, webhook signing secrets) in source code, commit history, configuration files, and container images.
2. Automated Secret Scanning Gates
Run automated secret detection tools (Gitleaks, TruffleHog) in local git pre-commit hooks and as blocking CI gates. Analyze commit diffs for high-entropy strings and known vendor token patterns.
3. Environment Separation & Scoped Injection
Isolate credentials strictly across development, staging, and production environments. Follow Twelve-Factor App principles by injecting secrets via environment variables or mounted tmpfs files at runtime.
4. Centralized Secrets Management
Retrieve production secrets dynamically from centralized managers (HashiCorp Vault, AWS Secrets Manager, GCP Secret Manager). Use short-lived, rotatable credentials instead of static long-lived strings.
5. Secret Rotation Playbooks
Design application systems to support zero-downtime secret rotation. Support dual-key verification windows during rotation (accepting both old and new signing keys while tokens migrate).
6. Ephemeral Developer Tokens
Provide developers with scoped, short-lived development tokens (validity < 30 days) rather than production-grade credentials. Enforce immediate revocation upon employee or collaborator offboarding.
7. Memory & Core Dump Protection
Overwrite sensitive byte buffers with zeros immediately after use where supported by the language runtime. Disable automatic core dumps in production environments to prevent credential extraction from memory.
8. Automated Log & Trace Redaction
Configure log formatters and OpenTelemetry exporters to automatically scrub patterns resembling JWTs, Bearer tokens, private keys, and passwords before persisting records to disk or central logging systems.
9. Compromise Response & History Scrubbing
In the event of an accidental secret commit, treat the secret as compromised immediately and revoke it at the provider first. Only after revocation, rewrite git history using git-filter-repo to purge the artifact.
10. Supply Chain & CI Secret Isolation
Use GitHub Actions encrypted repository secrets or OIDC Workload Identity Federation instead of long-lived cloud access keys. Restrict secret visibility to protected branches and prevent pull requests from forks from accessing secrets.
04 同仓库更多 Skills
zoom-reflow
暂无简介
wireframe-styleguide
暂无简介
visual-regression
Pixel-by-pixel snapshot testing, Playwright integration, dynamic content masking, deterministic font rendering, and cross-browser CI gates
ui-implementation
Component-driven UI implementation, multi-state matrix (default, hover, focus-visible, active, disabled, loading, empty, error), DTCG design tokens, responsive layout contracts, and accessibility tree mapping.
tui-editor-engine
Text buffer and editing semantics for a terminal code editor — index conversion, transaction-first editing, multi-cursor invariants, undo grouping, and large-file behaviour.
tree-sitter-context-indexing
暂无简介