spire

package
v1.15.4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"spire-delegate",
	"Spire Delegate API Client",
	cell.Provide(newSpireDelegateClient),
	cell.Config(SpireDelegateConfig{}),
)

Functions

This section is empty.

Types

type SpireDelegateClient

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

func (*SpireDelegateClient) GetCertificateForIdentity

func (s *SpireDelegateClient) GetCertificateForIdentity(id identity.NumericIdentity) (*tls.Certificate, error)

func (*SpireDelegateClient) GetTrustBundle

func (s *SpireDelegateClient) GetTrustBundle() (*x509.CertPool, error)

func (*SpireDelegateClient) NumericIdentityToSNI

func (s *SpireDelegateClient) NumericIdentityToSNI(id identity.NumericIdentity) string

func (*SpireDelegateClient) SNIToNumericIdentity

func (s *SpireDelegateClient) SNIToNumericIdentity(sni string) (identity.NumericIdentity, error)

func (*SpireDelegateClient) Status

func (s *SpireDelegateClient) Status() *models.Status

func (*SpireDelegateClient) SubscribeToRotatedIdentities

func (s *SpireDelegateClient) SubscribeToRotatedIdentities() <-chan certs.CertificateRotationEvent

func (*SpireDelegateClient) ValidateIdentity

func (s *SpireDelegateClient) ValidateIdentity(id identity.NumericIdentity, cert *x509.Certificate) (bool, error)

type SpireDelegateConfig

type SpireDelegateConfig struct {
	SpireAdminSocketPath string `mapstructure:"mesh-auth-spire-admin-socket"`
	SpiffeTrustDomain    string `mapstructure:"mesh-auth-spiffe-trust-domain"`
	RotatedQueueSize     int    `mapstructure:"mesh-auth-rotated-identities-queue-size"`
}

func (SpireDelegateConfig) Flags

func (cfg SpireDelegateConfig) Flags(flags *pflag.FlagSet)

Jump to

Keyboard shortcuts

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