pub struct AccountZoneConfig {
pub zone: Option<String>,
pub local_store: bool,
pub dns01_credential: Option<String>,
pub acme_directory: Option<String>,
pub acme_contact: Option<String>,
pub wildcard_ipv4: Option<Ipv4Addr>,
pub wildcard_ipv6: Option<Ipv6Addr>,
pub http: Option<AccountHttpConfig>,
}Expand description
The [account] configuration section.
Default is deliberately the unconfigured state (zone = None); see the
module docs on sane-degrade.
Fields§
§zone: Option<String>The delegated account-zone apex, e.g. acct.example.com. None ⇒
account minting disabled (Self::resolve_zone errors).
local_store: boolEnable the authority-owned hosted-account record store for local OAuth
signing and account-session verification without exposing the public
account HTTP listener. This remains opt-in; deployments that need public
did:web documents must separately configure Self::http and its
wildcard TLS/DNS path.
dns01_credential: Option<String>An opaque reference to the zone-scoped DNS-01 credential (e.g.
ref:secretstore/... or an env var name). hyprstream treats this as an
opaque string; the product-layer DnsProvider
implementation interprets it. None ⇒ DNS-01 issuance disabled even if
zone is set.
acme_directory: Option<String>ACME directory URL for wildcard issuance. Defaults to Let’s Encrypt
production when mode = "acme-dns01" is selected and this is unset.
acme_contact: Option<String>ACME contact URI, e.g. mailto:ops@example.com.
wildcard_ipv4: Option<Ipv4Addr>IPv4 target for the wildcard A record (*.<apex>). None ⇒ no A
record published by hyprstream; the operator may publish one out-of-band.
wildcard_ipv6: Option<Ipv6Addr>IPv6 target for the wildcard AAAA record (*.<apex>).
http: Option<AccountHttpConfig>Optional credential-free HTTPS listener for the public hosted-account DID artifacts. The listener is disabled unless this section is present; enabling it requires an explicit account-zone certificate and key.
Implementations§
Source§impl AccountZoneConfig
impl AccountZoneConfig
Sourcepub fn is_configured(&self) -> bool
pub fn is_configured(&self) -> bool
Whether the deployment has configured an account zone at all.
Sourcepub fn resolve_zone(&self) -> Result<AccountZone, AccountZoneError>
pub fn resolve_zone(&self) -> Result<AccountZone, AccountZoneError>
Resolve the configured zone, or return AccountZoneError::Unset.
This is the single entry point the rest of the codebase uses; it never
invents a zone. Callers should surface the Unset error to the operator
rather than unwrapping.
Sourcepub fn dns01_ready(&self) -> bool
pub fn dns01_ready(&self) -> bool
Whether the DNS-01 issuance path is fully provisioned: a zone and a zone-scoped credential are present. When false, TLS wildcard issuance is skipped with a clear log message (the process keeps running on its existing/self-signed cert; account minting surfaces the missing zone).
Trait Implementations§
Source§impl Clone for AccountZoneConfig
impl Clone for AccountZoneConfig
Source§fn clone(&self) -> AccountZoneConfig
fn clone(&self) -> AccountZoneConfig
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 AccountZoneConfig
impl Debug for AccountZoneConfig
Source§impl Default for AccountZoneConfig
impl Default for AccountZoneConfig
Source§fn default() -> AccountZoneConfig
fn default() -> AccountZoneConfig
Source§impl<'de> Deserialize<'de> for AccountZoneConfig
impl<'de> Deserialize<'de> for AccountZoneConfig
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>,
Auto Trait Implementations§
impl Freeze for AccountZoneConfig
impl RefUnwindSafe for AccountZoneConfig
impl Send for AccountZoneConfig
impl Sync for AccountZoneConfig
impl Unpin for AccountZoneConfig
impl UnsafeUnpin for AccountZoneConfig
impl UnwindSafe for AccountZoneConfig
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request