Skip to content

feat(lab3): SSH signing, gitleaks and history rewrite - #6

Merged
MikeNovikoff merged 2 commits into
mainfrom
feature/lab3
Jun 19, 2026
Merged

feat(lab3): SSH signing, gitleaks and history rewrite#6
MikeNovikoff merged 2 commits into
mainfrom
feature/lab3

Conversation

@MikeNovikoff

Copy link
Copy Markdown
Owner

Goal

Configure SSH commit signing, wire gitleaks into a pre-commit hook to prevent secret leaks, and practice history rewriting using git filter-repo.


Changes

  • Configured global Git to use ed25519 SSH key for commit signing (commit.gpgsign true).
  • Added .pre-commit-config.yaml with gitleaks, detect-private-key, and check-added-large-files hooks.
  • Added submissions/lab3.md with full documentation, STRIDE-R reflections, and bonus task proof.
  • Added submissions/e3/verified.png demonstrating the GitHub Verified badge.

Testing

  • SSH Signing: Verified locally via git log --show-signature -1 and confirmed the green "Verified" badge on GitHub.
  • Pre-commit: Planted a fake GH_PAT in leak-attempt.txt; gitleaks successfully intercepted and aborted the commit (exit code 1).
  • History Rewrite (Bonus): Successfully purged a planted token from a sandbox repo using git filter-repo --replace-text with the --force flag, reducing the secret grep count from 2 to 0.

Artifacts


Checklist

  • Title is clear (feat(lab3): SSH signing, gitleaks and history rewrite)
  • No secrets/large temp files committed
  • submissions/lab3.md exists

Personal Notes

Configured on Windows using Git Bash. Handled CRLF/LF line ending conversions and successfully bypassed filter-repo fresh clone restrictions using --force during the sandbox test. All secrets in the report are properly redacted to prevent CI hook failures.

@MikeNovikoff
MikeNovikoff merged commit 07f5d22 into main Jun 19, 2026
1 check passed
MikeNovikoff added a commit that referenced this pull request Jun 19, 2026
Merge pull request #6 from MikeNovikoff/feature/lab3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant