fix(core): DSPX-4694 honor reflection configuration - #4021
Conversation
Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe server now conditionally registers gRPC reflection handlers. Enabled reflection registers V1 and V1Alpha handlers on the external mux only. Disabled reflection registers no reflection handlers. Tests cover both configurations. ChangesgRPC reflection registration
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to gRPC reflection now follows the configured setting: it is exposed externally only when enabled and is unavailable in-process. The change has focused coverage for both configuration states and presents no remaining merge-blocking risk. Suggested reviewers: 🚥 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. A rabbit checks the mux at night Comment |
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com>
Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com>
X-Test Failure Reportgovulncheck-failure-8 |
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com>
X-Test Failure Reportopentdf |
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
|
|
/backport |
|
Successfully created backport PR for |
Honors `server.grpc.reflectionEnabled` for external handlers and omits reflection from the in-process mux. Tested: `make test HAND_MODS=service/internal/server` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Configuration** * gRPC reflection is now registered only when explicitly enabled. * Reflection handlers are no longer registered on the in-process server. * **Bug Fixes** * Prevents unintended exposure of reflection endpoints when reflection is disabled. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: jakedoublev <jake.vanvorhis@virtru.com> (cherry picked from commit 8743070)
Honors
server.grpc.reflectionEnabledfor external handlers and omits reflection from the in-process mux.Tested:
make test HAND_MODS=service/internal/serverSummary by CodeRabbit
Configuration
Bug Fixes