Skip to main content

SecurityPosture

Struct SecurityPosture 

Source
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: bool

Permit binding a non-loopback address with control-plane auth disabled.

§max_upload_bytes: u64

Default blob-upload cap in bytes, 0 = unlimited.

§allow_site_unix_upstreams: bool

Permit site-declared unix: gateway upstreams.

§allow_site_private_upstreams: bool

Permit site-declared gateway upstreams to private/loopback IPs.

§max_handler_blob_bytes: u64

Cap on handler blobstore host reads/ranges/copies, 0 = unlimited.

§max_component_bytes: u64

Cap on a Wasm component blob, 0 = unlimited.

§oidc_require_audience: bool

Require an OIDC audience when OIDC is enabled.

§domain_verify_allow_private: bool

Permit HTTP domain-verification probes to private hosts.

§domain_verify_self_serve: bool

Serve pending HTTP ownership challenges from the edge before host routing (the domain-attach chicken-and-egg fix).

§allow_shared_kernel_compute: bool

Permit untrusted workloads on shared-kernel compute backends.

§ratelimit_fail_open: bool

Fail open instead of closed on rate-limit KV errors.

§allow_implicit_routing: bool

Resolve 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: bool

Require every control-plane token to be cnf-bound and PoP-proven (fleet-wide holder-key enforcement). Off by default.

§require_domain_verification: bool

Refuse 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

Source§

fn clone(&self) -> SecurityPosture

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SecurityPosture

Source§

impl Debug for SecurityPosture

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SecurityPosture

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for SecurityPosture

Source§

impl PartialEq for SecurityPosture

Source§

fn eq(&self, other: &SecurityPosture) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SecurityPosture

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.