diff options
| author | tv <tv@krebsco.de> | 2026-11-07 22:35:09 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-07 22:35:09 +0100 |
| commit | a8ee17b7513c0367b5a9e5a30ae290fe53dad88b (patch) | |
| tree | f565f2271818a0b3ff86645f6bcf9039a468833a /src/state | |
| parent | 7dbb95d6c1dd7245e50d3aaadd26ee24f3506ba1 (diff) | |
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.
Diffstat (limited to 'src/state')
| -rw-r--r-- | src/state/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<std::collections::HashSet<String>>, + /// The swarm's first users, recorded by a genesis node (`NodeConfig::first_users`). + pub(crate) first_users: Arc<crate::access::registry::FirstUsers>, /// This node's own files, and how much it read and wrote them. pub(crate) files: Arc<crate::files::Files>, /// This node's document on disk (`--document-file`), if configured. |
