Skip to main content

secrets-management

Never commit secrets, manage credentials securely using environment variables, vaults, and Hack23 ISMS key management policy

소스 정보

저장소
Hack23/homepage
최근 소스 활동
2026년 2월 20일 09:42
감지된 SKILL.md 언어
영어
스타
12
포크
5

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
secrets-management
description
Never commit secrets, manage credentials securely using environment variables, vaults, and Hack23 ISMS key management policy
license
Apache-2.0
# Secrets Management Skill ## Purpose Ensure secure handling of sensitive credentials, API keys, tokens, and cryptographic keys throughout development and deployment lifecycle across all Hack23 projects. Enforces zero-tolerance for hardcoded secrets. ## Rules ### Golden Rules **MUST:** - Use environment variables or secrets managers for all credentials - Use GitHub Actions secrets for CI/CD credentials - Include `.env`, `*.key`, `*.pem`, `*.p12` in `.gitignore` - Rotate secrets on a defined schedule (quarterly minimum) - Use pre-commit hooks to detect secrets before they reach the repository - Log all secret access and rotation events - Immediately rotate any secret suspected of compromise **MUST NOT:** - Hard-code secrets, credentials, API keys, or tokens in source code - Commit `.env` files, private keys, or certificates to git - Store secrets in comments, documentation, or issue descriptions - Share secrets via email, chat, or unencrypted channels - Use the same secret across multiple environments - Use default or well-known credentials in any environment ### Secret Types and Storage | Secret Type | Recommended Storage | Rotation | |-------------|-------------------|----------| | API Keys | GitHub Secrets / AWS Secrets Manager | Quarterly | | Database Credentials | AWS Secrets Manager / Vault | Quarterly | | JWT Signing Keys | AWS Secrets Manager | Annually | | TLS Certificates | AWS Certificate Manager | Auto-renewed | | Encryption Keys | AWS KMS | Annually | | Service Tokens | GitHub Secrets | Quarterly | ### Detection and Prevention **Pre-commit scanning:** - Use `git-secrets`, `gitleaks`, or `trufflehog` for automated detection - GitHub Secret Scanning alerts must be enabled on all repositories - Block push if secrets are detected **CI/CD scanning:** - Enable GitHub Advanced Security secret scanning - Run `gitleaks` in CI pipeline - Fail builds on secret detection ### Incident Response for Exposed Secrets 1. **Immediately** rotate the compromised secret 2. Revoke old secret from all systems 3. Review access logs for unauthorized use 4. Notify security team 5. Document incident per Incident Response Plan ## Hack23 ISMS Policy References - [Cryptography Policy](https://github.com/Hack23/ISMS-PUBLIC/blob/main/Cryptography_Policy.md) - [Access Control Policy](https://github.com/Hack23/ISMS-PUBLIC/blob/main/Access_Control_Policy.md) - [Secure Development Policy](https://github.com/Hack23/ISMS-PUBLIC/blob/main/Secure_Development_Policy.md) - [Incident Response Plan](https://github.com/Hack23/ISMS-PUBLIC/blob/main/Incident_Response_Plan.md) ## Compliance Mapping - **ISO 27001:2022**: A.8.4 (Access to Source Code), A.8.24 (Cryptography) - **NIST CSF 2.0**: PR.AC-1 (Credentials), PR.DS-5 (Data Leak Protection) - **CIS Controls v8.1**: Control 3.11 (Encrypt Sensitive Data), Control 4.7 (Manage Credentials)
GitHub에서 보기