pub struct InsecureOptions {
pub allow_root: bool,
pub allow_public_admin: bool,
pub allow_unbounded_body: bool,
pub skip_pipeline_validation: bool,
pub allow_tls_without_sni: bool,
pub allow_private_health_checks: bool,
}Expand description
Consolidated security overrides for Praxis.
Every field defaults to false. Setting a flag to true
demotes the corresponding security check from an error to a warning.
Only intended for use in development and testing.
use praxis_core::config::InsecureOptions;
let opts = InsecureOptions::default();
assert!(!opts.allow_root);
assert!(!opts.allow_public_admin);
assert!(!opts.allow_unbounded_body);
assert!(!opts.skip_pipeline_validation);
assert!(!opts.allow_tls_without_sni);
assert!(!opts.allow_private_health_checks);use praxis_core::config::InsecureOptions;
let opts: InsecureOptions =
serde_yaml::from_str("allow_root: true\nallow_public_admin: true\n").unwrap();
assert!(opts.allow_root);
assert!(opts.allow_public_admin);
assert!(!opts.allow_unbounded_body);Fields§
§allow_root: boolAllow running as root (UID 0).
allow_public_admin: boolAllow admin endpoint on 0.0.0.0 / [::].
allow_unbounded_body: boolAllow stream-buffered body mode with no size limit.
skip_pipeline_validation: boolSkip pipeline ordering validation.
allow_tls_without_sni: boolAllow TLS without SNI hostname verification.
allow_private_health_checks: boolAllow health checks to loopback/metadata addresses.
Trait Implementations§
Source§impl Clone for InsecureOptions
impl Clone for InsecureOptions
Source§fn clone(&self) -> InsecureOptions
fn clone(&self) -> InsecureOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InsecureOptions
impl Debug for InsecureOptions
Source§impl Default for InsecureOptions
impl Default for InsecureOptions
Source§fn default() -> InsecureOptions
fn default() -> InsecureOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InsecureOptionswhere
InsecureOptions: Default,
impl<'de> Deserialize<'de> for InsecureOptionswhere
InsecureOptions: Default,
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InsecureOptions
impl RefUnwindSafe for InsecureOptions
impl Send for InsecureOptions
impl Sync for InsecureOptions
impl Unpin for InsecureOptions
impl UnsafeUnpin for InsecureOptions
impl UnwindSafe for InsecureOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Mutably borrows from an owned value. Read more