summaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-24 19:25:54 +0200
committertv <tv@krebsco.de>2026-10-24 19:25:54 +0200
commit815ec2e9a641ad5ac5c2f886291e63c89966bd6c (patch)
tree5840ab9e9adc8e5ab5259ef0da7949880cde5f53 /src/state.rs
parent09f2dfd083c4fcdce4c5ca7376353906eb025c42 (diff)
only protocol-writers may modify _continuum
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs
index 1ea5aae..c51446f 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -599,6 +599,9 @@ pub(crate) struct AppState {
pub(crate) electorate_window: Duration,
/// Chunked transfers served and fetched (`swarm::blob`).
pub(crate) blobs: Arc<crate::swarm::blob::Blobs>,
+ /// HTTP API users who may write protocol data through the store API
+ /// (`--protocol-writers`).
+ pub(crate) protocol_writers: Arc<std::collections::HashSet<String>>,
/// The effective configuration with sources, imported values left out
/// (`config::Loaded::report`), for `GET /admin/config`.
pub(crate) config: Arc<serde_json::Value>,