Commit 3798424
* fix(plugin-auth): report the refused identity writes ten `catch {}` sites swallowed
Ten tier-1 DARK durability swallows in `plugin-auth`: a refused write that was
neither logged, rethrown, nor delivered to the caller. Control flow is unchanged
at every site — a bookkeeping write must never turn a valid sign-in into a 500 —
but the failure is no longer silent.
Eight in auth-manager.ts (stampIdentitySource, stampPasswordChangedAt,
recordPasswordHistory, recordSignInOutcome, stampLastLogin, unlockUser,
enforceSessionControls, enforceConcurrentCap) report through a new in-file
`logDurabilityDegradation` on the guaranteed `warn` channel. Two in
auth-plugin.ts report at `error` through the kernel Logger, whose `error` is
required.
Three inline `.catch(() => undefined)` swallows inside the two session controls
are repaired in the same change: they sit between the refused write and the
enclosing catch, so repairing only the outer handler would have produced a
reporter that could never fire.
What was hiding in the silence was mostly security controls that had quietly
stopped enforcing — lockout accounting, the password-reuse ring, session
revocation, the concurrent-session cap, and the managed-identity provenance
stamp that gates local-password self-service.
Every seam is pinned by a test that fails if the site goes silent again, plus
two absence-asserting cases so a seam that warns unconditionally cannot pass.
The `AuthManager` sink is re-exported from the package index.ts and declares no
`error`, so the LEVEL stays `warn` and is recorded on the programme card rather
than changed here.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012WkdHQwHr2KQmaX7P1BHzi
* docs(permissions): re-anchor the census row this batch's line shift rotted
PURE LINE ROT, established before fixing: the page carries exactly one anchor
for auth-plugin.ts and this file's `isSystem` occurrence list is byte-identical
to the merge base's — same 11 occurrences, same text, same order — so no
elevation read was added or removed. `--fix` rewrote the one anchor, 1254 ->
1288. Row 10 keeps the value that landed on main meanwhile.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012WkdHQwHr2KQmaX7P1BHzi
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 0b9ad00 commit 3798424
6 files changed
Lines changed: 785 additions & 24 deletions
File tree
- .changeset
- content/docs/permissions
- packages/plugins/plugin-auth/src
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
0 commit comments