Skip to content

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

Open
Muratich wants to merge 3 commits into
inno-devops-labs:mainfrom
Muratich:feature/lab3
Open

feat(lab3): SSH signing + gitleaks pre-commit + history rewrite practice#1058
Muratich wants to merge 3 commits into
inno-devops-labs:mainfrom
Muratich:feature/lab3

Conversation

@Muratich

@Muratich Muratich commented Jun 16, 2026

Copy link
Copy Markdown

Goal

Complete Lab 3 by configuring commit signing, pre-commit hooks, secret scanning with Gitleaks, and practicing Git history rewriting with git-filter-repo.

Changes

  • Added / updated:

    • submissions/lab3.md
    • .pre-commit-config.yaml
    • Git commit signing configuration
  • Other changes:

    • Configured SSH commit signing
    • Installed and tested pre-commit hooks
    • Verified Gitleaks secret detection
    • Completed git-filter-repo history rewrite exercise

Testing

  • Commands run:

    • git log --show-signature -1
    • py -m pre_commit run --all-files
    • git commit -m "test: should be blocked by gitleaks"
    • py -m git_filter_repo --replace-text replace.txt --force
  • Observed output:

    • Commit signatures were successfully generated and validated locally
    • Pre-commit hooks executed before commits
    • Gitleaks detected and blocked test secrets
    • git-filter-repo removed the test secret from repository history

Artifacts & Screenshots

  • submissions/lab3.md

  • Screenshots / links:

    • Verified commit signing configuration
    • Gitleaks blocking a commit containing a test secret
    • Successful history rewrite with git-filter-repo

Checklist

  • Title is clear (feat(lab3): commit signing and secret scanning)
  • No secrets or large temp files are committed
  • Submission file at submissions/lab3.md exists
  • Task 1 — SSH signing configured + Verified badge on commit
  • Task 2 — .pre-commit-config.yaml + gitleaks demonstrably blocking
  • Bonus — filter-repo rewrite practice documented

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