devbox/internal/secret
shoemoney 7366ab757c fix(sec): secret guard no longer leaks creds — case-insensitive + more patterns 🔑🛡️
Audit found the guard silently uploads real credentials:
- patterns were case-sensitive: .ENV / KEY.PEM / ID_RSA / Server.Key all passed
  through on macOS/Windows. New ignore.CompileFold compiles the guard deny-list
  case-insensitively (.devignore stays case-sensitive, gitignore semantics).
- added *.env and .envrc (prod.env / config.env hold the same secrets as .env).
- .aws/credentials and .ssh/id_* were root-anchored — a nested copy leaked; now
  **/ depth-matched.
Regression test covers all three.
2026-06-23 02:15:28 -05:00
..
leak_regression_test.go fix(sec): secret guard no longer leaks creds — case-insensitive + more patterns 🔑🛡️ 2026-06-23 02:15:28 -05:00
secret.go fix(sec): secret guard no longer leaks creds — case-insensitive + more patterns 🔑🛡️ 2026-06-23 02:15:28 -05:00
secret_test.go fix: foundation hardening from review pass 🛡️ 2026-06-22 23:24:55 -05:00