Repository · Security
Secret-bearing file tracked by git
rust_doctor::repo::tracked_secret_file
Remove the file from version control with git rm --cached, rotate what it contains, and add its name to .gitignore so it stays out; the report names the path and never its contents.
- Category
- Security
- Default level
- warn
- Tier
- P1
- Producer
- Repository
- Diff scope
- line
Not a defect when
The .pem or .key file holds only public material, such as a CA certificate or a public verification key, so committing it leaks nothing.
What it reads
What git tracks.
Tier
Serious: worth interrupting other work for.
The tier bounds how severe a rule may be; its category bounds the tier.Diff scope
The changed line itself.
What--scope contextual looks at to decide whether a change caused the finding.Change it
Turn it off, or make it blocking, without touching the code it flags:
rust-doctor --rule rust_doctor::repo::tracked_secret_file=off .
rust-doctor --rule rust_doctor::repo::tracked_secret_file=error .