Make strongBoxUseTimeProbe a constructor val for consistency - #512
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. Walkthrough
ChangesStrongBox probe handling
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized constructor consistency change has no actionable merge-blocking risk remaining and is merge-ready after normal checks and review. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
First, a correction that changes what this PR is. I asked for this on the grounds that #506 left the probe as an So this is not hardening. Both forms are immutable, and no app-module code can switch the downgrade off in either. Nothing about the security property changes here, and it would be worth not letting the merge message imply otherwise. What it does change is where the default is resolved:
That is a genuine readability win. The shadowing on main is the kind of thing that reads fine when you wrote it and confuses the next person, and the comment explaining why a member-function default cannot be expressed inline is worth having wherever the seam lives. Against that: main resolves the default once and guarantees non-null at the type level, so the call site cannot forget the fallback. This version moves that obligation to Both are defensible and I do not have a strong preference. If you keep it, the single call site is worth a brief note that the fallback belongs at every use. Verified: local gate green (unit tests, No blockers. |
|
Thanks for the correction — agreed on all of it, and no need to apologize for the original report. You're right that this isn't hardening. Both forms are immutable and no app-module code can turn the downgrade off in either; the only real change is where the default resolves and dropping the ctor-param/member shadowing. I'll keep the squash message framed as readability/consistency so nothing implies a security property changed. On the one way this shape could bite — a second call site forgetting the elvis and silently skipping the probe — I've added a brief note at the sole use site ( Thanks for the verification pass. |
|
Checked The note lands in the right place and says the right thing. The failure mode it guards is quiet rather than loud, a future call site omitting the elvis would skip the use-time check for auth-gated keys and nothing would fail, so having it stated at the use site rather than only on the property is what makes it likely to be read by whoever adds the second consumer. Agreed on the squash framing. Readability and consistency is accurate; no security property changes in either direction here. No blockers. |
Summary by CodeRabbit