We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
db_encryption_key is incorrectly parsed if it has a leading #. This is because hashes are interpreted as comments if not escaped/quoted
db_encryption_key
#
We need to yaml_escape it (and potentially review other password/key fields) before rendering it to cloud_controller.yml
yaml_escape
cloud_controller.yml
with the following password:
egrep db_encryption_key /var/vcap/jobs/cloud_controller_ng/config/cloud_controller_ng.yml db_encryption_key: #mypassword
bosh deployment prestart fails on cloud_controller_ng job with prestart logs reporting the following
Running migrations [2022-01-06 14:29:08+0000] Running migration try number 1 of 3 [2022-01-06 14:31:43+0000] VCAP::CloudController::ValidateDatabaseKeys::DatabaseEncryptionKeyMissingError [2022-01-06 14:31:43+0000] No database encryption keys are specified [2022-01-06 15:16:55+0000] Waiting for bosh_dns
cc.db_encryption_key
#mypassword
The key is set correctly and the deploy succeeds
prestart fails with DatabaseEncryptionKeyMissingError
DatabaseEncryptionKeyMissingError
Use
capi-release/jobs/cloud_controller_ng/templates/cloud_controller_ng.yml.erb
Lines 11 to 19 in e0582bc
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue
db_encryption_key
is incorrectly parsed if it has a leading#
. This is because hashes are interpreted as comments if not escaped/quotedWe need to
yaml_escape
it (and potentially review other password/key fields) before rendering it tocloud_controller.yml
Context
with the following password:
bosh deployment prestart fails on cloud_controller_ng job with prestart logs reporting the following
Steps to Reproduce
cc.db_encryption_key
to something like#mypassword
in the bosh manifestExpected result
The key is set correctly and the deploy succeeds
Current result
prestart fails with
DatabaseEncryptionKeyMissingError
Possible Fix
Use
capi-release/jobs/cloud_controller_ng/templates/cloud_controller_ng.yml.erb
Lines 11 to 19 in e0582bc
We should probably also do a review and see if there are other fields that should be escaped
The text was updated successfully, but these errors were encountered: