server

package
v0.0.0-...-89d80b5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthInfo

type AuthInfo struct {
	UserName string
	UserUID  string

	PodName string
	PodUID  string

	Audiences []string
}

type ExternalAuthPlugin

type ExternalAuthPlugin interface {
}

type Identity

type Identity interface {
	SPIFFEID() url.URL
}

type KubernetesServiceAccountIdentity

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

func (*KubernetesServiceAccountIdentity) GetName

func (*KubernetesServiceAccountIdentity) GetNamespace

func (i *KubernetesServiceAccountIdentity) GetNamespace() string

func (*KubernetesServiceAccountIdentity) SPIFFEID

type LocalSigner

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

func NewLocalSigner

func NewLocalSigner() (*LocalSigner, error)

func (*LocalSigner) CreateCertificate

func (s *LocalSigner) CreateCertificate(ctx context.Context, template x509.Certificate) (*x509.Certificate, crypto.PrivateKey, error)

func (*LocalSigner) GetCACertificates

func (s *LocalSigner) GetCACertificates(ctx context.Context) ([]*x509.Certificate, error)

type SPIREServer

type SPIREServer struct {
	workload.UnimplementedSpiffeWorkloadAPIServer
	v1.UnimplementedKinspireServer
	// contains filtered or unexported fields
}

func NewSPIREServer

func NewSPIREServer(kubeClient client.Client, typedClient kubernetes.Interface, signer *LocalSigner, trustDomain *url.URL) (*SPIREServer, error)

func (*SPIREServer) FetchJWTSVID

func (*SPIREServer) FetchX509SVID

func (*SPIREServer) GetExternalAuth

func (*SPIREServer) RegisterGRPC

func (s *SPIREServer) RegisterGRPC(grpcServer *grpc.Server)

func (*SPIREServer) ValidateJWTSVID

type ServerCertificates

type ServerCertificates struct {
	TLSCertificate tls.Certificate
	// contains filtered or unexported fields
}

func CreateServerCertificates

func CreateServerCertificates(ctx context.Context, signer *LocalSigner) (*ServerCertificates, error)

Jump to

Keyboard shortcuts

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