Skip to content

Automate key rotation for encrypted RBD storage classes #2123

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

black-dragon74
Copy link
Member

This patch sets the key rotation schedule annotation by default on RBD storage classes created from the UI; enabling automatic key rotation.

This patch sets the key rotation schedule annotation by default
on RBD storage classes created from the UI; enabling automatic key
rotation.

Signed-off-by: Niraj Yadav <[email protected]>
Copy link
Contributor

openshift-ci bot commented Jun 17, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: black-dragon74
Once this PR has been reviewed and has the lgtm label, please assign gowthamshanmugam for approval. For more information see the Code Review Process.

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

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

@black-dragon74 black-dragon74 changed the title Automate key rotation for RBD storage classes Automate key rotation for encrypted RBD storage classes Jun 17, 2025
@black-dragon74
Copy link
Member Author

/retest

@SanjalKatiyar
Copy link
Collaborator

@black-dragon74 can u plz add epic/story link to the PR.

Comment on lines +40 to +43
if (
sc?.parameters?.hasOwnProperty('encrypted') &&
sc?.parameters?.['encrypted'] === 'true'
) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create a function something like isStorageClassEncrypted and use it in L27 & L28 as well.

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