Skip to content
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

When testing dockerized jimi, building new containers results in ValueError: Incorrect decryption. #5

Open
bodleytunes opened this issue May 1, 2021 · 1 comment

Comments

@bodleytunes
Copy link
Owner

When rebuilding the containers during testing (docker-compose build && docker-compose up) it seems that the passwords stored in the flows are no longer decryptable due to some kind of key change or system id change possibly?
Need to look into how the decryption keys can persist.

@bodleytunes
Copy link
Owner Author

core_1       | Error: Action Crashed. actionID=608d55c7634b20a587e2787a, actionName=a9cb42ab-e91b-4cc1-a338-9978f4a4a5bb, error=Traceback (most recent call last):
core_1       |   File "/home/jimi/core/models/conduct.py", line 170, in flowHandler
core_1       |     data["flowData"]["action"] = class_.runHandler(data=data)
core_1       |   File "/home/jimi/core/models/action.py", line 70, in runHandler
core_1       |     actionResult = self.doAction(data)
core_1       |   File "/home/jimi/plugins/remote/models/action.py", line 128, in doAction
core_1       |     password = auth.getPasswordFromENC(self.password)
core_1       |   File "/home/jimi/core/auth.py", line 145, in getPasswordFromENC
core_1       |     secureKey = cipher_rsa.decrypt(encSecureKey)
core_1       |   File "/home/jimi/.venv/lib/python3.9/site-packages/Crypto/Cipher/PKCS1_OAEP.py", line 200, in decrypt
core_1       |     raise ValueError("Incorrect decryption.")
core_1       | ValueError: Incorrect decryption.
core_1       |  : FrameInfo(frame=<frame at 0x7fd278139750, file '/home/jimi/core/models/conduct.py', line 172, code flowHandler>

@bodleytunes bodleytunes linked a pull request May 1, 2021 that will close this issue
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 a pull request may close this issue.

1 participant