#[non_exhaustive]pub struct ProxyWordConfig {
pub trusted: Vec<String>,
pub user_header: Option<String>,
pub certificate_header: Option<String>,
pub certificate_encoding: CertificateEncoding,
pub subject_header: Option<String>,
pub account: Vec<Pick>,
pub max_certificate_bytes: Limit,
}Expand description
Reverse-proxy trust and identity-header configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.trusted: Vec<String>Trusted addresses and CIDR networks; an empty list trusts nobody.
user_header: Option<String>Header written by the proxy with an account name.
certificate_header: Option<String>Header holding the client certificate the proxy verified.
certificate_encoding: CertificateEncodingHow certificate_header is written: pem-url (nginx, AWS ALB), der-base64
(Traefik) or xfcc (Envoy).
subject_header: Option<String>Header holding a client certificate’s subject, such as CN=Doe,O=Ops.
account: Vec<Pick>How a certificate or subject names the account: picks tried in order over its fields
(subject.cn, san.email, san.upn, …). Default none: a forwarded certificate is
answered as its claims, and a subject header names its CN, by name.
max_certificate_bytes: LimitThe most bytes certificate_header may hold; none for no bound.
Trait Implementations§
Source§impl Clone for ProxyWordConfig
impl Clone for ProxyWordConfig
Source§impl Debug for ProxyWordConfig
impl Debug for ProxyWordConfig
Source§impl Default for ProxyWordConfig
impl Default for ProxyWordConfig
Source§impl Describe for ProxyWordConfig
impl Describe for ProxyWordConfig
impl Fields for ProxyWordConfig
Source§impl Inspect for ProxyWordConfig
impl Inspect for ProxyWordConfig
Auto Trait Implementations§
impl Freeze for ProxyWordConfig
impl RefUnwindSafe for ProxyWordConfig
impl Send for ProxyWordConfig
impl Sync for ProxyWordConfig
impl Unpin for ProxyWordConfig
impl UnsafeUnpin for ProxyWordConfig
impl UnwindSafe for ProxyWordConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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