-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add BodyToExtAuth Signed-off-by: Aurélien Pillevesse <[email protected]>
- Loading branch information
1 parent
905405e
commit ac86045
Showing
16 changed files
with
965 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 112 additions & 0 deletions
112
internal/gatewayapi/testdata/securitypolicy-with-extauth-body.in.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
gateways: | ||
- apiVersion: gateway.networking.k8s.io/v1 | ||
kind: Gateway | ||
metadata: | ||
namespace: default | ||
name: gateway-1 | ||
spec: | ||
gatewayClassName: envoy-gateway-class | ||
listeners: | ||
- name: http | ||
protocol: HTTP | ||
port: 80 | ||
allowedRoutes: | ||
namespaces: | ||
from: All | ||
httpRoutes: | ||
- apiVersion: gateway.networking.k8s.io/v1 | ||
kind: HTTPRoute | ||
metadata: | ||
namespace: default | ||
name: httproute-1 | ||
spec: | ||
hostnames: | ||
- www.foo.com | ||
parentRefs: | ||
- namespace: default | ||
name: gateway-1 | ||
sectionName: http | ||
rules: | ||
- matches: | ||
- path: | ||
value: /foo1 | ||
backendRefs: | ||
- name: service-1 | ||
port: 8080 | ||
- matches: | ||
- path: | ||
value: /foo2 | ||
backendRefs: | ||
- name: service-2 | ||
port: 8080 | ||
- apiVersion: gateway.networking.k8s.io/v1 | ||
kind: HTTPRoute | ||
metadata: | ||
namespace: default | ||
name: httproute-2 | ||
spec: | ||
hostnames: | ||
- www.bar.com | ||
parentRefs: | ||
- namespace: default | ||
name: gateway-1 | ||
sectionName: http | ||
rules: | ||
- matches: | ||
- path: | ||
value: /bar | ||
backendRefs: | ||
- name: service-3 | ||
port: 8080 | ||
backends: | ||
- apiVersion: gateway.envoyproxy.io/v1alpha1 | ||
kind: Backend | ||
metadata: | ||
name: backend-fqdn | ||
namespace: default | ||
spec: | ||
endpoints: | ||
- fqdn: | ||
hostname: 'primary.foo.com' | ||
port: 3000 | ||
referenceGrants: | ||
- apiVersion: gateway.networking.k8s.io/v1alpha2 | ||
kind: ReferenceGrant | ||
metadata: | ||
namespace: envoy-gateway | ||
name: referencegrant-1 | ||
spec: | ||
from: | ||
- group: gateway.envoyproxy.io | ||
kind: SecurityPolicy | ||
namespace: default | ||
to: | ||
- group: "" | ||
kind: Service | ||
securityPolicies: | ||
- apiVersion: gateway.envoyproxy.io/v1alpha1 | ||
kind: SecurityPolicy | ||
metadata: | ||
namespace: default | ||
name: policy-for-http-route-1 | ||
spec: | ||
targetRef: | ||
group: gateway.networking.k8s.io | ||
kind: HTTPRoute | ||
name: httproute-1 | ||
extAuth: | ||
failOpen: true | ||
headersToExtAuth: | ||
- header1 | ||
- header2 | ||
bodyToExtAuth: | ||
maxRequestBytes: 32768 | ||
grpc: | ||
backendRefs: | ||
- name: service-2 | ||
kind: Service | ||
port: 8080 | ||
- name: backend-fqdn | ||
kind: Backend | ||
group: gateway.envoyproxy.io | ||
port: 3000 |
Oops, something went wrong.