server

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 20 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v1.12.0

type Options struct {
	// Port is the port that the server will listen on.
	Port int

	// ListenAddress is the address that the server will listen on.
	ListenAddress string

	// Security is the security Provider for the server.
	Security security.Provider

	// Validator are the client authentication validator.
	Validators map[sentryv1pb.SignCertificateRequest_TokenValidator]validator.Validator

	// Name of the default validator to use if the request doesn't specify one.
	DefaultValidator sentryv1pb.SignCertificateRequest_TokenValidator

	// CA is the certificate authority which signs client certificates.
	CA ca.Signer

	// Healthz is the healthz handler for the server.
	Healthz healthz.Healthz

	// JWTEnabled indicates whether JWT support is enabled
	JWTEnabled bool

	// JWTTTL is the time to live for the JWT token.
	JWTTTL time.Duration

	TLD string
}

Options is the configuration for the server.

type Server added in v1.14.0

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

Server is the gRPC server for the Sentry service.

func New added in v1.14.0

func New(opts Options) *Server

func (*Server) SignCertificate added in v1.14.0

SignCertificate implements the SignCertificate gRPC method.

func (*Server) Start added in v1.14.0

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

Start starts the server. Blocks until the context is cancelled.

Directories

Path Synopsis
ca
jwt
Package images defines the container images X.509 certificate extension which Sentry stamps into workload SVIDs.
Package images defines the container images X.509 certificate extension which Sentry stamps into workload SVIDs.

Jump to

Keyboard shortcuts

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