Skip to main content

ProxyWordConfigSetters

Trait ProxyWordConfigSetters 

Source
pub trait ProxyWordConfigSetters: Holds<ProxyWordConfig> + Sized {
    // Required methods
    fn trusted(self, value: impl Into<Vec<String>>) -> Self;
    fn user_header(self, value: impl Into<Option<String>>) -> Self;
    fn certificate_header(self, value: impl Into<Option<String>>) -> Self;
    fn certificate_encoding(self, value: impl Into<CertificateEncoding>) -> Self;
    fn subject_header(self, value: impl Into<Option<String>>) -> Self;
    fn account(self, value: impl Into<Vec<Pick>>) -> Self;
    fn max_certificate_bytes(self, value: impl Into<Limit>) -> Self;
}
Expand description

The typed setters of ProxyWordConfig, for any builder that holds its settings.

Required Methods§

Source

fn trusted(self, value: impl Into<Vec<String>>) -> Self

Trusted addresses and CIDR networks; an empty list trusts nobody.

Source

fn user_header(self, value: impl Into<Option<String>>) -> Self

Header written by the proxy with an account name.

Source

fn certificate_header(self, value: impl Into<Option<String>>) -> Self

Header holding the client certificate the proxy verified.

Source

fn certificate_encoding(self, value: impl Into<CertificateEncoding>) -> Self

How certificate_header is written: pem-url (nginx, AWS ALB), der-base64 (Traefik) or xfcc (Envoy).

Source

fn subject_header(self, value: impl Into<Option<String>>) -> Self

Header holding a client certificate’s subject, such as CN=Doe,O=Ops.

Source

fn account(self, value: impl Into<Vec<Pick>>) -> Self

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.

Source

fn max_certificate_bytes(self, value: impl Into<Limit>) -> Self

The most bytes certificate_header may hold; none for no bound.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<__B> ProxyWordConfigSetters for __B
where __B: Holds<ProxyWordConfig>,