TheDocumentation Index
Fetch the complete documentation index at: https://whyops.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
whyops-auth service manages user identity, session management, and API key provisioning for the entire WhyOps platform. It is built using the better-auth framework to provide secure, scalable authentication.
Responsibilities
- User Management: Handles signup, login, password resets, and profile management.
- Session Handling: Issues and validates session tokens for users accessing the WhyOps dashboard.
- API Key Management: Generates, validates, and revokes API keys used by your applications to communicate with the
whyops-proxy. - Access Control: Enforces permissions based on user roles, projects, and environments.
Integration with other services
Both thewhyops-proxy and whyops-analyse services rely on middleware (@whyops/shared/middleware) that validates requests against the Auth service.
When a request reaches the proxy:
- The proxy extracts the
Authorization: Bearer <API_KEY>header. - The middleware validates the key.
- If valid, the middleware injects an
ApiKeyAuthContextinto the request, containing theuserId,projectId, andenvironmentIdassociated with the key. - The proxy uses this context to route the request and tag telemetry data.