Skip to content

feat(lab3): SSH signing + gitleaks pre-commit + history rewrite practice#4

Open
StefFashka wants to merge 3 commits into
mainfrom
feature/lab3
Open

feat(lab3): SSH signing + gitleaks pre-commit + history rewrite practice#4
StefFashka wants to merge 3 commits into
mainfrom
feature/lab3

Conversation

@StefFashka

Copy link
Copy Markdown
Owner

Goal

This PR delivers the completed Lab 3 assignment, covering SSH commit signing, secret scanning with gitleaks, and Git history hygiene practices. The work demonstrates signed commits, automated secret detection through pre-commit hooks, and practical experience with history rewriting and secret remediation.

Changes

  • submissions/lab3.md β€” Final submission report with configuration outputs, verification evidence, gitleaks results, reflections, and bonus task documentation.
  • .pre-commit-config.yaml β€” Pre-commit configuration integrating gitleaks and additional security checks.
  • submissions/Pasted image 20260618172903.png - Supplement screenshot

Testing

Verified SSH commit signing, GitHub commit verification, and local secret scanning functionality.

  1. SSH Commit Signing
git log --show-signature -1
# Output: Good "git" signature for <email>
  1. GitHub Verification
  • Confirmed that the latest commit displays the green Verified badge on GitHub.
  1. Pre-commit + gitleaks
pre-commit install
# Output: pre-commit installed at .git/hooks/pre-commit
pre-commit run --all-files
# Failed due to existing repository files that did not pass all hooks.
pre-commit run
# Successfully executed hooks on staged files.
  1. Secret Detection Test
git commit -m "test: should be blocked by gitleaks"
# Output: gitleaks blocked the commit and reported a github-pat finding
  1. Bonus: History Rewrite
git log -p | grep -c 'ghp_'
# Before rewrite: 2
# After rewrite: 0
  • Task 1 β€” SSH signing configured + Verified badge on commit
  • Task 2 β€” .pre-commit-config.yaml + gitleaks demonstrably blocking
  • Bonus β€” filter-repo rewrite practice documented

Artifacts & Screenshots

All required outputs, command results, configuration files, screenshots, and reflections are included in submissions/lab3.md.
If screenshoot doesn't appears - supplement screenshot can be found in submissions/Pasted image 20260618172903.png

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