Commit 85df320
committed
docs(admin): correct login/logout audit_log claimed_actor field
Codex P2 on the latest review of #674: my line 260 said both
login and logout `admin_audit` entries include `claimed_actor`,
but `auditLogout` (auth_handler.go:442-449) only emits `action`,
`actor`, `remote`, and `status`. `claimed_actor` is login-only
because the field exists to distinguish the typed access key
from the authenticated one — logout has no claim to verify (the
actor comes from the already-validated session cookie).
A log pipeline that validated field presence against the
previous text would misclassify every successful logout as
malformed, exactly the operator-facing bug Codex flagged.
Replaced the one-line summary with two concrete sample lines —
one for login (with `claimed_actor`), one for logout (without)
— and a closing sentence telling parsers that `claimed_actor`
is present-only-on-login. Same shape verified against
auth_handler.go:432-449.
No code changes; doc-only.1 parent 9010085 commit 85df320
1 file changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
262 | 273 | | |
263 | 274 | | |
264 | 275 | | |
| |||
0 commit comments