Skip to content

Split appcred finalizer management#723

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
Deydra71:appcred-finalizer-split
May 26, 2026
Merged

Split appcred finalizer management#723
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
Deydra71:appcred-finalizer-split

Conversation

@Deydra71

Copy link
Copy Markdown
Contributor

Following the discussion in watcher-operator the AC finalizer management is now split into two phases:

  • Early phase: adds consumer finalizer to the new AC secret immediately (protects it from premature revocation)
  • Late phase: removes consumer finalizer from the old AC secret only after AllSubConditionIsTrue()

This prevents a race condition where rapid AC rotations could revoke credentials still in use by running pods. The same pattern is implemented in all service operators with application credential support.

Note: the rotation env test now requires the parent Ironic CR to reach full Ready state. simulateIronicSubServicesReady drives all subCRs to Ready by simulating their resources.

The AC finalizer management is now split into two phases:
Early phase: adds consumer finalizer to the new AC secret immediately (protects it from premature revocation)
Late phase: removes consumer finalizer from the old AC secret only after AllSubConditionIsTrue()

This prevents a race condition where rapid AC rotations could revoke credentials still in use by running pods.

Signed-off-by: Veronika Fisarova <vfisarov@redhat.com>
@Deydra71 Deydra71 requested a review from steveb May 26, 2026 05:53
@openshift-ci openshift-ci Bot requested review from abays and hjensas May 26, 2026 05:54
@openshift-ci

openshift-ci Bot commented May 26, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Deydra71, hjensas

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot Bot merged commit 19657d0 into openstack-k8s-operators:main May 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants