trustbundle

package
v0.0.0-...-af55a85 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source int

Source is all possible sources of MeshConfig

const (
	SourceIstioCA Source = iota
	SourceMeshConfig
	SourceIstioRA

	RemoteDefaultPollPeriod = 30 * time.Minute
)

func (Source) String

func (s Source) String() string

type TrustAnchorConfig

type TrustAnchorConfig struct {
	Certs []string
}

type TrustAnchorUpdate

type TrustAnchorUpdate struct {
	TrustAnchorConfig
	Source Source
}

type TrustBundle

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

func NewTrustBundle

func NewTrustBundle(remoteCaCertPool *x509.CertPool, meshConfig mesh.Watcher) *TrustBundle

NewTrustBundle returns a new trustbundle

func (*TrustBundle) AddMeshConfigUpdate

func (tb *TrustBundle) AddMeshConfigUpdate(cfg *meshconfig.MeshConfig) error

AddMeshConfigUpdate : Update trustAnchor configurations from meshConfig

func (*TrustBundle) GetTrustBundle

func (tb *TrustBundle) GetTrustBundle() []string

GetTrustBundle : Retrieves all the trustAnchors for current Spiffee Trust Domain

func (*TrustBundle) ProcessRemoteTrustAnchors

func (tb *TrustBundle) ProcessRemoteTrustAnchors(stop <-chan struct{}, pollInterval time.Duration)

func (*TrustBundle) UpdateCb

func (tb *TrustBundle) UpdateCb(updatecb func())

func (*TrustBundle) UpdateTrustAnchor

func (tb *TrustBundle) UpdateTrustAnchor(anchorConfig *TrustAnchorUpdate) error

UpdateTrustAnchor : External Function to merge a TrustAnchor config with the existing TrustBundle

Jump to

Keyboard shortcuts

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