pub struct SecurityPosture {Show 14 fields
pub allow_unauthenticated_public_bind: bool,
pub max_upload_bytes: u64,
pub allow_site_unix_upstreams: bool,
pub allow_site_private_upstreams: bool,
pub max_handler_blob_bytes: u64,
pub max_component_bytes: u64,
pub oidc_require_audience: bool,
pub domain_verify_allow_private: bool,
pub domain_verify_self_serve: bool,
pub allow_shared_kernel_compute: bool,
pub ratelimit_fail_open: bool,
pub allow_implicit_routing: bool,
pub require_pop: bool,
pub require_domain_verification: bool,
}Expand description
The resolved security posture: every knob a concrete value. Default is
the strict multi-tenant preset, so a server with no [security] section —
and any code path that defaults this — is locked down. Byte caps: 0 =
unlimited.
Fields§
§allow_unauthenticated_public_bind: boolPermit binding a non-loopback address with control-plane auth disabled.
max_upload_bytes: u64Default blob-upload cap in bytes, 0 = unlimited.
allow_site_unix_upstreams: boolPermit site-declared unix: gateway upstreams.
allow_site_private_upstreams: boolPermit site-declared gateway upstreams to private/loopback IPs.
max_handler_blob_bytes: u64Cap on handler blobstore host reads/ranges/copies, 0 = unlimited.
max_component_bytes: u64Cap on a Wasm component blob, 0 = unlimited.
oidc_require_audience: boolRequire an OIDC audience when OIDC is enabled.
domain_verify_allow_private: boolPermit HTTP domain-verification probes to private hosts.
domain_verify_self_serve: boolServe pending HTTP ownership challenges from the edge before host routing (the domain-attach chicken-and-egg fix).
Permit untrusted workloads on shared-kernel compute backends.
ratelimit_fail_open: boolFail open instead of closed on rate-limit KV errors.
allow_implicit_routing: boolResolve an unmatched Host to a site without an explicit domain
registration (first-label <site>.host or the sole served site). Off
under multi-tenant; a loopback bind enables it regardless.
require_pop: boolRequire every control-plane token to be cnf-bound and PoP-proven
(fleet-wide holder-key enforcement). Off by default.
require_domain_verification: boolRefuse to serve a non-local Host that is not a verified, attached
virtualhost — the request gets the “verification pending” holding page
instead of any default_site/implicit fallback. On under multi-/single-
tenant; off under dev. Local hosts (localhost/*.localhost/*.local/
IP literals) always serve. An operator disables it globally in
[security], or excludes one host with an admin domain add --unverified.
Trait Implementations§
Source§impl Clone for SecurityPosture
impl Clone for SecurityPosture
Source§fn clone(&self) -> SecurityPosture
fn clone(&self) -> SecurityPosture
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SecurityPosture
Source§impl Debug for SecurityPosture
impl Debug for SecurityPosture
Source§impl Default for SecurityPosture
impl Default for SecurityPosture
impl Eq for SecurityPosture
Source§impl PartialEq for SecurityPosture
impl PartialEq for SecurityPosture
impl StructuralPartialEq for SecurityPosture
Auto Trait Implementations§
impl Freeze for SecurityPosture
impl RefUnwindSafe for SecurityPosture
impl Send for SecurityPosture
impl Sync for SecurityPosture
impl Unpin for SecurityPosture
impl UnsafeUnpin for SecurityPosture
impl UnwindSafe for SecurityPosture
Blanket Implementations§
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.