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

fix acls when peering and partitions are both enabled #1733

Merged
merged 4 commits into from
Nov 17, 2022

Conversation

ndhanushkodi
Copy link
Contributor

@ndhanushkodi ndhanushkodi commented Nov 17, 2022

Changes proposed in this PR:

  • On a non-default partition, this rule errors with this log on server-acl-init
Failure: creating mesh-gateway-policy policy: err="Unexpected response code: 500 (rpc error making call: Invalid policy rules: partitioned policy cannot use partition_prefix rules)"

This only happens on a non-default partition when peering and partitions are both enabled, so I found this when testing non-default partitions with ACLs. So this adds a condition to the partition_prefix rule

How I've tested this PR:
manually, on non-default partitions, acceptance tests for other cases

How I expect reviewers to test this PR:

Checklist:

  • Tests added
  • CHANGELOG entry added

    HashiCorp engineers only, community PRs should not add a changelog entry.
    Entries should use present tense (e.g. Add support for...)

@@ -1273,6 +1273,9 @@ workflows:
context: consul-ci
requires:
- dev-upload-docker
- acceptance-gke-1-23:
requires:
- dev-upload-docker
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will remove before merging.

@ndhanushkodi ndhanushkodi requested review from a team, kschoche and ishustava and removed request for a team November 17, 2022 07:51
@ndhanushkodi ndhanushkodi merged commit c3fbb09 into main Nov 17, 2022
@ndhanushkodi ndhanushkodi deleted the nd/fix-acl-with-peer-and-part branch November 17, 2022 17:04
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