Documentation ¶
Index ¶
- type Config
- type UpstreamAuthority
- func (ua *UpstreamAuthority) AppendJWTKey(jwtKey *common.PublicKey)
- func (ua *UpstreamAuthority) JWTKeys() []*common.PublicKey
- func (ua *UpstreamAuthority) MintX509CAAndSubscribe(request *upstreamauthorityv1.MintX509CARequest, ...) error
- func (ua *UpstreamAuthority) PublishJWTKeyAndSubscribe(req *upstreamauthorityv1.PublishJWTKeyRequest, ...) error
- func (ua *UpstreamAuthority) RotateX509CA()
- func (ua *UpstreamAuthority) TaintAuthority(index int) error
- func (ua *UpstreamAuthority) TriggerJWTKeysChanged()
- func (ua *UpstreamAuthority) TriggerX509RootsChanged()
- func (ua *UpstreamAuthority) X509Intermediate() *x509.Certificate
- func (ua *UpstreamAuthority) X509Root() *x509certificate.X509Authority
- func (ua *UpstreamAuthority) X509Roots() []*x509certificate.X509Authority
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 Load ¶
func Load(t *testing.T, config Config) (upstreamauthority.UpstreamAuthority, *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 (ua *UpstreamAuthority) MintX509CAAndSubscribe(request *upstreamauthorityv1.MintX509CARequest, stream upstreamauthorityv1.UpstreamAuthority_MintX509CAAndSubscribeServer) error
func (*UpstreamAuthority) PublishJWTKeyAndSubscribe ¶ added in v1.1.0
func (ua *UpstreamAuthority) PublishJWTKeyAndSubscribe(req *upstreamauthorityv1.PublishJWTKeyRequest, stream upstreamauthorityv1.UpstreamAuthority_PublishJWTKeyAndSubscribeServer) error
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 (ua *UpstreamAuthority) X509Root() *x509certificate.X509Authority
func (*UpstreamAuthority) X509Roots ¶
func (ua *UpstreamAuthority) X509Roots() []*x509certificate.X509Authority
Click to show internal directories.
Click to hide internal directories.