bodleytunes / jimi

Jimi is an automation first platform designed from the ground by IT and Cyber Security. Automation first means that the usual product limitations are removed opening the possibilities of automation to all aspects of IT. Jimi features a rich no-code user interface creating a single pane of glass that effortlessly integrate your existing tools unlocking new possibilities and enabling cross functional automation.
https://z1pti3.github.io/jimiDocs
Apache License 2.0
0 stars 0 forks source link

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

Open bodleytunes opened 3 years ago

bodleytunes commented 3 years ago

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 commented 3 years ago
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>