From a8ee17b7513c0367b5a9e5a30ae290fe53dad88b Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 7 Nov 2026 22:35:09 +0100 Subject: access: first users at genesis --bootstrap-users gives a new swarm a registry from its first change, each first user with everything; other users may do nothing until added. Without it the swarm has no registry and works as before. Auth plan M1. --- src/state/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/state/mod.rs') diff --git a/src/state/mod.rs b/src/state/mod.rs index 3dfc6b1..c420361 100644 --- a/src/state/mod.rs +++ b/src/state/mod.rs @@ -143,6 +143,8 @@ pub(crate) struct AppState { /// HTTP API users who may write protocol data through the store API /// (`--protocol-writers`). pub(crate) protocol_writers: Arc>, + /// The swarm's first users, recorded by a genesis node (`NodeConfig::first_users`). + pub(crate) first_users: Arc, /// This node's own files, and how much it read and wrote them. pub(crate) files: Arc, /// This node's document on disk (`--document-file`), if configured. -- cgit v1.3.1