dex, oauth2-proxy: refuse to render placeholder credentials #3569
All Vouch review confidence checks passed
Residual risk 0.29 = Change Risk (0.69) × (1 − Review Confidence (0.58)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.69 · 467 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.368
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.069
Real PR Conversation Timeline
1 comments
"Review active on #3569"
general
weight: 0.35
juliusvonkohout
Pull Request Template for Kubeflow Manifests
✏️ Summary of Changes
Both charts ship
REPLACE_MEcredential defaults, and nothing stopped aninstallation from using them.
Today both succeed, and produce:
The cookie secret signs oauth2-proxy session cookies. A value anyone can read out
of this repository means anyone can forge a session.
The charts now fail before rendering while a placeholder is in place.
Two related checks
staticPassword.hashmust look like bcrypt. Dex compares the submittedpassword against this hash; any other value matches nothing, so the account
silently cannot log in. The chart checks the
$2a$/$2b$/$2y$prefix.credentials.cookieSecretmust decode to 16, 24 or 32 bytes. oauth2-proxyuses it as an AES key. Any other length is accepted by Kubernetes and then
crash-loops the workload, which is a much worse place to find out.
Every message names the value and how to generate a correct one, for example:
Test change
tests/test_dex_helm_rollout_checksums.pyrendered with the placeholder defaultsand, in one case, with
staticPassword.hash=changed-password-hash, a value nopassword could ever match. It now supplies real-shaped credentials. The guard
found this, which is the point of it.
📦 Dependencies
None. Applies to two merged charts and is independent of every open pull request.
#3568 also touches
common/dex/helm; the two do not overlap in any file exceptthe chart README, and whichever merges second may need a trivial rebase.
🐛 Related Issues
Found while reviewing the Dex configuration surface for #3568.
Validation
The Kustomize comparison is unaffected: the CI values files supply real
credentials, so every scenario renders exactly as before.
✅ Contributor Checklist
---