Repository navigation
feat(share): member pause, resume, invite, rotate and renew - #75
Merged
Merged
Conversation
A lease read racing a lease release found lock/admin, then failed to read it, and died "needs the admin S3 pair" (the CC-14 setup-first flake). The dry bucket now answers 404 for an object deleted under a GET, as R2 does, and leaves an object deleted under a LIST out of the listing. An If-Match on a vanished object answers 412. SHARE_R2_DRY_VANISH forces the race.
pause and resume move the member's suffix in PAUSED through one carried deploy. invite replaces the token and the code; rotate replaces the tunnel and VPC Service under the same binding and ends invited with prev_status kept, so a re-join restores paused or active. renew moves the token's expires_on in place and dies token_unreachable when the current minter cannot find the token. Every object is found by its name. A join loses to a rotate or invite that lands after its redeem, and its last step refuses a record the admin moved. The member takes its key expiry from the record, and status and member ls warn within 14 days.
A rotate keeps the record's rotation only when this machine's own dead rotate journal vouches for it; otherwise it takes the next one above every name on the account, so a forged rotating record cannot point it at the live tunnel. An invite whose tunnel was deleted outside share makes it again under its name instead of refusing toward rotate, which refuses it back. renew sends the token back active.
rotate trusts a dead journal only for the same member and caps the rotation at 999. invite from left keeps a member paused when the deploy still pauses it. sync --rebind binds only the newest service of a suffix, skips a suffix mid-rotate, and restores PAUSED from an invited record that was paused. member ls reads token expiry from the minter's own list. DP-rotate rows now re-join and assert the status rotate started from.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The tenant admin's member lifecycle verbs:
share member pause,resume,invite,rotateandrenew, plus the member's token-expiry warnings. Also fixes the CC-14 (setup-first) lease-read flake.Spec tasks done (SPEC-009): TASK-3a (pause, resume), TASK-3b (member invite), TASK-3c (rotate, ending invited with prev_status kept), TASK-3d (renew and expiry warnings).
PAUSEDthrough one carried deploy; a cloud member is refusedmember_cloud.expires_onin place (same id, same policies) and diestoken_unreachable, naming the expiry androtate(invitefor cloud), when the current minter cannot find the token.rotatingrecord cannot make rotate keep the live tunnel.member lsand the member'sshare statuswarn within 14 days;state.tokenreadsexpiringwithexpires_on.SHARE_R2_DRY_VANISH).Proof
docs/verification/members-lifecycle.md: the new section (64 checks) green, five negative controls red then green, one full suite under macOS bash 3.2 (1892 checks, PASS), the review and advisor findings with their fixes, and## Rollback. Build notes:docs/implementation-notes/multi-member.mdP41 to P52.Not attempted
docs/how-it-works.md,docs/setup.mdstill say these verbs are not built: owed to SG-11 and SG-17.mode: cloudrecord still blocks pause and rotate (same class as a forged status; notes Q5).