Right now every backend validates JWTs on its own. JwtUtil, SecurityConfig and JwtAuthFilter are copy-pasted across vault-web, cloud-page and password-manager. That means a security fix has to be made in three places, and the JJWT versions have already drifted apart.
The plan is for the gateway to own auth, so the downstream services shouldn't be doing JWT validation at all. This issue tracks that migration.
Scope
Depends on
Builds on the gateway auth work: #5, #7, #13.
Notes
- This removes code rather than sharing it, so a shared "common" library is intentionally not the goal.
- Once done, JJWT is only needed in the gateway, which also resolves the version drift across services.
Right now every backend validates JWTs on its own.
JwtUtil,SecurityConfigandJwtAuthFilterare copy-pasted across vault-web, cloud-page and password-manager. That means a security fix has to be made in three places, and the JJWT versions have already drifted apart.The plan is for the gateway to own auth, so the downstream services shouldn't be doing JWT validation at all. This issue tracks that migration.
Scope
:8080/:8090/:8091).SecurityConfig/JwtUtil/JwtAuthFilter). Services should consume a forwarded identity instead.Depends on
Builds on the gateway auth work: #5, #7, #13.
Notes