diff options
| author | tv <tv@krebsco.de> | 2026-10-24 19:25:54 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-24 19:25:54 +0200 |
| commit | 815ec2e9a641ad5ac5c2f886291e63c89966bd6c (patch) | |
| tree | 5840ab9e9adc8e5ab5259ef0da7949880cde5f53 /src/config | |
| parent | 09f2dfd083c4fcdce4c5ca7376353906eb025c42 (diff) | |
only protocol-writers may modify _continuum
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/mod.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index 4914fb6..ef28542 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -82,6 +82,13 @@ pub(crate) const OPTIONS: &[OptionSpec] = &[ "Users of the HTTP API (htpasswd file with Argon2 hashes). Required.", ), option( + "protocol-writers", + Kind::List, + "USER,[USER...]", + None, + "HTTP API users (from htpasswd) who may write protocol data under /store/_continuum (remake records, members, forget records), e.g. to repair a stuck remake. Such writes act on the whole swarm and are logged. Epoch metadata is never writable.", + ), + option( "debug-api", Kind::Flag, "BOOL", @@ -201,6 +208,8 @@ pub(crate) struct Settings { pub(crate) bind_addr: SocketAddr, pub(crate) htpasswd: String, #[serde(default)] + pub(crate) protocol_writers: Vec<String>, + #[serde(default)] pub(crate) debug_api: bool, #[serde(default)] pub(crate) seeds: Vec<String>, |
