[Gateway] Audit trail — log successful JWT auth with identity #27

Open
opened 2026-09-09 23:43:31 +00:00 by poimen · 0 comments
Member

What

Log every successful JWT-authenticated request with subject, acting_party, roles, path, method.

Status

Done. PR 21 (homelab-frontend) in homelab-frontend merged.

Log Format

{"level":"info","message":"auth ok","extra":{"subject":"2213aa...","acting_party":"portfolio-agent","roles":"llm:inference,memory:read","path":"/v1/chat/completions","method":"POST"}}

What was done

  • Added auth ok info log after JWT validation
  • Exported ClaimString/ClaimStringSlice from identity package
  • X-Forwarded-User header injection was already complete
## What Log every successful JWT-authenticated request with subject, acting_party, roles, path, method. ## Status **Done.** PR 21 (homelab-frontend) in homelab-frontend merged. ## Log Format ```json {"level":"info","message":"auth ok","extra":{"subject":"2213aa...","acting_party":"portfolio-agent","roles":"llm:inference,memory:read","path":"/v1/chat/completions","method":"POST"}} ``` ## What was done - Added `auth ok` info log after JWT validation - Exported `ClaimString`/`ClaimStringSlice` from identity package - X-Forwarded-User header injection was already complete
poimen added this to the Event-Driven Platform milestone 2026-09-09 23:43:32 +00:00
poimen added the type/featurearea/gatewaystatus/donearea/auth labels 2026-09-09 23:43:33 +00:00
Sign in to join this conversation.