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
feat(api): Add endpoint-level authentication and visibility control
Implement endpoint-level authentication mode where authentication is
optional but filters visible data based on public/private status:
**API Changes:**
- Add global vs endpoint-level auth routing in api.go
- Update EndpointStatuses and EndpointStatus handlers with auth checks
- Add cache key separation for public/private data
- Update badge endpoints to respect visibility
**Configuration:**
- Add Public field to Endpoint, ExternalEndpoint, Result, and Status
- Add EndpointStatusVisibility DTO for visibility management
- Extend security config with Level field (global/endpoint)
- Implement IsAuthenticated() for Basic Auth
- Add IsGlobal() helper method
**Features:**
- Routes conditionally protected based on security.level
- Unauthenticated users see only public endpoints
- Authenticated users see all endpoints
- Cache keys include auth status to prevent data leakage
0 commit comments