Skip to content

[tf] Support echo egress to ext-authz #38540

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

Merged
merged 1 commit into from
Apr 25, 2022
Merged

Conversation

nmittler
Copy link
Contributor

@nmittler nmittler commented Apr 24, 2022

The echos are currently restricted to just the other echo namespaces, which prevents egress to the external authz server, if it's in another namespace.

This PR changes the logic so that egress is allowed to any namespace that has been allocated by the test framework up to the point the echos are created.

Fixes #38451

Please provide a description of this PR:

The echos are currently restricted to just the other echo namespaces, which prevents egress to the external authz server, if it's in another namespace.

This PR changes the logic so that egress is allowed to any namespace that has been allocated by the test framework up to the point the echos are created.

Fixes istio#38451
@nmittler nmittler requested a review from howardjohn April 24, 2022 00:28
@nmittler nmittler requested a review from a team as a code owner April 24, 2022 00:28
@istio-policy-bot
Copy link

🤔 🐛 You appear to be fixing a bug in Go code, yet your PR doesn't include updates to any test files. Did you forget to add a test?

Courtesy of your friendly test nag.

@nmittler nmittler added the release-notes-none Indicates a PR that does not require release notes. label Apr 24, 2022
@istio-testing istio-testing added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 24, 2022
@istio-testing istio-testing merged commit a37782a into istio:master Apr 25, 2022
GregHanson pushed a commit to GregHanson/istio that referenced this pull request May 18, 2022
The echos are currently restricted to just the other echo namespaces, which prevents egress to the external authz server, if it's in another namespace.

This PR changes the logic so that egress is allowed to any namespace that has been allocated by the test framework up to the point the echos are created.

Fixes istio#38451
GregHanson pushed a commit to GregHanson/istio that referenced this pull request Aug 17, 2022
The echos are currently restricted to just the other echo namespaces, which prevents egress to the external authz server, if it's in another namespace.

This PR changes the logic so that egress is allowed to any namespace that has been allocated by the test framework up to the point the echos are created.

Fixes istio#38451
@GregHanson GregHanson mentioned this pull request Aug 17, 2022
istio-testing pushed a commit that referenced this pull request Aug 17, 2022
* [tf] Support echo egress to ext-authz (#38540)

The echos are currently restricted to just the other echo namespaces, which prevents egress to the external authz server, if it's in another namespace.

This PR changes the logic so that egress is allowed to any namespace that has been allocated by the test framework up to the point the echos are created.

Fixes #38451

* [tf] Consistent namespace creation (#38969)

This reverts commit 26dc4d1.

Currently, the logic for creating a namespace is slightly different in `newKube` vs `claimKube`, but it shouldn't be. This change extracts the logic into a common function. Also does some general cleanup to consolidate code.

Co-authored-by: Nathan Mittler <nmittler@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test and release release-notes-none Indicates a PR that does not require release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

External Authz fails when server in a separate namespace
4 participants