fakeupstreamauthority

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Clock                       clock.Clock
	TrustDomain                 spiffeid.TrustDomain
	UseIntermediate             bool
	DisallowPublishJWTKey       bool
	KeyUsage                    x509.KeyUsage
	MutateMintX509CAResponse    func(*upstreamauthorityv1.MintX509CAResponse)
	MutatePublishJWTKeyResponse func(*upstreamauthorityv1.PublishJWTKeyResponse)
}

type UpstreamAuthority

type UpstreamAuthority struct {
	upstreamauthorityv1.UnimplementedUpstreamAuthorityServer
	// contains filtered or unexported fields
}

func New

func New(t *testing.T, config Config) *UpstreamAuthority

func (*UpstreamAuthority) AppendJWTKey

func (ua *UpstreamAuthority) AppendJWTKey(jwtKey *common.PublicKey)

func (*UpstreamAuthority) JWTKeys

func (ua *UpstreamAuthority) JWTKeys() []*common.PublicKey

func (*UpstreamAuthority) MintX509CAAndSubscribe added in v1.1.0

func (*UpstreamAuthority) RotateX509CA

func (ua *UpstreamAuthority) RotateX509CA()

func (*UpstreamAuthority) TaintAuthority added in v1.10.2

func (ua *UpstreamAuthority) TaintAuthority(index int) error

func (*UpstreamAuthority) TriggerJWTKeysChanged

func (ua *UpstreamAuthority) TriggerJWTKeysChanged()

func (*UpstreamAuthority) TriggerX509RootsChanged

func (ua *UpstreamAuthority) TriggerX509RootsChanged()

func (*UpstreamAuthority) X509Intermediate

func (ua *UpstreamAuthority) X509Intermediate() *x509.Certificate

func (*UpstreamAuthority) X509Root

func (*UpstreamAuthority) X509Roots

func (ua *UpstreamAuthority) X509Roots() []*x509certificate.X509Authority

Jump to

Keyboard shortcuts

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