DocsWorkflows
Local dev secrets
The generated setup script prompts for local development values and stores them outside the repository.
Run the generated script
After a scan, use the exact setup-script path printed by the tool. Its name and location can vary; by default, it is written beside the HTML report:
& "C:\Users\you\.ironforge-secretsleuth\reports\setup-dev-secrets-my-project.ps1"
The script prompts for development values and configures a local store instead of putting those values back into the repository. Depending on the project, the setup can use .NET User Secrets, a local .env file, or an Angular profile store.
On Linux or macOS, run the generated .ps1 script with PowerShell 7 (pwsh).
Keep the limitations in mind
- Local profile storage keeps values outside the repository, but a local assistant or process with access to your profile may still be able to read them.
- User Secrets and the Secret Sleuth profile store are plaintext in your user profile, not encrypted at rest. Use them for development values only.
- Values compiled into a browser bundle remain visible to users. Put credentials that must remain private behind a server API.
- Treat detected credentials as compromised and rotate them at their provider. The setup script does not rotate credentials or remove them from Git history.