Skip to content

rbac: allow updating finalizer subresources - #8830

Open
jkroepke wants to merge 1 commit into
prometheus-operator:mainfrom
jkroepke:fix-finalizer-update-rbac
Open

jkroepke wants to merge 1 commit into
prometheus-operator:mainfrom
jkroepke:fix-finalizer-update-rbac

Conversation

@jkroepke

Copy link
Copy Markdown
Contributor

Description

Restore the update permission on the owner's finalizers subresource.

OwnerReferencesPermissionEnforcement requires this permission when blockOwnerDeletion is set. The permission was previously included through the wildcard verbs and was removed in #8752 when the RBAC rules were restricted to explicit verbs.

Type of change

  • CHANGE
  • FEATURE
  • BUGFIX
  • ENHANCEMENT
  • NONE

Verification

Updated the Jsonnet source and generated RBAC manifests consistently.

Changelog entry

Restore update permission on Prometheus Operator finalizer subresources.

@jkroepke
jkroepke requested a review from a team as a code owner September 19, 2026 08:59
@jkroepke
jkroepke force-pushed the fix-finalizer-update-rbac branch from 1aa1a19 to e7a79fa Compare September 19, 2026 09:33
@jkroepke jkroepke closed this Sep 19, 2026
@jkroepke
jkroepke deleted the fix-finalizer-update-rbac branch September 19, 2026 09:37
@jkroepke
jkroepke restored the fix-finalizer-update-rbac branch September 19, 2026 09:38
@jkroepke jkroepke reopened this Sep 19, 2026
@slashpai

Copy link
Copy Markdown
Contributor

If this affects the release 0.94 we can have patch release, PR would need to target release-0.94 branch

cc @simonpasquier

@simonpasquier

Copy link
Copy Markdown
Contributor

Thanks! I submitted #8828 in parallel but my PR has a larger scope so let's keep yours. I agree that we need a patch release for this.

Comment thread jsonnet/prometheus-operator/prometheus-operator.libsonnet Outdated
OwnerReferencesPermissionEnforcement requires update permission on the owner's finalizers subresource when blockOwnerDeletion is set. Restore the permission only for the affected finalizer subresources.

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
@jkroepke
jkroepke force-pushed the fix-finalizer-update-rbac branch from 19a4920 to c73592b Compare September 21, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants