pub struct DeployConfig {
pub enabled: bool,
pub max_archive_bytes: Option<u64>,
pub max_inflated_bytes: Option<u64>,
}Expand description
Operator deploy API settings from [deploy].
The deploy surface is dark by default: with enabled = false (or the
section absent) neither the /deploy/* HTTP routes nor the gRPC
DeployService are mounted, so a workflow server that is not a deploy
target exposes no deploy attack surface at all.
Fields§
§enabled: boolWhether the deploy surface is mounted. Defaults to false.
max_archive_bytes: Option<u64>Upload-size ceiling for .aion archives, in bytes. Defaults to
DEFAULT_DEPLOY_MAX_ARCHIVE_BYTES when omitted and enabled = true,
so turning deploy on does not force sizing a security ceiling; the
operator overrides it for their packages.
max_inflated_bytes: Option<u64>Inflate ceiling for uploaded archive contents, in bytes: the total
decompressed size of all archive entries an upload may extract to
(DEFLATE bombs inflate ~1000:1 past max_archive_bytes). Defaults to
DEFAULT_DEPLOY_MAX_INFLATED_BYTES when omitted and enabled = true;
must be at least max_archive_bytes.
Trait Implementations§
Source§impl Clone for DeployConfig
impl Clone for DeployConfig
Source§fn clone(&self) -> DeployConfig
fn clone(&self) -> DeployConfig
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 DeployConfig
impl Debug for DeployConfig
Source§impl Default for DeployConfig
impl Default for DeployConfig
Source§fn default() -> DeployConfig
fn default() -> DeployConfig
Source§impl<'de> Deserialize<'de> for DeployConfigwhere
DeployConfig: Default,
impl<'de> Deserialize<'de> for DeployConfigwhere
DeployConfig: 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>,
Auto Trait Implementations§
impl Freeze for DeployConfig
impl RefUnwindSafe for DeployConfig
impl Send for DeployConfig
impl Sync for DeployConfig
impl Unpin for DeployConfig
impl UnsafeUnpin for DeployConfig
impl UnwindSafe for DeployConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Source§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