aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-07 22:35:21 +0100
committertv <tv@krebsco.de>2026-11-07 22:35:21 +0100
commitb6f815882a6d4a32c1198bd3666edaeaf1f7bca3 (patch)
tree5beab4b31fd4511446c8e3a7445412ce7f33f97a /src/main.rs
parente696d2f40636a6613eddfb1a3afdf87aa7ffdedd (diff)
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.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 3 insertions, 2 deletions
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()