Felix-Gong commented on issue #11470: URL: https://github.com/apache/rocketmq/issues/11470#issuecomment-7207302007
@rundood5 @orangehedgehog3 Thanks for the analysis. The map is intended to be exhaustive by construction. An absent entry was never meant to declare "no authorization required" — the admin server only serves RPCs from `AdminGrpc`, and the interceptor documents fail-closed behavior when authorization is enabled. PR #11471 therefore denies unmapped methods with `PERMISSION_DENIED` in authz-enabled mode and leaves fully open mode untouched. We deliberately did not add a whitelist config: that would let a missing mapping silently become an authorized path again, which is exactly the failure being fixed. The descriptor cross-check you suggested is already in #11471: `everyServedAdminMethodHasAnAclMapping()` walks `AdminGrpc.getServiceDescriptor().getMethods()` and asserts `resolveResourceAction(bare) != null`, so CI fails as soon as a new proto RPC lands without a mapping. It uses the same lookup you referenced at line 265. An independent review of that test is very welcome. Other options would need changes outside this PR: generating the map from proto annotations/custom options in rocketmq-apis, or a startup assertion in ProxyStartup. The former is cross-repo; the latter turns a CI failure into a production startup failure. The CI guard is the cheaper and safer invariant for now. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
