Malfunctioning integration after upgrade from the release 3 to release 4 (unable to invoke cipher due to bad padding)

Created by George I., Modified on Mon, 05 Dec 2022 at 11:41 AM by George I.

Symptoms

- A build job in a CI system cannot be started from Allure TestOps UI.

- There are error messages in the logs of report service


unable to invoke cipher due to bad padding

Cause

A bad padding error appearing in the logs of report or uaa services' is caused by the misconfiguration: not all the settings are transferred from old configuration to the new one.


Please refer to this article where the ciphering of the secrets in the database was introduced: https://docs.qameta.io/allure-testops/migrations/to-3-184-2/


The reason you are getting bad padding is that you either forgot to transfer the encryption key from ALLURE_CRYPTO_PASSWORD configuration parameter of your old config or it was transferred with additional symbols (like an unnecessary space character at the end).


How to fix


  1. Take your old configuration files and check the content of configuration files by searching for `ALLURE_CRYPTO_PASSWORD`. 
    • You must have two of these in the config – report service and uaa service
    • Ideally, both strings will be the same
  2. You need to take the old string and apply it to the new configuration.


References to the deployments

docker compose deployment

the content of old ALLURE_CRYPTO_PASSWORD needs to be added to '.env' file to the env variable ALLURE_CRYPTO_PASSWORD

Kubernetes deployment

the content of old ALLURE_CRYPTO_PASSWORD needs to be added to 'values.yaml' file to the env variable cryptoPass

packages deployement

the content of old ALLURE_CRYPTO_PASSWORD needs to be added to the configuration fules of uaa and report services to the same variable.




Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article