Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: return query_parameters_to_remove with OkResponse #621

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

regeda
Copy link
Contributor

@regeda regeda commented Dec 13, 2024

Envoy External Auth v3 API supports the query_parameters_to_remove attribute with OkResponse.

See https://www.envoyproxy.io/docs/envoy/latest/api-v3/service/auth/v3/external_auth.proto#service-auth-v3-okhttpresponse

The change allows to return from OPA which query parameters should be removed from the upstream query.

@regeda regeda force-pushed the query-params-to-remove branch 3 times, most recently from fe56692 to c4cebd5 Compare December 13, 2024 13:45
Copy link
Collaborator

@tjons tjons left a comment

Choose a reason for hiding this comment

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

Thanks for contributing! I'm excited about this feature - one request for some additional unit testing...

envoyauth/response.go Outdated Show resolved Hide resolved
@regeda regeda force-pushed the query-params-to-remove branch 2 times, most recently from 171d43f to 8e8160c Compare December 21, 2024 16:47
@regeda regeda requested a review from tjons December 21, 2024 17:29
Envoy External Auth v3 API supports the `query_parameters_to_remove` attribute with
`OkResponse`.

See https://www.envoyproxy.io/docs/envoy/latest/api-v3/service/auth/v3/external_auth.proto#service-auth-v3-okhttpresponse

The change allows to return from OPA which query parameters should be removed
from the upstream query.

Signed-off-by: Anthony Regeda <regedaster@gmail.com>
@regeda regeda force-pushed the query-params-to-remove branch from 8e8160c to 0bbc900 Compare December 25, 2024 20:59
@tjons
Copy link
Collaborator

tjons commented Dec 31, 2024

This looks good to me... we will need to update the docs here: https://github.com/open-policy-agent/opa/blob/main/docs/content/envoy-primer.md#output-document.

@tjons tjons merged commit 7dbefee into open-policy-agent:main Dec 31, 2024
8 checks passed
regeda added a commit to regeda/opa that referenced this pull request Jan 2, 2025
A new attribute `query_parameters_to_remove` has been added.

Ref open-policy-agent/opa-envoy-plugin#621
regeda added a commit to regeda/opa that referenced this pull request Jan 2, 2025
A new attribute `query_parameters_to_remove` has been added.

Ref open-policy-agent/opa-envoy-plugin#621

Signed-off-by: Anthony Regeda <regedaster@gmail.com>
anderseknert pushed a commit to regeda/opa that referenced this pull request Jan 3, 2025
A new attribute `query_parameters_to_remove` has been added.

Ref open-policy-agent/opa-envoy-plugin#621

Signed-off-by: Anthony Regeda <regedaster@gmail.com>
anderseknert pushed a commit to open-policy-agent/opa that referenced this pull request Jan 3, 2025
A new attribute `query_parameters_to_remove` has been added.

Ref open-policy-agent/opa-envoy-plugin#621

Signed-off-by: Anthony Regeda <regedaster@gmail.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.

3 participants