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

api

package
v1.15.5 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: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

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

RegisterService registers the SPIFFE Broker API service on the provided server.

Types

type Config

type Config struct {
	Log      logrus.FieldLogger
	Metrics  telemetry.Metrics
	Manager  manager.Manager
	Attestor workloadattestor.Attestor

	// AllowedReferenceTypesByCaller restricts which WorkloadReference type
	// URLs each authenticated caller (broker SPIFFE ID) may use and whether
	// each type is also allowed over TCP. A caller missing from the map has
	// no restriction over UDS, but remains denied over TCP.
	AllowedReferenceTypesByCaller map[spiffeid.ID]ReferenceTypePolicy
}

type ReferenceTypeAccess

type ReferenceTypeAccess struct {
	AllowOverTCP bool
}

ReferenceTypeAccess describes how a broker may use a WorkloadReference type.

type ReferenceTypePolicy

type ReferenceTypePolicy struct {
	AllowAny        bool
	AllowAnyOverTCP bool
	Types           map[string]ReferenceTypeAccess
}

ReferenceTypePolicy is the per-broker WorkloadReference type policy.

func (ReferenceTypePolicy) AccessFor

func (p ReferenceTypePolicy) AccessFor(typeURL string) (ReferenceTypeAccess, bool)

type Service

type Service struct {
	broker.UnimplementedAPIServer
	// contains filtered or unexported fields
}

Service implements the SPIFFE Broker API server.

func New

func New(config Config) *Service

func (*Service) FetchJWTSVID

func (*Service) SubscribeToJWTBundles

func (*Service) SubscribeToX509SVID

Jump to

Keyboard shortcuts

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