issuer

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataplaneTokenRevocationsSecretKey added in v1.8.1

func DataplaneTokenRevocationsSecretKey(mesh string) core_model.ResourceKey

func DataplaneTokenSigningKeyPrefix added in v1.8.1

func DataplaneTokenSigningKeyPrefix(mesh string) string

Types

type DataplaneClaims added in v1.8.1

type DataplaneClaims struct {
	Name string
	Mesh string
	Tags map[string][]string
	Type string
	jwt.RegisteredClaims
}

func (*DataplaneClaims) ID added in v1.8.1

func (d *DataplaneClaims) ID() string

func (*DataplaneClaims) KeyIDFallback added in v1.8.1

func (d *DataplaneClaims) KeyIDFallback() (int, error)

func (*DataplaneClaims) SetRegisteredClaims added in v1.8.1

func (d *DataplaneClaims) SetRegisteredClaims(claims jwt.RegisteredClaims)

type DataplaneIdentity

type DataplaneIdentity struct {
	Name string
	Mesh string
	Tags mesh_proto.MultiValueTagSet
	Type mesh_proto.ProxyType
}

type DataplaneTokenIssuer

type DataplaneTokenIssuer interface {
	Generate(ctx context.Context, identity DataplaneIdentity, validFor time.Duration) (tokens.Token, error)
}

DataplaneTokenIssuer issues Dataplane Tokens used then for proving identity of the dataplanes. Issued token can be bound by name, mesh or tags so you can pick your level of security.

func NewDataplaneTokenIssuer

func NewDataplaneTokenIssuer(issuers func(string) tokens.Issuer) DataplaneTokenIssuer

type Validator added in v1.8.1

type Validator interface {
	Validate(ctx context.Context, token core_tokens.Token, meshName string) (DataplaneIdentity, error)
}

func NewValidator added in v1.8.1

func NewValidator(validators func(string) core_tokens.Validator) Validator

Jump to

Keyboard shortcuts

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