From b6f815882a6d4a32c1198bd3666edaeaf1f7bca3 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 7 Nov 2026 22:35:21 +0100 Subject: access: --bootstrap-keys The first users' SSH keys, recorded at genesis with their entries, so a swarm can be strict from its start. Auth plan M7. --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 24f0556..105266b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -100,9 +100,10 @@ async fn main() -> Result<()> { // A new swarm's first users, if it is to have a user registry; the users of the // htpasswd file that aren't among them may do nothing until they are added. let first_users = if args.genesis { - access::registry::first_users(&args.bootstrap_users) + access::registry::first_users(&args.bootstrap_users, &args.bootstrap_keys) + .map_err(anyhow::Error::msg)? } else { - Vec::new() + Default::default() }; if !first_users.is_empty() && let Some(path) = args.htpasswd.as_deref() -- cgit v1.3.1