feat(security): load verify keys from auth JWKS
Build, Test & Push Core Service / quality-check (push) Successful in 40s
Build, Test & Push Core Service / docker (push) Successful in 1m24s

Core finds the key by the token kid and loads the JWKS again for an
unknown kid, at most every 10 s. JWT_PUBLIC_KEY is used only until the
first JWKS load works, so a key removed from the JWKS cannot verify
later. While that key still works, requests do not wait for a slow
Auth.
This commit is contained in:
lobo committed 2026-09-25 11:01:28 +02:00
1 parent 9fd552a785
commit 762b7898d3
8 files changed
+452 -60

No files matched your search

+2 -1
View File
@@ -35,7 +35,8 @@ management:
show-details: never
security:
jwt:
public-key: ${JWT_PUBLIC_KEY}
public-key: ${JWT_PUBLIC_KEY:}
jwks-url: ${JWT_JWKS_URL:}
app:
cors:
allowed-origins: "https://tbp.andreas-dahm.eu"