Commit 7c75568
fix: return 401 from /global/health when credentials are provided but invalid
Unauthenticated probes still get 200 so the SPA can discover the server
before the user has entered any credentials. But when an SDK or health-check
supplies explicit credentials that do not match, the endpoint now returns 401.
This makes the server-list health indicator accurately reflect auth status
instead of showing green even when the configured password is wrong.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ff2e1a6 commit 7c75568
1 file changed
Lines changed: 13 additions & 3 deletions
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
159 | 169 | | |
160 | 170 | | |
161 | 171 | | |
| |||
0 commit comments