validator

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 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 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.
	// TODO: @joshvanl remove the overrideDuration bool in v1.13 when injector no
	// longer needs to request other identities.
	Validate(context.Context, *sentryv1pb.SignCertificateRequest) (spiffeid.TrustDomain, bool, 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