zoneingress

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ZoneIngressSigningKeyPrefix = "zone-ingress-token-signing-key"

Variables

View Source
var ZoneIngressTokenRevocationsGlobalSecretKey = core_model.ResourceKey{
	Name: "zone-ingress-token-revocations",
	Mesh: core_model.NoMesh,
}

Functions

This section is empty.

Types

type Identity

type Identity struct {
	Zone string
}

type Token

type Token = string

type TokenIssuer

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

TokenIssuer issues Zone Ingress Tokens used then for proving identity of the zone ingresses. Issued token can be bound by zone name. See pkg/sds/auth/universal/authenticator.go to check algorithm for authentication

func NewTokenIssuer

func NewTokenIssuer(issuer tokens.Issuer) TokenIssuer

type Validator added in v1.8.1

type Validator interface {
	Validate(ctx context.Context, token Token) (Identity, error)
}

func NewValidator added in v1.8.1

func NewValidator(validator core_tokens.Validator) Validator

Jump to

Keyboard shortcuts

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