identity

package
v1.11.6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSPIFFEID added in v0.11.0

func CreateSPIFFEID(trustDomain, namespace, appID string) (string, error)

CreateSPIFFEID returns a SPIFFE standard unique id for the given trust domain, namespace and appID.

Types

type Bundle added in v0.11.0

type Bundle struct {
	ID          string
	Namespace   string
	TrustDomain string
}

Bundle contains all the elements to identify a workload across a trust domain and a namespace.

func NewBundle added in v0.11.0

func NewBundle(id, namespace, trustDomain string) *Bundle

NewBundle returns a new identity bundle. namespace and trustDomain are optional parameters. When empty, a nil value is returned.

type Validator

type Validator interface {
	Validate(id, token, namespace string) error
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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