feat(lab3): Secure Git β SSH Signing, Pre-commit Gitleaks, and History Hygiene#3
Open
RII6 wants to merge 3 commits into
Open
feat(lab3): Secure Git β SSH Signing, Pre-commit Gitleaks, and History Hygiene#3RII6 wants to merge 3 commits into
RII6 wants to merge 3 commits into
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.
Goal
Implement critical local DevSecOps controls to address STRIDE-R (Repudiation) risks and protect the supply chain. This PR configures cryptographic SSH commit signing for authorship non-repudiation, deploys an automated preventive pre-commit hook architecture with
gitleaksto catch secret leakage, and covers reactive history hygiene usinggit filter-repo.Changes
submissions/lab3.mdβ Contains native SSH signature configuration, local/remote validation strings, threat mapping reflections, and sandbox rewriting proofs..pre-commit-config.yamlβ Configured pre-commit orchestration framework hookinggitleaks(v8.18.2) alongside standard files checks (detect-private-keyandcheck-added-large-files).Testing
Task 1 β Cryptographic Non-Repudiation (SSH Signing)
gpg.formatβsshuser.signingkeyβ/Users/rii/.ssh/id_ed25519.pubcommit.gpgsignβtruegit log --show-signature -1successfully outputs a verified cryptographic payload:f710a7d7b33810226a2cd603b1abff7d6c7825c6natively evaluates to the green Verified badge.Task 2 β Preventive Secret Scanning (Gitleaks Hook)
.git/hooks/pre-commit.submissions/leak-attempt.txtwas intercepted and safely aborted by the framework:Bonus Task β Reactive Remediation (History Rewriting via filter-repo)
Executed within a decoupled sandbox environment at
/tmp/lab3-bonusto evaluate deep history mutation behavior.git log -p | grep -c 'ghp_'β 2ghp_instances dropped to 0;REDACTEDinstances evaluated to 2.Artifacts & Screenshots
submissions/lab3.md.pre-commit-config.yamlf710a7d).Checklist
feat(lab3): <topic>)submissions/lab3.md.pre-commit-config.yamloperational + gitleaks blocking verifiedgit filter-reposequence documented with before/after cascading state