WeKnora/internal
Vladimir Babin f0e14f6f00 fix: verify OIDC id_token signature via JWKS (closes #2799)
resolveOIDCUserInfo trusted id_token claims after only base64-decoding the
payload (decodeJWTClaims), with no signature or standard-claim check. A
forged id_token could therefore inject arbitrary identity claims (sub,
email, name) used to look up / auto-provision the local account.

Add verifyOIDCIDToken: fetch the provider JWKS (via the existing SSRF-safe
client), rebuild the RSA public key from the matching kid, and verify the
RS256/384/512 signature plus issuer, audience (client_id) and expiry with
golang-jwt. jwks_uri is taken from the discovery document (or explicit
config). When a jwks_uri is available, id_token verification is required
and a token that fails is rejected instead of trusted.

No new dependencies (JWK RSA key is rebuilt with crypto/rsa + math/big).
2026-09-01 11:26:30 +08:00
..
agent feat(agent): keep max completion tokens as default or a custom cap 2026-08-30 10:52:17 +08:00
application fix: verify OIDC id_token signature via JWKS (closes #2799) 2026-09-01 11:26:30 +08:00
assets feat(assets): add ASR test audio file and embed it in the application 2026-04-02 21:27:27 +08:00
common fix(markdown): sanitize invalid UTF-8 and NUL bytes 2026-08-31 12:24:35 +08:00
config fix: verify OIDC id_token signature via JWKS (closes #2799) 2026-09-01 11:26:30 +08:00
container feat(skills): store skills in a tenant catalog and install per sandbox 2026-08-28 15:17:37 +08:00
database feat(agent): report and attribute per-turn LLM token usage 2026-08-24 10:36:19 +08:00
datasource feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
errors refactor(terminology): rename user-facing tenant labels to workspace 2026-07-14 16:14:43 +08:00
event feat(agent): report and attribute per-turn LLM token usage 2026-08-24 10:36:19 +08:00
handler fix(observability): nest follow-up completions under the chat trace 2026-08-31 19:42:32 +08:00
im feat(agent): write workspace scripts and run them with installed skills 2026-08-29 22:45:18 +08:00
infrastructure fix(parser): prefer anydoc for every type it converts when linked 2026-08-31 14:58:15 +08:00
logger fix(sandbox): record product-level Langfuse spans and detach idle sweeps 2026-08-31 19:42:32 +08:00
mcp fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
middleware ui(sandbox): rename settings to skill sandbox and fix skill install (#2792) 2026-08-25 13:24:58 +08:00
modelcontext feat(agent): write workspace scripts and run them with installed skills 2026-08-29 22:45:18 +08:00
models feat(agent): report and attribute per-turn LLM token usage 2026-08-24 10:36:19 +08:00
ratelimit feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
router feat(skills): store skills in a tenant catalog and install per sandbox 2026-08-28 15:17:37 +08:00
runtime fix(redis): harden TLS tests and surface TLS config at startup 2026-07-06 23:04:52 +08:00
sandbox fix(sandbox): treat in-use snapshot deletes as retryable conflicts 2026-08-31 19:42:32 +08:00
searchutil fix(retrieval): 分段中删除的图片不再被检索到 2026-08-20 12:01:28 +08:00
storageallowlist fix(storage): align default provider fallback with STORAGE_ALLOW_LIST 2026-07-15 11:05:00 +08:00
storageurl fix(api): address resource_urls review follow-ups 2026-08-05 14:42:51 +08:00
stream feat(redis): support TLS for Redis connections (#1930) 2026-07-06 23:02:02 +08:00
tracing/langfuse fix(observability): nest follow-up completions under the chat trace 2026-08-31 19:42:32 +08:00
types fix(observability): nest follow-up completions under the chat trace 2026-08-31 19:42:32 +08:00
utils feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00