pub struct SandboxCredentialRule {
pub host: Option<String>,
pub link: Option<String>,
pub port: Option<u16>,
pub method: Option<String>,
pub path: Option<String>,
pub header: String,
pub value_prefix: Option<String>,
pub value: CredentialValue,
}Expand description
One credential rule of a sandbox.
A rule targets exactly one internet host (HTTPS, through the gateway’s TLS interception
and the sandbox’s CA) or one link the stack declares for the sandbox (plain HTTP inside
the deployment). The egress policy still decides what the sandbox reaches: a rule for a
destination the policy refuses has no effect.
Fields§
§host: Option<String>Exact DNS name, lowercase, no wildcard and no IP address.
link: Option<String>Id of a link the stack declares for this sandbox (link:<id> in a policy).
port: Option<u16>Port. Default: 443 for a host, every declared port for a link.
method: Option<String>Uppercase HTTP method. Default: any.
path: Option<String>Exact path, or a subtree when it ends in /. Default: / (every path).
header: StringHeader the gateway sets, replacing whatever the sandbox sent.
value_prefix: Option<String>Prepended to the value, for example Bearer .
value: CredentialValueThe real value. Never logged, never shown to the sandbox.
Implementations§
Trait Implementations§
Source§impl Clone for SandboxCredentialRule
impl Clone for SandboxCredentialRule
Source§impl Debug for SandboxCredentialRule
impl Debug for SandboxCredentialRule
Source§impl<'de> Deserialize<'de> for SandboxCredentialRule
impl<'de> Deserialize<'de> for SandboxCredentialRule
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>,
impl Eq for SandboxCredentialRule
Source§impl PartialEq for SandboxCredentialRule
impl PartialEq for SandboxCredentialRule
impl StructuralPartialEq for SandboxCredentialRule
Auto Trait Implementations§
impl Forget for SandboxCredentialRule
impl Freeze for SandboxCredentialRule
impl Move for SandboxCredentialRule
impl RefUnwindSafe for SandboxCredentialRule
impl Send for SandboxCredentialRule
impl Sync for SandboxCredentialRule
impl Unpin for SandboxCredentialRule
impl UnsafeUnpin for SandboxCredentialRule
impl UnwindSafe for SandboxCredentialRule
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.