From de12c862b3f4e69290c8e93b3b4520024ba458f6 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 7 Nov 2026 22:35:09 +0100 Subject: access: the users endpoints /admin/users: list, add (one or several), remove, disable, grant and revoke capabilities; each one change, refused if it would lock its writer out. Capabilities as the store's paths name them. Auth plan M1. --- src/swarm/bootstrap.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/swarm') diff --git a/src/swarm/bootstrap.rs b/src/swarm/bootstrap.rs index a7266c7..446b846 100644 --- a/src/swarm/bootstrap.rs +++ b/src/swarm/bootstrap.rs @@ -92,7 +92,7 @@ pub(crate) async fn bootstrap(state: &AppState, seeds: &[String], start: Start) let topology = serde_json::to_value(state.configured_ways.0).unwrap_or_default(); let dissemination = serde_json::to_value(state.configured_ways.1).unwrap_or_default(); // The first users, granted by this node: with the rest, so that no node sees the - // swarm without its registry (none named: none, as in a swarm from before). + // swarm without its registry (none named: none). let (by, since) = ( state.local_id().to_owned(), state.clock.now_millis().as_u64(), @@ -100,8 +100,8 @@ pub(crate) async fn bootstrap(state: &AppState, seeds: &[String], start: Start) let users: Vec<(Vec, JsonValue)> = state .first_users .iter() - .map(|(name, admin)| { - let caps = crate::access::registry::first_caps(*admin); + .map(|name| { + let caps = crate::access::registry::all_caps(); ( crate::access::registry::user_path(name), crate::access::registry::entry(&by, since, &caps), -- cgit v1.3.1