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

Backport of Integration test for ext-authz Envoy extension into release/1.16.x #18003

Conversation

hc-github-team-consul-core
Copy link
Contributor

Backport

This PR is auto-generated from #17980 to be assessed for backporting due to the inclusion of the label backport/1.16.

🚨

Warning automatic cherry-pick of commits failed. If the first commit failed,
you will see a blank no-op commit below. If at least one commit succeeded, you
will see the cherry-picked commits up to, not including, the commit where
the merge conflict occurred.

The person who merged in the original PR is:
@cthain
This person should manually cherry-pick the original PR into a new backport PR,
and close this one when the manual backport PR is merged in.

merge conflict error: POST https://api.github.com/repos/hashicorp/consul/merges: 409 Merge conflict []

The below text is copied from the body of the original PR.


Description

This PR introduces a consul-container integration test for the Envoy external authorization extension. The test:

  • Spins up a single Consul DC with a static-server and static-client.
  • Adds an OPA agent container that loads its Rego policies from a locally mounted testdata directory.
  • Applys the builtin/ext-authz Envoy extension to the static-server via a service-defaults config entry.
  • Verifies that requests are permitted or denied as expected, based on the Rego policy.

Testing & Reproduction steps

consul$ make test-compat-integ-setup
consul$ cd ./test/integration/consul-container && go test ./test/envoy_extensions/... && cd -

PR Checklist

  • updated test coverage
  • external facing docs updated
  • appropriate backport labels added
  • not a security concern

Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/cthain/NET-3913/ext-authz-int-tests/possibly-sacred-sloth branch from a773399 to 1189a93 Compare July 4, 2023 15:09
@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/cthain/NET-3913/ext-authz-int-tests/possibly-sacred-sloth branch 2 times, most recently from a326406 to 1189a93 Compare July 4, 2023 15:09
Copy link

Choose a reason for hiding this comment

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

Auto approved Consul Bot automated PR

@vercel vercel bot temporarily deployed to Preview – consul July 4, 2023 15:15 Inactive
@cthain cthain marked this pull request as ready for review July 4, 2023 19:18
@cthain cthain merged commit 3bd4e4f into release/1.16.x Jul 4, 2023
@cthain cthain deleted the backport/cthain/NET-3913/ext-authz-int-tests/possibly-sacred-sloth branch July 4, 2023 19:45
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