Skip to content

Commit a5a786d

Browse files
authored
Add HeadersToDownstreamOnAllow to ext_authz (#2241)
* add headers_to_downstream_on_allow * make gen * make gen * minor revise
1 parent 07d3915 commit a5a786d

File tree

6 files changed

+425
-307
lines changed

6 files changed

+425
-307
lines changed

mesh/v1alpha1/config.pb.go

Lines changed: 312 additions & 246 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mesh/v1alpha1/config.proto

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,20 @@ message MeshConfig {
619619
// - Suffix match: "*abc" will match on value "abc" and "xabc".
620620
repeated string headers_to_downstream_on_deny = 8;
621621

622+
// List of headers from the authorization service that should be forwarded to downstream when the authorization
623+
// check result is allowed (HTTP code 200).
624+
// If not specified, the original response will not be modified and forwarded to downstream as-is.
625+
// Note, any existing headers will be overridden.
626+
//
627+
// Exact, prefix and suffix matches are supported (similar to the authorization policy rule syntax except the presence match
628+
// https://istio.io/latest/docs/reference/config/security/authorization-policy/#Rule):
629+
// - Exact match: "abc" will match on value "abc".
630+
// - Prefix match: "abc*" will match on value "abc" and "abcd".
631+
// - Suffix match: "*abc" will match on value "abc" and "xabc".
632+
repeated string headers_to_downstream_on_allow = 13;
633+
622634
// $hide_from_docs
623-
// Next available field number: 13
635+
// Next available field number: 14
624636
}
625637

626638
message EnvoyExternalAuthorizationGrpcProvider {

mesh/v1alpha1/istio.mesh.v1alpha1.gen.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mesh/v1alpha1/istio.mesh.v1alpha1.pb.html

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33892,6 +33892,12 @@
3389233892
"name": "headers_to_downstream_on_deny",
3389333893
"type": "string",
3389433894
"is_repeated": true
33895+
},
33896+
{
33897+
"id": 13,
33898+
"name": "headers_to_downstream_on_allow",
33899+
"type": "string",
33900+
"is_repeated": true
3389533901
}
3389633902
],
3389733903
"maps": [

0 commit comments

Comments
 (0)