+ - **#86 (guard correctness)** — `scripts/check_deploy_credentials.py` applied the weak-password policy only to the `POSTGRES_*` and `REDIS_PASSWORD` components. An explicit URL that carried its own userinfo bypassed it: `DATABASE_URL` was checked only against the exact known-password set, the read-only URL was never policy-checked, and `REDIS_URL` was checked for presence alone, so `redis://:short@host` passed the 12-character rule. `audit_credentials()` now resolves each URL exactly as `Settings` does and applies `_is_weak_password()` to URL-supplied secrets, requires a password in an explicit URL, validates a component whenever it is set but requires it only when it is the resolution source, and parses each URL once through a helper that reports "is not a valid connection URL" rather than leaking a SQLAlchemy traceback or the secret. `docs/DEPLOY.md` describes both credential forms. A review-fix commit (`713735b`) extends the same contract to `REDIS_URL`: `apply_redis_password()` splits the URL with `urlsplit()` before the audit parses anything, so `_resolve_redis_url()` now catches that `ValueError` (a malformed IPv6 authority such as `redis://[broken`) and reports it as an invalid URL instead of crashing.
0 commit comments