Skip to main content
logoTetrate Enterprise Gateway for EnvoyVersion: v0.0.0-latest

Tetrate Envoy Gateway API Reference

teg.tetrate.io/v1alpha1

Resource Types

ExtendedSecurityPolicy

ExtendedSecurityPolicy allows the user to configure various security settings for a Gateway, including Web Application Firewall (WAF) directives.

Appears in:

FieldDescription
apiVersion stringteg.tetrate.io/v1alpha1
kind stringExtendedSecurityPolicy
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec ExtendedSecurityPolicySpec
status ExtendedSecurityPolicyStatusStatus defines the status details of the ExtendedSecurityPolicy.

ExtendedSecurityPolicyList

ExtendedSecurityPolicyList contains a list of ExtendedSecurityPolicy

FieldDescription
apiVersion stringteg.tetrate.io/v1alpha1
kind stringExtendedSecurityPolicyList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items ExtendedSecurityPolicy array

ExtendedSecurityPolicySpec

ExtendedSecurityPolicySpec specifies the desired state of the ExtendedSecurityPolicy.

Appears in:

FieldDescription
targetRefs LocalPolicyTargetReferenceWithSectionName arrayTargetRefs are the names of the Gateway resources this policy
is being attached to.
waf ExtendedSecurityPolicyWAFWAF specifies the Web Application Firewall (WAF) directives to apply to the gateway.
If specified, the target will be protected by the WAF rules.

For details, please refer to the documentation: https://docs.tetrate.io/envoy-gateway/howto/coraza

ExtendedSecurityPolicyStatus

ExtendedSecurityPolicyStatus contains the conditions by the reconciliation result.

Appears in:

FieldDescription
conditions Condition arrayConditions is the list of conditions by the reconciliation result.
Currently, at most one condition is set.

Known .status.conditions.type is: "Accepted"

ExtendedSecurityPolicyWAF

Appears in:

FieldDescription
directives stringDirectives is a string that consists of a series of SecLang directives to apply to the targets referenced by this policy.
This is optional, and if not specified, the default WAF rules will be applied.

For example, you can define the directives as follows: https://docs.tetrate.io/envoy-gateway/howto/coraza

yaml<br />waf:<br /> directives: |<br /> Include @recommended-conf<br /> SecRuleEngine On<br /> SecDebugLogLevel 2<br /> Include @crs-setup-conf<br /> Include @owasp_crs/*.conf<br />
where directives is a multi-line string containing the WAF rules in SecLang format. The above example
is the default configuration when this field is not specified.