Repository navigation
fix(core): distinguish rewrap denials - #4204
Conversation
Signed-off-by: Elizabeth Healy <ehealy@virtru.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughDenied TDF3 rewraps now use a dedicated audit helper. The audit event records a failure result for denied access, while successful rewraps record success and other failures retain the error result. ChangesTDF3 Rewrap Audit Results
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to No actionable merge-blocking risk is evident from the supplied changes; merge after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
🛠️ Fix failing CI checks 💡
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. A rabbit checks the audit trail, Comment |
Benchmark results, click to expandBulk Benchmark Results
TDF3 Benchmark Results
|
Signed-off-by: Elizabeth Healy <ehealy@virtru.com>
Benchmark results, click to expandBulk Benchmark Results
TDF3 Benchmark Results
|
Signed-off-by: Elizabeth Healy <ehealy@virtru.com>
Benchmark results, click to expandBulk Benchmark Results
TDF3 Benchmark Results
|
|
Proposed Changes
RewrapDeniedaudit helper that recordsActionResultFailure.RewrapDeniedwhen an existing GetDecision authorization result rejects a rewrap.RewrapFailureandActionResultErrorfor technical rewrap failures.DENYemits a failure-result rewrap audit event andPERMITemits a success-result event.Scope
This change only reclassifies audit events that are already emitted for policy authorization denials. It does not add new audit-emission paths.
Existing cases that do not currently emit a rewrap audit event remain unchanged and should be addressed separately, including:
Checklist
Testing Instructions
From
service/:go test ./kas/access ./logger/audit -count=1The focused KAS access and audit logger packages pass locally.
Summary by CodeRabbit