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
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
Click to show internal directories.
Click to hide internal directories.