Skip to content

fix acls when peering and partitions are both enabled#1733

Merged
ndhanushkodi merged 4 commits intomainfrom
nd/fix-acl-with-peer-and-part
Nov 17, 2022
Merged

fix acls when peering and partitions are both enabled#1733
ndhanushkodi merged 4 commits intomainfrom
nd/fix-acl-with-peer-and-part

Conversation

@ndhanushkodi
Copy link
Copy Markdown
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...)

- dev-upload-docker
- acceptance-gke-1-23:
requires:
- dev-upload-docker
Copy link
Copy Markdown
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, ishustava and kschoche 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