Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TODO (bartsmykla): uncomment when Zone Token will be available for dataplanes // and ingresses // DataplaneScope string = "dataplane // IngressScope string = "ingress" EgressScope string = "egress" )
View Source
const SigningKeyPrefix = "zone-token-signing-key"
View Source
const SigningPublicKeyPrefix = "zone-token-signing-public-key"
Variables ¶
View Source
var FullScope = []string{ EgressScope, }
View Source
var TokenRevocationsGlobalSecretKey = core_model.ResourceKey{ Name: "zone-token-revocations", Mesh: core_model.NoMesh, }
Functions ¶
Types ¶
type TokenIssuer ¶
type TokenIssuer interface {
Generate(ctx context.Context, identity Identity, validFor time.Duration) (tokens.Token, error)
}
TokenIssuer issues Zone Tokens used then for proving identity of the zone egresses. Issued token can be bound by the zone name and the scope.
func NewTokenIssuer ¶
func NewTokenIssuer(issuer tokens.Issuer) TokenIssuer
Click to show internal directories.
Click to hide internal directories.