Milestone 4: taking access back
Removing someone from a vault, a device, or the team opens departures on the hub. Each device stops syncing, saves, goes read-only, hands unshared work over (secrets redacted), and deletes the folder only if the app created it. Managers review handovers (show/keep/discard/skip); removed devices may only hand over, then their key is retired. Adds the delete-from-devices vault setting and team restore. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -94,7 +94,12 @@ pub fn run(cfg: &VaultConfig, label: &str, poll: Duration, timing: Timing, log:
|
||||
let mut was_holding = false;
|
||||
let mut was_read_only = false;
|
||||
let mut announced: HashSet<String> = HashSet::new();
|
||||
let leaving = state::lune_dir(&vault.git_dir).join("leaving");
|
||||
loop {
|
||||
if leaving.exists() {
|
||||
say("access to this vault ended — stopped syncing it");
|
||||
return Ok(());
|
||||
}
|
||||
let first = rx.recv_timeout(Duration::from_millis(250));
|
||||
for ev in first.into_iter().chain(rx.try_iter()) {
|
||||
match ev {
|
||||
|
||||
Reference in New Issue
Block a user