middleware

package
v0.13.9 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckJWTMiddleware

func CheckJWTMiddleware(client client.Writer) mux.MiddlewareFunc

func CheckPaths

func CheckPaths(log logr.Logger, allowedPaths sets.Set[string], skipTo func(writer http.ResponseWriter, request *http.Request)) mux.MiddlewareFunc

func CheckUserInCapsuleGroupMiddleware

func CheckUserInCapsuleGroupMiddleware(client client.Writer, log logr.Logger, claim string, authTypes []req.AuthType, ignoredImpersonationGroups []string, impersonationGroupsRegexp *regexp.Regexp, skipImpersonationReview bool, xfcc_header string, impersonate func(http.ResponseWriter, *http.Request)) mux.MiddlewareFunc

func CheckUserInIgnoredGroupMiddleware

func CheckUserInIgnoredGroupMiddleware(client client.Writer, log logr.Logger, claim string, authTypes []req.AuthType, ignoredUserGroups sets.Set[string], ignoredImpersonationGroups []string, impersonationGroupsRegexp *regexp.Regexp, skipImpersonationReview bool, xfcc_header string, fn func(writer http.ResponseWriter, request *http.Request)) mux.MiddlewareFunc

func LoggerMiddleware added in v0.11.0

func LoggerMiddleware(log logr.Logger) mux.MiddlewareFunc

func MetricsMiddleware

func MetricsMiddleware(next http.Handler) http.Handler

func RequireTrustedSourceMiddleware added in v0.13.0

func RequireTrustedSourceMiddleware(
	log logr.Logger,
	trustedSourceCIDRs []*net.IPNet,
) func(http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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