fakeupstreamauthority

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 23 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 {
	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) RotateX509CA

func (ua *UpstreamAuthority) RotateX509CA()

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 (ua *UpstreamAuthority) X509Root() *x509.Certificate

func (*UpstreamAuthority) X509Roots

func (ua *UpstreamAuthority) X509Roots() []*x509.Certificate

Jump to

Keyboard shortcuts

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