Context
PR #468 introduced Redacted<T> to wrap secret fields in Settings so they print [REDACTED] in debug/display output. However, there is no test that enforces this across all secret-bearing fields. If a future field is added without wrapping in Redacted<T>, there is no safety net to catch the leak.
Proposal
Add a test that:
- Constructs a
Settings instance with known secret values (e.g. "CANARY_SECRET")
- Formats it with
format!("{:?}", settings)
- Asserts the output does not contain the canary strings
- Asserts the output does contain
[REDACTED]
This ensures any future secret field that forgets Redacted<T> is caught at test time.
References