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/simtest/policy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/simtest/policy.rs') diff --git a/src/simtest/policy.rs b/src/simtest/policy.rs index b56766b..d425ecf 100644 --- a/src/simtest/policy.rs +++ b/src/simtest/policy.rs @@ -46,7 +46,7 @@ async fn refused(node: &AppState) -> usize { async fn a_swarm_judging_every_change() { let sim = Sim::with_identity(71); let a = sim.start_with("a", &[], Start::Genesis, |config| { - config.first_users = vec!["alice".to_owned()]; + config.first_users = [("alice".to_owned(), Default::default())].into(); }); let b = sim.start("b", &["a"], Start::Join); let c = sim.start("c", &["a"], Start::Join); @@ -98,7 +98,7 @@ async fn a_swarm_judging_every_change() { async fn a_remake_under_the_policy() { let sim = Sim::with_identity(72); let a = sim.start_with("a", &[], Start::Genesis, |config| { - config.first_users = vec!["alice".to_owned()]; + config.first_users = [("alice".to_owned(), Default::default())].into(); }); let b = sim.start("b", &["a"], Start::Join); let c = sim.start("c", &["a"], Start::Join); -- cgit v1.3.1