# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
CreateContext is a middleware that create the IDM context used for the rest of the chain of actions into the request.
No description provided by the author
EnforceIdentityWithConfig instantiate a EnforceIdentity middleware for the configuration provided.
EnforceServiceAccountPredicate is a predicate that check fields for ServiceAccount identities.
EnforceSystemPredicate is a predicate that enforce identity is a system and some additional checks for a user identity.
EnforceUserPredicate is a predicate that enforce identity is a user and some additional checks for a user identity.
FakeIdentityWithConfig middleware copy the x-rh-fake-identity to the x-rh-identity header when no skipper return true; it is intended to be called before the EnforceIdentity middleware.
InitOpenAPIFormats configure the admited formats in the openapi specification.
See: https://github.com/labstack/echo/pull/1502/files This method exist for v5 echo framework.
No description provided by the author
No description provided by the author
NewContext create our custom context Return an initialized.
NewEnforceOr allow to create new predicates by composing a logical OR with existing predicates.
Nooperation is a middleware that do nothing.
Parse the X-RH-Identity header and set it into the request context.
RBACWithConfig create a middleware for authorizing requests by using the intgration with rbac micro-service rbacConfig provide the skipper, prefix, permission map and client for the configuration.
RequestResponseValidator returns a middleware which validates the HTTP response.
No description provided by the author
# Variables
DefaultNooperation is a default instance for Nooperation middleware.
DefaultRequestResponseValidatorConfig is the default RequestResponseValidator middleware config.
# Structs
No description provided by the author
IdentityConfig Represent the configuration for this middleware enforcement.
IdentityPredicateEntry represents a predicate in the chain of responsibility established.
No description provided by the author
No description provided by the author
No description provided by the author
RBACConfig hold the skipper, route prefix, the rbac permissions mapping for each authorized public route, and the client to reach out the rbac micro-service.
No description provided by the author
In order to validate a response, we need to have access to the bytes of the response.
# Interfaces
Define the interface for our custom context.
No description provided by the author
# Type aliases
FIXME Refactor to use the signature: func(c echo.Context) Error
so that the predicate has information about the http Request context.