util

package
v0.2.40 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 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 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 GetClientCertiifcateThumbprint added in v0.2.30

func GetClientCertiifcateThumbprint(certificate *x509.Certificate) string

GetClientCertiifcateThumbprint returns the client certificate thumbprint as defined by RFC8705.

Types

This section is empty.

Jump to

Keyboard shortcuts

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