Aias00 commented on issue #4348: URL: https://github.com/apache/rocketmq-dashboard/issues/4348#issuecomment-5682856946
Design security correction: the global AuthInterceptor enforces admin-only POST only while login is required. When `studio.auth.login-required=false` (or the runtime login policy is disabled), the interceptor skips authentication entirely. The implementation must therefore enforce `AuthenticatedUserContext.currentUserIsAdmin()` in each managed Ops mutation itself; anonymous and non-admin callers must get 403 even when the Ops runtime flag is enabled. Add service and controller tests for this case. This replaces the unconditional interceptor assumption in the Scope section above. -- 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]
