pub struct ZoneSection {
pub zones: Option<Vec<String>>,
pub operator: Option<String>,
pub pds_endpoint: Option<String>,
}Expand description
The zones accounts are minted under, and who answers for them.
Reload: needs a restart. The zone is load-bearing for every DID this process has already minted; changing it under a running server would make existing accounts unresolvable against the new value.
Fields§
§zones: Option<Vec<String>>Mirrors --zone, and holds the same list. The first is the primary:
the server’s own hostname. Every zone mints accounts one label under
it, and gets its own DNS backend and, under ACME, its own certificate
pair. Unset leaves agents.localhost, which is what a local run
wants.
Reasonable range: 1 to 20 zones. Each one is a certificate pair renewed on its own schedule, an apex and a wildcard record, and a Route53 hosted zone id. A deployment with one zone writes a list of one.
operator: Option<String>Mirrors --operator. The DID answerable for every account this run
mints — never a scope or a permission, only an identifier.
Outside .localhost the server polls this DID’s repository for its
bot.did.operator claim and its policy records, so it is the DID
whose records govern this deployment as well as the one a stranger
reads to find someone accountable.
pds_endpoint: Option<String>The URL agents are told to use as their PDS endpoint, and the one written into every DID document this server publishes. No flag mirrors this, only this key.
Unset, it is derived from the primary zone: https://<zone>, plus
the bound port when this run did not take 443. Set it when the
address agents reach is not the address this process binds — a
deployment behind a proxy that terminates TLS on a different
hostname, for instance.
It is published, not just used: an endpoint that does not reach this server makes every account this run mints unreachable, and the DID documents already carrying it do not change when this does.
Trait Implementations§
Source§impl Clone for ZoneSection
impl Clone for ZoneSection
Source§fn clone(&self) -> ZoneSection
fn clone(&self) -> ZoneSection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ZoneSection
impl Debug for ZoneSection
Source§impl Default for ZoneSection
impl Default for ZoneSection
Source§fn default() -> ZoneSection
fn default() -> ZoneSection
Source§impl<'de> Deserialize<'de> for ZoneSection
impl<'de> Deserialize<'de> for ZoneSection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ZoneSection
impl PartialEq for ZoneSection
Source§fn eq(&self, other: &ZoneSection) -> bool
fn eq(&self, other: &ZoneSection) -> bool
self and other values to be equal, and is used by ==.