Security & Credentials
Never Use Production Databases
Section titled “Never Use Production Databases”SqlProof generates data, creates temporary state, and may replay schema DDL. Always point it at a dedicated test database or disposable container.
| Mode | Risk level | Notes |
|---|---|---|
| Testcontainers | None | Fully isolated throwaway database |
| Connection string | Low when configured safely | Use staging or a restricted role |
Use Environment Variables
Section titled “Use Environment Variables”Never hardcode credentials:
Keep .env files out of git.
Minimal Database Role
Section titled “Minimal Database Role”When using a connection string, create a role scoped to the test database:
Do not grant SUPERUSER or point SqlProof at production credentials.