util

package
v1.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientCertificateNotPresent = errors.New("client certificate not presented")

	ErrClientCertificateError = errors.New("client certificate error")
)

Functions

func GetClientCertifcateThumbprint added in v1.0.0

func GetClientCertifcateThumbprint(certificate *x509.Certificate) string

GetClientCertifcateThumbprint returns the client certificate thumbprint as defined by RFC8705.

func GetClientCertificate added in v0.2.30

func GetClientCertificate(in string) (*x509.Certificate, error)

GetClientCertificate retrieves the client certificate from headers injected by the ingress controller.

func GetClientCertificateHeader added in v0.2.30

func GetClientCertificateHeader(header http.Header) (string, error)

GetClientCertificateHeader extracts a client certificate from any present headers. TODO: may need to extract into a canonical form. NOTE: propagation at present expects this to be url encoded.

func HasClientCertificateHeader added in v1.4.0

func HasClientCertificateHeader(header http.Header) bool

HasClientCertificateHeader checks if mTLS is in use, thus we are being called from a trusted service.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL