[18.0][FIX] password_security: sudo password history read for reuse #972
All Vouch review confidence checks passed
Residual risk 0.07 = Change Risk (0.39) × (1 − Review Confidence (0.82)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 8 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.74 · 4 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
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.131
Sensitive Paths
sensitive_paths
0.039
Real PR Conversation Timeline
7 items
Approved
Makes sense
Approved
Approved these changes.
This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖
/ocabot merge patch
This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-972-by-LoisRForgeFlow-bump-patch, awaiting test results.
Congratulations, your PR was merged at 1032c76b34dedde18c0e555ca2d3e41f4a30eee2. Thanks a lot for contributing to OCA. ❤️
LoisRForgeFlow
LauraCForgeFlow
The
res.users.pass.historyrecord rules only let a user read their own history. So when someone set another user's password (an admin resetting it),_check_password_historyread an empty history and the "cannot reuse recent passwords" check was silently skipped. Reading the history withsudo()fixes this, the check sees the target's real history regardless of who triggers the change.