Skip to content

Commit

Permalink
added the extra parameters to the HTTP (#638)
Browse files Browse the repository at this point in the history
Co-authored-by: Praneeth Bajjuri <[email protected]>
  • Loading branch information
pbajjuri20 and Praneeth Bajjuri authored Nov 21, 2023
1 parent 46178bc commit 0fbd864
Showing 1 changed file with 40 additions and 12 deletions.
52 changes: 40 additions & 12 deletions pkg/tests/tasks/security/authorization/ext_auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,26 @@ spec:
techPreview:
meshConfig:
extensionProviders:
- name: sample-ext-authz-http
envoyExtAuthzHttp:
includeRequestHeadersInCheck:
- x-ext-authz
port: "8000"
service: ext-authz.foo.svc.cluster.local`)
- name: sample-ext-authz-http
envoyExtAuthzHttp:
headersToDownstreamOnDeny:
- set-cookie
- location
headersToDownstreamOnAllow:
- set-cookie
- location
headersToUpstreamOnAllow:
- location
- email
- authorization
- path
- x-auth-request-user
- x-auth-request-email
- x-auth-request-access-token
includeRequestHeadersInCheck:
- x-ext-authz
port: "8000"
service: ext-authz.foo.svc.cluster.local`)

t.Cleanup(func() {
oc.Patch(t, meshNamespace, "smcp", smcpName, "json",
Expand All @@ -77,12 +91,26 @@ spec:
spec:
meshConfig:
extensionProviders:
- name: sample-ext-authz-http
envoyExtAuthzHttp:
includeRequestHeadersInCheck:
- x-ext-authz
port: 8000
service: ext-authz.foo.svc.cluster.local`)
- name: sample-ext-authz-http
envoyExtAuthzHttp:
headersToDownstreamOnDeny:
- set-cookie
- location
headersToDownstreamOnAllow:
- set-cookie
- location
headersToUpstreamOnAllow:
- location
- email
- authorization
- path
- x-auth-request-user
- x-auth-request-email
- x-auth-request-access-token
includeRequestHeadersInCheck:
- x-ext-authz
port: 8000
service: ext-authz.foo.svc.cluster.local`)

t.Cleanup(func() {
oc.Patch(t, meshNamespace, "smcp", smcpName, "json",
Expand Down

0 comments on commit 0fbd864

Please sign in to comment.