server

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v0.2.0

type Options struct {
	// ClusterID is the ID of the cluster to verify requests to.
	ClusterID string

	// Address to serve the gRPC service
	ServingAddress string

	// MaximumClientCertificateDuration is the maximum duration a client can
	// request its duration for. If the client requests a duration larger than
	// this value, this value will be used instead.
	MaximumClientCertificateDuration time.Duration
}

type Server

type Server struct {
	securityapi.UnimplementedIstioCertificateServiceServer
	// contains filtered or unexported fields
}

Server is the implementation of the istio CreateCertificate service

func New

func New(log logr.Logger, restConfig *rest.Config, cm certmanager.Signer, tls tls.Interface, opts Options) (*Server, error)

func (*Server) Check added in v0.2.0

func (s *Server) Check(_ *http.Request) error

Check is used by the shared readiness manager to expose whether the server is ready.

func (*Server) CreateCertificate

CreateCertificate is the istio grpc API func, to authenticate, authorize, and sign CSRs requests from istio clients.

func (*Server) NeedLeaderElection added in v0.2.0

func (s *Server) NeedLeaderElection() bool

All istio-csr's should serve the CreateCertificate service

func (*Server) Start added in v0.2.0

func (s *Server) Start(ctx context.Context) error

Start is a blocking func that will run the client facing certificate service

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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