fix: abort on a partial kanidm read and cover the actions-degraded path #66
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-auth-reconciler!66
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "chore/59-verify-h3-m8"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
What
Verify H3 and M8 from the infra hardening review (bitborg-infra#125) against the rewrite.
H3 (partial-scope token silently no-ops CI enforcement): already handled.
applyRepoActionssetsactionsDegradedon a non-200 repo listing and on a refusedsetRepoActionswrite (network errors map to status 0).main.tsexports it asbitborg_reconciler_actions_enforcement_degraded. Non-fatal by design so a short scope cannot take quota enforcement down. Added a regression test for the refused write; the listing 403 was already covered.M8 (partial Kanidm read mis-tiers users): still applied, fixed.
getGroupMembersreturns[]for a 200 with nomemberattribute, which is what an ACL-filtered read looks like, and nothing stopped the run. NewassertNotPartialReadruns after the Kanidm reads and before any Forgejo write: if participant, basic, pro and trial ALL read empty while Forgejo lists a non-exempt user, the run throws and makes no writes. It never fires while any tier group has a member (production has members in paid and participant today), or when only exempt accounts exist.An earlier version floored only
tier_participant; dropped because trials and exempt accounts are not in that group, so a legitimately empty participant group would have stopped every run.Tests
122/122. New: refused
has_actionswrite flags degraded; all tier groups empty with a non-exempt user aborts with zero writes; only exempt users with empty groups proceeds; empty participant but populated trial proceeds.Not verified
Live token scopes and the Kanidm service account's read ACL (need production access).
Closes #59