Repository navigation
Commit 29c9a74
committed
fix(ci): the RC smoke asserts the declared 401 refusal for an anonymous get-session
The packed-tarball release-candidate smoke asserted that an anonymous
`GET /api/v1/auth/get-session` answers 200. Since #17881 the platform
deliberately answers 401 with the ADR-0112 envelope
(`code: UNAUTHENTICATED`), ruled by the director seat in decision batch
#117 item 4 on card #17238: better-auth's `200` + literal JSON `null` is a
value no `SessionResponse` can express, so `auth.me()` resolved outside its
own declared type; the code moved and the published schema did not.
The smoke was therefore asserting a contract the product deliberately stopped
serving. This re-pins the probe to what the code declares — the same move
#14000 made for `SELF_REGISTRATION_CLOSED` — and pairs the status with the
envelope `code`, so a 401 from an origin check, a rate limiter or a later
guard cannot keep the probe green while measuring nothing.
The signed-in `get-session` probe is untouched and still asserts 200: the
refusal seam converts only a 200 whose body is exactly `null`.
Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU
Co-authored-by: Claude <noreply@anthropic.com>1 parent a90a9f2 commit 29c9a74
1 file changed
Lines changed: 32 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
1007 | 1009 | | |
1008 | 1010 | | |
1009 | 1011 | | |
1010 | | - | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
1011 | 1041 | | |
1012 | 1042 | | |
1013 | 1043 | | |
| |||
0 commit comments