Commit 32bfd6f
committed
fix(admin): reject unauthenticated requests when no bearer token configured
Previously, wrapAuthHandler passed all requests through when
adminAuth.bearerToken was not configured, allowing the dashboard
to accept any token via /v1/summary verification. Now the handler
rejects all non-probe requests with 401, preventing fake token
authentication.1 parent 0259efa commit 32bfd6f
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
41 | 48 | | |
42 | 49 | | |
43 | 50 | | |
| |||
0 commit comments