server

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServerAuthzInterceptor

func NewServerAuthzInterceptor(
	jwksURL, namespacesKey, namespacesRegex, identifierKey, adminNamespace string, roleBindingPrefix string, kubeconfigPath string,
) *serverAuthzInterceptor

Returns a new ServerAuthzInterceptor for validating authorization tokens in client requests. jwksURL is used to fetch the JWKS for validating incoming keys. This will refresh if a kid is unknown. namespacesKey is the key to a list of namespace claims in the token. namespacesRegex is used for extracting namespace from the claims. For example, given `kaluza:default`, we can usethe regex `kaluza:([1-9a-z-]{1,63})“ to extract the namespace `default` from the claim. identiferKey is the key to a unique identifier in the claim, for example the email. This is for auditing purposes.

Types

type RequestWithMetadata

type RequestWithMetadata interface {
	GetMetadata() *pb.ClientMeta
}

Jump to

Keyboard shortcuts

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