testauthority

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultX509SVIDTTL = 24 * time.Hour
	DefaultJWTSVIDTTL  = 24 * time.Hour
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Authority

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

func New

func New(trustDomainName string, opts ...AuthorityOption) *Authority

func (*Authority) Bundle

func (a *Authority) Bundle() *spiffebundle.Bundle

func (*Authority) JWTAuthority

func (a *Authority) JWTAuthority() (string, crypto.Signer)

func (*Authority) JWTBundle

func (a *Authority) JWTBundle() *jwtbundle.Bundle

func (*Authority) MintJWTSVID

func (a *Authority) MintJWTSVID(path string, audience []string, opts ...JWTSVIDOption) string

func (*Authority) MintX509SVID

func (a *Authority) MintX509SVID(path string, opts ...X509SVIDOption) *x509svid.SVID

func (*Authority) Rotate

func (a *Authority) Rotate() *spiffebundle.Bundle

func (*Authority) RotateJWTAuthority

func (a *Authority) RotateJWTAuthority()

func (*Authority) RotateX509Authority

func (a *Authority) RotateX509Authority()

func (*Authority) TrustDomain

func (a *Authority) TrustDomain() spiffeid.TrustDomain

func (*Authority) X509Authority

func (a *Authority) X509Authority() (*x509.Certificate, crypto.Signer)

func (*Authority) X509Bundle

func (a *Authority) X509Bundle() *x509bundle.Bundle

type AuthorityOption

type AuthorityOption = func(*Authority) error

func WithClock

func WithClock(clk clock.Clock) AuthorityOption

type JWTSVIDOption

type JWTSVIDOption func(c *jwtSVIDConfig)

func WithJWTSVIDTTL

func WithJWTSVIDTTL(ttl time.Duration) JWTSVIDOption

type X509SVIDOption

type X509SVIDOption func(c *x509SVIDConfig)

func WithPublicKey

func WithPublicKey(publicKey crypto.PublicKey) X509SVIDOption

func WithX509SVIDTTL

func WithX509SVIDTTL(ttl time.Duration) X509SVIDOption

Jump to

Keyboard shortcuts

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