SecretSleuth Talk to IronTech

DocsStart here

Quick start

From an exposed repository to a protected one that still runs locally, in four commands.

Before you start

Install the tool, commit or stash your work, and read How it works. Then, from the repository you want to protect:

cd c:\repos\my-project

1. Preview with a dry run

SecretSleuth --dry-run

The dry-run does not change scanned files, Git protection, or the manifest. It writes an HTML report and, when findings exist and dev-secrets generation is enabled, a setup script. These go under your profile by default; an explicit --report path inside the repository writes the report and setup script there. The report opens in your browser unless you use --no-open. The console ends with a summary like this:

── SCAN COMPLETE ───────────────────────────────────────────────
  5 finding(s) detected.
  Critical: 2   High: 3

  Report:
    C:\Users\you\.ironforge-secretsleuth\reports\IronForge-SecretSleuth-my-project-<yymmdd-hhmm>.html

  Next steps:
    1. Open the HTML report above for full details on each finding.
    2. Track remediation: SecretSleuth remediate --repo "C:\repos\my-project" --list
────────────────────────────────────────────────────────────────

Review the findings. If one is wrong, mark it now with remediate --false-positive <id> and later scans skip it.

2. Seal and guard with a full scan

SecretSleuth --full-scan

The first full scan explains what it is about to change and asks you to confirm. It replaces each value with a DO_NOT_COMMIT_* placeholder, marks tracked files skip-worktree, and installs the pre-commit and post-merge hooks. Untracked files cannot use skip-worktree; the pre-commit hook still blocks staged placeholders in them.

3. Check the result and restore local values

SecretSleuth status
& "$HOME\.ironforge-secretsleuth\reports\setup-dev-secrets-my-project.ps1"

The setup script is written only when findings exist and dev-secrets generation is enabled. Its name and location can vary; run it at the exact path printed by the tool. It prompts for development values and writes them to the configured local store. status checks protection problems, not whether findings have been remediated. See Local dev secrets.

4. Work as usual

From now on, pull and switch branches with pull and branch-switch, and commit edits to protected files with stage. Every other file is plain git. See Working in a protected repo.

What was written, and where

OutputWhereWhen
HTML report~/.ironforge-secretsleuth/reports/Every scan
setup-dev-secrets-<repo>.ps1Beside the reportWhen findings exist and dev-secrets generation is enabled
Manifest~/.ironforge-secretsleuth/manifests/<hash>.json, or the repo root with --embed-manifestA full scan with findings, or false-positive classification of a dry-run finding

On Windows ~ is %USERPROFILE%. The resolved report and script paths are printed at the end of every run.