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

validator

package
v1.16.21 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidateResult added in v1.16.0

type ValidateResult struct {
	// TrustDomain is the trust domain of the client.
	TrustDomain spiffeid.TrustDomain
}

ValidateResult is the result of a validation.

type Validator

type Validator interface {
	// Start starts the validator.
	Start(context.Context) error

	// Validate validates the identity of a certificate request.
	// Returns the Trust Domain of the certificate requester, and whether the
	// signed certificates duration should be overridden to the maximum time
	// permitted by the singing certificate.
	Validate(context.Context, *sentryv1pb.SignCertificateRequest) (ValidateResult, error)
}

Validator is used to validate the identity of a certificate requester by using an ID and token. Returns the trust domain of the certificate requester.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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