You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add HTTP middleware and logging cleanup to authserver #3918
The authserver (pkg/authserver/) chi router in handler.go currently registers routes with zero middleware. This is foundational work that enables audit logging and telemetry.
Scope
HTTP middleware stack
The authserver's Routes() method needs a proper middleware chain:
Panic recovery using existing pkg/recovery.Middleware (every other HTTP server in the codebase has this)
Request ID injection (chi/middleware.RequestID) for log correlation across audit and telemetry
Request timeout (default 30s) to protect against slow upstream IDP calls holding connections
Request body size limiting as a safety net (the DCR handler has its own 64KB limit, but authorize/token endpoints have none)
Activity