Module membership_ops

Module membership_ops 

Source
Expand description

Membership operations: get members, invite, and revoke.

These are the high-level orchestration functions that download the membership chain from the storage, perform the operation, and upload the results.

Structs§

MemberInfo
A member as seen by the caller.
MembershipOpsError
Membership operations error.

Functions§

apply_key_rotation
Apply the effects of a member removal: update keyring, config, and encryption service. Rotate the in-use encryption key: persist it to the keyring and swap the live encryption service. Returns the new key’s fingerprint for the host to record in its own config — coven never writes the host’s config.
get_members
Read the membership chain from the sync storage and return the current members.
invite_member
Invite a member to the shared library.
remove_member
Remove a member from the shared library.
sync_authorized_keys
Write individual auth/keys/{pubkey} files for each current member.