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

Add support for unencrypted description field #11

Merged

Conversation

RobinR1
Copy link
Contributor

@RobinR1 RobinR1 commented Jan 24, 2024

When the description field is not encrypted, the resource secrets will contain only a password instead of a JSON containing password and description. Fixes #9 by detecting if the decrypted resource secrets is a JSON or not and act accordingly. The description field will be extracted from the resource secrets if present, otherwise it will be retrieved from the unencrypted resource details.

When the description field is not encrypted, the resource secrets will contain only a password instead of a JSON containing password and description. Fixes passbolt#9 by detecting if the decrypted resource secrets is a JSON or not and act accordingly.
The description field will be extracted from the resource secrets if present, otherwise it will be retrieved from the unencrypted resource details.
@CLAassistant
Copy link

CLAassistant commented Jan 24, 2024

CLA assistant check
All committers have signed the CLA.

@RobinR1
Copy link
Contributor Author

RobinR1 commented Jan 24, 2024

Note that I did not test this change against gnupg. I only tested using PGPy.

@AnatomicJC AnatomicJC merged commit 1b1041f into passbolt:main Jan 31, 2024
1 check passed
@AnatomicJC
Copy link
Collaborator

Many thanks for your PR @RobinR1 👍

I just added this additional commit to handle gnupg GPG library.

@AnatomicJC
Copy link
Collaborator

I published 0.0.12 with your fix: https://galaxy.ansible.com/ui/repo/published/anatomicjc/passbolt/

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 this pull request may close these issues.

Error with unencrypted description
3 participants