Documentation
¶
Index ¶
- func CheckJWTMiddleware(client client.Writer) mux.MiddlewareFunc
- func CheckPaths(log logr.Logger, allowedPaths sets.Set[string], ...) mux.MiddlewareFunc
- func CheckUserInCapsuleGroupMiddleware(client client.Writer, log logr.Logger, claim string, authTypes []req.AuthType, ...) mux.MiddlewareFunc
- func CheckUserInIgnoredGroupMiddleware(client client.Writer, log logr.Logger, claim string, authTypes []req.AuthType, ...) mux.MiddlewareFunc
- func LoggerMiddleware(log logr.Logger) mux.MiddlewareFunc
- func MetricsMiddleware(next http.Handler) http.Handler
- func RequireTrustedSourceMiddleware(log logr.Logger, trustedSourceCIDRs []*net.IPNet) func(http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckJWTMiddleware ¶
func CheckJWTMiddleware(client client.Writer) mux.MiddlewareFunc
func CheckPaths ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.