This module encrypt en decrypt submission data and in the progress of that it checks if you may decrypt data.
But Webform already checks if you have access to the data, so why does the module check the access again?
Like field_encrypt we only want to save the data encrypted into the database to ensure unwanted access if your database got in the wrong hands.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | webform_encrypt_1.3-remove_access_handling-2433939-14.patch | 2.91 KB | paulvandenburg |
| #9 | 2433939-9.patch | 5.48 KB | spadxiii |
| #1 | webform_encrypt_should-2433939-1.patch | 6.09 KB | tessa bakker |
Comments
Comment #1
tessa bakkerHere is the patch, many thanks to MrHaroldA for pointing me in the right direction.
Comment #2
mrharolda commentedLooking good!
I do think that this shouldn't be committed to the 1.x branch as some sites may depend on this (weird) global permission. I'll leave this issue open until FatGuyLaughing and I decide on the maintainership of this module ...
Comment #3
heddnYet another reason to create new versions. See #1788042-15: Compatibility with Webform 4.x
Comment #4
tessa bakkerAny progress on the 2.x branch? :)
Comment #5
mrharolda commented@Tessa: nope ;)
But I just created a roll-up release (1.1) for all commits in the repository, dating back to 2012 ...
Comment #6
alexfarr commentedhi,
We have a use case where we want to let sub_editors see a submission but not the encrypted data and only let full_editors have access. This is pretty crucial for us. Could we keep the additional access check in please?
Also i have noticed that using the submission_load hook to decode the submission does cause all webform submission data to be decrypted even if it is not used whenever a submission is loaded, for example on the results listing page. This is starting to causing us some performance issues as we scale up. The original form alter process is more scalable in that respect but does not cover all use cases, what are your thoughts on this?
P.S. Thanks for bringing this module back to life!
A
Comment #7
mrharolda commentedProbably not. Implementing your own "pseudo secure" permission per webform field is quite easy. The current implementation acts way too late; it'm more in the theming layer than in the decryption layer, so it's also prone to error and disclosure anyway.
Comment #8
alexfarr commented@MrHaroldA
Hi, i did miss a key point in my post as i made a poor assumption.
I had forked this module some time ago to use on my production sites (https://www.drupal.org/sandbox/alexfarr/2514726), which now seems to be following a very similar line to your changes. I have the access check in the submission_load hook, which keeps this away from the theming layer. I have found it useful to allow users to view webform submissions without disclosing the encrypted values. But as you say this can be done in a separate module by implementing your own submission_load() hook, but the values would have already been decrypted at this point giving more opportunities for disclosure. I would prefer not to have decrypted the values in the first place.
I'm happy either way, but think its worth considering and i plan to make the switch back to this official module asap.
Cheers
A
Comment #9
spadxiii commentedJust a re-roll of #1 against the current 7.x branch.
Comment #10
dharmesh.sojitra commentedI have tested and #9 is working as charm.
Thank You
Comment #11
th_tushar commentedThe user access is required to keep additional security while decryption of data.
Comment #12
th_tushar commentedComment #13
tessa bakker@th_tushar .. are you serious? Showing encrypted data because you don't have the access to unencrypt is like, showing you database, because you can't read it... Isn't it better to handle access in this way?
1. Access to webform submission, no > access = false
2. Access to field inside webform submission, no > access = false
3. field data == encrypted { unencrypt data }
No 3. is where this module is needed, No 1. is Webform itself, No 2 is custom code or any other module.
Comment #14
paulvandenburg commentedAdded patch for webform encrypt version 1.3
Comment #15
lexsoft00 commentedI agree with @Tessa Bakker, webform is already handling access, the #14 patch works for me.
For those who are not using this patch if you don't give permission to anonymous users in webform_encrypt permissions the email values sent are encrypted and shown as:
Submitted values are:
First Name: [Value Encrypted]
Last Name: [Value Encrypted]
Email: [Value Encrypted]
Message: [Value Encrypted]
Comment #16
paulvandenburg commentedI'll mark this RTBC then.
It has been running fine on over 20 production sites over here for quite some time.
Comment #17
nicrodgersDrupal 7 and the 7.x release are no longer supported, closing as outdated. If this is still an issue in 8.x-2.x please re-open.