SecretSleuth Talk to IronTech

DocsWorkflows

Angular workspaces

Secret Sleuth can generate local Angular development configuration, but values compiled into a browser bundle are visible to users.

Browser values are public

Values compiled into an Angular bundle are visible to anyone using the application. Secret Sleuth can keep development values out of the repository, but it cannot make a browser-side credential secret. Put credentials that must remain private behind a server API.

First-time setup

The first adopter explicitly previews and runs angular-setup, then commits its safe wiring for teammates:

SecretSleuth --repo "C:\repos\my-app" --dry-run
SecretSleuth --repo "C:\repos\my-app" --full-scan
SecretSleuth angular-setup --repo "C:\repos\my-app" --dry-run
SecretSleuth angular-setup --repo "C:\repos\my-app"

After the full scan, run the generated setup script at the exact path printed by the tool. Local Angular values live in the Secret Sleuth profile store and are used to generate a Git-ignored environment.local.ts. Review findings and replace placeholders with safe values before committing source changes.

Review the generated setup .ps1 to confirm it contains no secret values, copy it into the repository (for example, tools/setup-dev-secrets.ps1), and commit it with the safe wiring. Teammates run that committed copy to populate their own local store; they do not need to repeat the one-time angular-setup operation.

See angular-setup for the documented preview option. A companion Angular guide ships with the package and covers detailed scan rules, setup, production guidance, and troubleshooting.