Skip to content

Validate ext_authz OkResponse header append actions#40650

Merged
kyessenov merged 4 commits intoenvoyproxy:mainfrom
antoniovleonti:ext_authz_panic
Sep 2, 2025
Merged

Validate ext_authz OkResponse header append actions#40650
kyessenov merged 4 commits intoenvoyproxy:mainfrom
antoniovleonti:ext_authz_panic

Conversation

@antoniovleonti
Copy link
Contributor

Commit Message: Validate ext_authz OkResponse header append actions
Additional Description:

This PR adds validation (and removes sentinel value check) to the ext authz grpc client. If an invalid header append action is found and validate_mutations is true, the response and thus downstream request will be rejected. If validation_mutations is false, invalid actions are ignored.

Risk Level: low
Testing: unit / integration tests added

Signed-off-by: antoniovleonti <leonti@google.com>
Signed-off-by: antoniovleonti <leonti@google.com>
@antoniovleonti
Copy link
Contributor Author

/assign-from @envoyproxy/first-pass-reviewers

@repokitteh-read-only
Copy link

@envoyproxy/first-pass-reviewers assignee is @yanjunxiang-google

🐱

Caused by: a #40650 (comment) was created by @antoniovleonti.

see: more, trace.

Signed-off-by: antoniovleonti <leonti@google.com>
@yanjunxiang-google
Copy link
Contributor

LGTM

Signed-off-by: antoniovleonti <leonti@google.com>
@antoniovleonti
Copy link
Contributor Author

/assign ggreenway

Copy link
Member

@ggreenway ggreenway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kyessenov kyessenov merged commit 77e7493 into envoyproxy:main Sep 2, 2025
24 checks passed
@antoniovleonti antoniovleonti deleted the ext_authz_panic branch September 3, 2025 13:49
barroca pushed a commit to barroca/envoy that referenced this pull request Sep 9, 2025
Commit Message: Validate ext_authz OkResponse header append actions
Additional Description:

This PR adds validation (and removes sentinel value check) to the ext
authz grpc client. If an invalid header append action is found and
validate_mutations is true, the response and thus downstream request
will be rejected. If validation_mutations is false, invalid actions are
ignored.

Risk Level: low
Testing: unit / integration tests added

---------

Signed-off-by: antoniovleonti <leonti@google.com>
Signed-off-by: Leonardo da Mata <ldamata@spotify.com>
shane-yuan pushed a commit to shane-yuan/envoy that referenced this pull request Sep 9, 2025
Commit Message: Validate ext_authz OkResponse header append actions
Additional Description:

This PR adds validation (and removes sentinel value check) to the ext
authz grpc client. If an invalid header append action is found and
validate_mutations is true, the response and thus downstream request
will be rejected. If validation_mutations is false, invalid actions are
ignored.

Risk Level: low
Testing: unit / integration tests added

---------

Signed-off-by: antoniovleonti <leonti@google.com>
mbadov pushed a commit to mbadov/envoy that referenced this pull request Sep 22, 2025
Commit Message: Validate ext_authz OkResponse header append actions
Additional Description:

This PR adds validation (and removes sentinel value check) to the ext
authz grpc client. If an invalid header append action is found and
validate_mutations is true, the response and thus downstream request
will be rejected. If validation_mutations is false, invalid actions are
ignored.

Risk Level: low
Testing: unit / integration tests added

---------

Signed-off-by: antoniovleonti <leonti@google.com>
Signed-off-by: Misha Badov <mbadov@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants