Skip to content

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

Merged
ishustava merged 1 commit into
release/1.17.0from
ishustava/1.17-backport-acls-workload-selectors
Oct 19, 2023
Merged

[1.17.0 backport] acls,catalog,mesh: properly authorize workload selectors on writes#19301
ishustava merged 1 commit into
release/1.17.0from
ishustava/1.17-backport-acls-workload-selectors

Conversation

@ishustava
Copy link
Copy Markdown
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
@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