tls

package
v0.0.0-...-97db044 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCertUsable

func IsCertUsable(cert *tls.Certificate) bool

IsCertUsable is a place where we implement business logic to assure certificates are usable for envoy

Types

type CertificateSecretsProvider

type CertificateSecretsProvider struct {
	// contains filtered or unexported fields
}

func NewCertificateSecretsProvider

func NewCertificateSecretsProvider(controlPlaneClusterName string, certificateStorage *storage.Certificate, log logger.Logger) *CertificateSecretsProvider

func (*CertificateSecretsProvider) GetCertificateConfig

func (p *CertificateSecretsProvider) GetCertificateConfig(vhost *route.VirtualHost) *auth.SdsSecretConfig

GetCertificateConfig will register vhost in the SDS mapping, assuring that the certificate is returned when calling Provide()

func (*CertificateSecretsProvider) HasValidCertificate

func (p *CertificateSecretsProvider) HasValidCertificate(vhost *route.VirtualHost) bool

func (*CertificateSecretsProvider) Provide

func (p *CertificateSecretsProvider) Provide(_ context.Context) (secrets []types.Resource, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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