The Custom Resource ContentSecurity
specifies the options to secure an upstream web application with a Microgateway Engine container. It does so by referencing various other CRs which cover different aspects of web application security.
If references are not explicitly configured, default settings designed to work with most upstream services will be applied.
- List of referenceable CRs:
- CR DenyRules – Configures request filtering using deny rules.
- CR HeaderRewrites – Configures request and response header manipulations.
- CR Parser – Configures content parsers.
- CR Limits – Configures various size checks on requests.
The Microgateway Operator watches and reads the Custom Resources of type ContentSecurity
and configures the Microgateway Engine accordingly.
General tips for working with CRs
- CLI:
- Use
kubectl explain <replace with CRD name> --recursive
to list all available options and the YAML structure. - Check the CRD description texts with
kubectl explain <replace with CRD name and path>
of the available options for more details.
- API Reference documentation:
- Click on the link to open the CR-related documentation in a new browser tab or window: CRD Reference documentation. See also the API Reference documentation links at the end article.