Commit 9005d23
authored
Exempt /liveness and /readiness from auth (#10)
Kubernetes liveness and readiness probes can't carry Bearer tokens or
API keys, so authenticating them gates the router's own readiness on
having a valid token, which is a chicken-and-egg problem when JWT
verification is enabled:
/readiness -> 401 -> probe fails -> pod NotReady -> service has no
ready endpoints -> platform's find_router_url returns None -> the
orchestrator bypasses the router entirely -> no per-run metrics
The endpoints expose no sensitive data — just 'process is alive' and
'at least one worker is ready' — so it's safe to leave them open.
User-facing /health and /health_generate keep auth.1 parent 8c1addf commit 9005d23
1 file changed
Lines changed: 7 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 201 | + | |
207 | 202 | | |
208 | 203 | | |
209 | 204 | | |
| |||
0 commit comments