hsiegeln 22e10b639f fix(security): re-read roles from DB and honor token_revoked_before on refresh
Closes two of the three holes in Vuln 2 (refresh-token role-retention privesc):
1. validateRefreshToken did not check token_revoked_before — UiAuthController.refresh
   now mirrors JwtAuthenticationFilter's revocation check against users.token_revoked_before.
2. refresh() preserved roles from the token claim — it now re-reads effective roles
   from rbacService.getSystemRoleNames() so a demoted user gets their current (lower)
   roles on the very next refresh, even before token_revoked_before is bumped.

Task 7 will wire the token_revoked_before bump into UserAdminController.removeRoleFromUser.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-29 10:10:35 +02:00
2026-04-15 15:28:42 +02:00
Description
Observability server for Cameleer agents
27 MiB
Languages
Java 64.3%
TypeScript 28.1%
HTML 4.8%
CSS 2.7%