Help us shape the future of Go! Take the 2026 Go Developer Survey

localauthority

package
v1.14.9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService added in v1.9.0

func RegisterService(s grpc.ServiceRegistrar, service *Service)

RegisterService registers the service on the gRPC server.

Types

type CAManager

type CAManager interface {
	// JWT
	GetCurrentJWTKeySlot() manager.Slot
	GetNextJWTKeySlot() manager.Slot
	PrepareJWTKey(ctx context.Context) error
	RotateJWTKey(ctx context.Context)
	IsJWTSVIDsDisabled() bool

	// X509
	GetCurrentX509CASlot() manager.Slot
	GetNextX509CASlot() manager.Slot
	PrepareX509CA(ctx context.Context) error
	RotateX509CA(ctx context.Context)

	IsUpstreamAuthority() bool
	NotifyTaintedX509Authority(ctx context.Context, authorityID string) error
}

type Config

type Config struct {
	TrustDomain spiffeid.TrustDomain
	DataStore   datastore.DataStore
	CAManager   CAManager
}

Config is the service configuration

type Service

type Service struct {
	localauthorityv1.UnsafeLocalAuthorityServer
	// contains filtered or unexported fields
}

Service implements the v1 LocalAuthority service

func New

func New(config Config) *Service

New creates a new LocalAuthority service

func (*Service) ActivateWITAuthority added in v1.14.0

func (*Service) RevokeWITAuthority added in v1.14.0

func (*Service) TaintWITAuthority added in v1.14.0

Jump to

Keyboard shortcuts

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