Skip to content

New Rake task to check for ccdb encryption key rotation - #5476

Open
jochenehret wants to merge 1 commit into
mainfrom
rotate-cc-db-key-pre-check
Open

jochenehret wants to merge 1 commit into
mainfrom
rotate-cc-db-key-pre-check

Conversation

@jochenehret

@jochenehret jochenehret commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Thanks for contributing to cloud_controller_ng. To speed up the process of reviewing your pull request please provide us with:

  • A short explanation of the proposed change:

New Rake task to check if re-encryption is necessary.

exit code 0: no rows need to be re-encrypted
exit code 1: error
exit code 2: rows need re-encryption -> now you must run "rake rotate_cc_database_key:perform", or the corresponding bosh errand

  • An explanation of the use cases your change solves

Currently we are always calling the rotate_cc_database_key errand in our CI pipeline. This errand is configured to run on a separate VM and sometimes VM creation fails due to capacity shortages. Co-locating the errand on an existing VM is not a solution, as the errand is long-running and would block BOSH updates.

So we are proposing a new Rake task that allows to check if rotation is necessary or can be skipped.

  • Links to any other associated PRs

cloudfoundry/capi-release#696

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

* new task to check if re-encryption is necessary, call with "rake rotate_cc_database_key:check"
** exit code 0: no rows need to be re-encrypted
** exit code 1: error
** exit code 2: rows need re-encryption -> now you must run "rake rotate_cc_database_key:perform", or the corresponding bosh errand

This branch has not been deployed

No deployments
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.

1 participant