Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ForwardedClientCertHeader is the name of the HTTP header Envoy uses to pass metadata about certificates presented by a client
ForwardedClientCertHeader = "x-forwarded-client-cert"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientCert ¶
type ClientCert struct { By string Hash string Cert string Chain string Subject *pkix.Name SubjectRaw string URI []string DNS []string }
ClientCert is a client certificate passed to Envoy
func ParseXFCCHeader ¶
func ParseXFCCHeader(header string) ([]*ClientCert, error)
ParseXFCCHeader parses an x-forwarded-client-cert header and returns the list of certificates present. The format of the header is documented here: https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers#x-forwarded-client-cert
Click to show internal directories.
Click to hide internal directories.