Add secrets bootstrap recovery gates#1591
Open
alejandrorivas-pixel wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Skill Improvement ($50-150 Bounty)
Closes #1577
Skill Modified
Skill name: secrets-management
Skill path:
skills/devsecops/secrets-management/What Was Wrong
The skill covered secret detection, rotation, vault integration, and agent credential handling, but did not explicitly require review evidence for the first credential used to reach the secrets manager. That can miss realistic secret-zero failures: file-mounted bootstrap tokens, unconstrained workload identity, broad Vault policies, missing revocation after failed bootstrap, and break-glass credentials stored in runbooks without owner/test/rotation evidence.
What This PR Fixes
This PR adds bootstrap and recovery gates for:
It also expands discovery patterns, severity guidance, output reporting, common pitfalls, and references for Vault AppRole/JWT auth, GitHub OIDC hardening, and Kubernetes service account token handling.
Evidence
Before (skill misses this):
After (now correctly handled):
Test Cases Added/Updated
skills/devsecops/secrets-management/tests/vulnerable/long-lived-bootstrap-token.mdskills/devsecops/secrets-management/tests/benign/oidc-bootstrap-recovery-evidence.mdBounty Tier
Validation
git diff --checkgit diff --cached --checkrg -n "Step 5\.5|secret-zero|break-glass|Bootstrap and Recovery|OIDC|revocation|VAULT_TOKEN" skills/devsecops/secrets-managementskills/devsecops/secrets-managementreturned no matches for the repository's prohibited phrases.Bounty Info
Bounty target: skill improvement, moderate tier. Payment details can be provided privately after maintainer acceptance.