trustbundle

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertsDataKey                              = "certs"
	TrustDomainLabel                          = "istio.banzaicloud.io/trust-domain"
	TrustBundleCASecretType corev1.SecretType = "istio.banzaicloud.io/trust-bundle-ca"
	WebhookEndpointPath                       = "/spiffe-trust-bundle"
)

Variables

This section is empty.

Functions

func ParseCertficates

func ParseCertficates(raw []byte) ([]*x509.Certificate, error)

Types

type Manager

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

func NewManager

func NewManager(mgr manager.Manager, log logr.Logger) *Manager

func (*Manager) ServeHTTP

func (m *Manager) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Manager) Start

func (m *Manager) Start() error

type Secret

type Secret struct {
	*corev1.Secret
	Revision string
	Certs    []*x509.Certificate
}

func (Secret) GetJWKs

func (s Secret) GetJWKs() ([]jwk.Key, error)

type TrustBundle

type TrustBundle struct {
	Sequence    int64     `json:"spiffe_sequence"`
	RefreshHint float64   `json:"spiffe_refresh_hint"`
	Keys        []jwk.Key `json:"keys"`
	TrustDomain string    `json:"trust_domain,omitempty"`
}

Jump to

Keyboard shortcuts

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