From fc6c7101cdb42666c1f79df4206029c7cf7e61c6 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 19 Nov 2026 20:06:05 +0000 Subject: federated nodes: users who read the federation alone (--store-readers) On a federated node, every user its htpasswd or proxy lets in may do everything: put events, have it drop what it took, vote through it with its party's key, make fork roots, read the document. An application or someone watching needn't act for the node. `--store-readers USER,...` names users who read the federation and do nothing else (`api::access::federated`, before the registry's checks): GET and HEAD of the events API (/events and below), checking a fork (POST /events/fork), and keeping a session (whoami, refresh, logout); anything else is 403, saying so. Its other users are its operators, as all were: a node setting nothing changes nothing. --- src/simtest/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/simtest') diff --git a/src/simtest/mod.rs b/src/simtest/mod.rs index c96f189..d0f80da 100644 --- a/src/simtest/mod.rs +++ b/src/simtest/mod.rs @@ -216,6 +216,7 @@ impl Sim { blob_chunk_bytes: 64 * 1024, swarm_key: None, protocol_writers: HashSet::new(), + store_readers: HashSet::new(), first_users: Default::default(), first_policy: None, // Under the identity layer, its key signs as a node's does. -- cgit v1.3.1