mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Double encryption when workflows run on encrypt type fields #5012
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#5012
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @faizanaliyounas on GitHub (May 4, 2023).
Suite CRM encrypt type field stores encrypted data in database. But when I run workflow on it it encrypt the data two times and when I try to fetch the data is shows encrypted data .
Issue
SuiteCRM provides an "Encrypt" type field that allows users to store sensitive data in an encrypted form. This encrypted data is then stored in the database and can be retrieved when needed. However, it seems that there is an issue when running workflows on this data.
When a workflow is triggered on the encrypted data, it appears that the data is being encrypted again. This means that the data is being doubly encrypted and as a result, when it is fetched, it appears to be encrypted.
Expected Behavior
When the workflow has been run and I subsequently fetch the data, the string appears to be encrypted, as it was prior to the application of the workflow
Possible Fix
The encryption of 'Encrypt' type fields should not be performed by the workflow core functionality, and this issue should be resolved.
Steps to Reproduce
3.now create a workflow on any of the field
4.now again populate that field (workflow should run for that record)
5.now the encrypted field display something else (that is encrypted string that happens first time)
Context
I am trying to add SSN encrypted field highYour Environment
Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Chromium Version 96.0.4664.93