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

[1.17.0 backport] acls,catalog,mesh: properly authorize workload selectors on writes #19301

Merged

Conversation

ishustava
Copy link
Contributor

Description

Manual Backport of #19260

Testing & Reproduction steps

Links

PR Checklist

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

…19260)

To properly enforce writes on resources that have workload selectors with prefixes, we need another service authorization rule that allows us to check whether read is allowed within a given prefix. Specifically we need to only allow writes if the policy prefix allows for a wider set of names than the prefix selector on the resource. We should also not allow policies with exact names for prefix matches.

Part of [NET-3993]
@ishustava ishustava added pr/no-changelog PR does not need a corresponding .changelog entry pr/no-backport labels Oct 19, 2023
@ishustava ishustava requested a review from a team as a code owner October 19, 2023 20:41
@github-actions github-actions bot added the theme/acls ACL and token generation label Oct 19, 2023
@ishustava ishustava merged commit fdd3a98 into release/1.17.0 Oct 19, 2023
92 checks passed
@ishustava ishustava deleted the ishustava/1.17-backport-acls-workload-selectors branch October 19, 2023 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/no-backport pr/no-changelog PR does not need a corresponding .changelog entry theme/acls ACL and token generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants