GeezerVison is showing github.com — [DEL-GUARD-02] /service/useradmin/** falls through to denyAll (latent 403 trap for service-to-service calls) · Issue #455 · OpenResilienceInitiative/ORISO-UserService
[DEL-GUARD-02] /service/useradmin/** falls through to denyAll (latent 403 trap for service-to-service calls) #455
Description
Affected repos: ORISO-UserService
Why
Several specific matchers exist in both /useradmin/... and /service/useradmin/... variants, but the catch-all only covers /useradmin, /useradmin/**. Any /service/useradmin/... request not matched by one of the few explicit /service/... rules falls through to .anyRequest().denyAll().
Verified live on Pre-Dev 2026-07-16: DELETE http://userservice:8082/service/useradmin/consultants/{uuid} → 403 with a valid TECHNICAL_DEFAULT token, while /useradmin/... → authorized. The public ingress currently strips /service, so admin-panel traffic is unaffected — but any in-cluster service-to-service call using the documented /service prefix (see agency.admin.service.api.url self-call incident) hits the trap.
What to build
- Extend the catch-all to
"/useradmin", "/useradmin/**", "/service/useradmin", "/service/useradmin/**" with the same authorities (USER_ADMIN, TECHNICAL_DEFAULT).
- Keep more-specific rules above it; add the
/service variant anywhere a method-specific rule would otherwise shadow inconsistently (audit the DELETE rule from sub-issue 1).
Acceptance
-
DELETE/GET/PUT /service/useradmin/... behaves identically to /useradmin/... for the same token (regression test, red first)
- No path under
/service/useradmin resolves to denyAll for an authorized admin
Part of epic #453
Metadata
Metadata
StatusShow more project fields
Development
No branches or pull requestsIssue actions