The error "
The encryption keys provided cannot decrypt any of the 578 value(s) in the database." means that encryption key configured for Credhub is unable to decrypt values in database.
This likely indicates that the Credhub encryption key has changed at some point. You can run the following commands to check encryption key history (see
Credhub login KB):
credhub api https://<director IP>:8844/api/ --skip-tls-validation
credhub login --client-name=director_to_credhub --client-secret=<secret>
credhub find -p / | grep credhub_internal_provider_keys
credhub get -n /opsmgr/cf-f18558e6a9d2518299f4/credhub_internal_provider_keys/0/key --versions=10
The last command above will list out all the prior versions of encryption key. For the safest resolution to this error, we would recommend adding all these versions to the TAS tile as encryption keys (only check off active for the key you would like to use going forward). You can do this by navigating to OpsManager and adding further keys under:
TAS > Credhub >
Internal encryption provider keys These steps will guarantee that Credhub can decrypt all the values in database. For more information, see
Credhub configuration document.