You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enforce @RolesAllowed / @PermitAll / @DenyAll annotation coverage at service startup #5742
Follow-up to #5199 / #5301. The microservices register RolesAllowedDynamicFeature, which enforces @RolesAllowed only when it is present; an HTTP-mapped resource method with no @RolesAllowed/@PermitAll/@DenyAll (and no class-level equivalent) is silently public, and the *RunSpec mock tests only verify the feature is registered, so a newly added method that forgot a role annotation passes CI unnoticed. Add a startup-time check that scans every Jersey resource registered on environment.jersey() and asserts every HTTP-mapped method (@GET/@POST/@PUT/@DELETE/@PATCH/@HEAD/@OPTIONS) carries one of @RolesAllowed/@PermitAll/@DenyAll (taking class-level annotations into account), failing fast (log + throw) if any method is unannotated. Scope is the five microservices from #5199 (config, access-control, computing-unit-managing, workflow-compiling, file); amber is out of scope because its pre-existing endpoints are not all annotated yet.
Activity
feat(auth): enforce role annotation coverage at service startup (apac…