Uh oh!
There was an error while loading. Please reload this page.
Add a session wrapper to encrypt the data before storing it on disk - #18482
Conversation
LukasReschke
commented
Aug 21, 2015
This looks fishy @Xenopathic |
karlitschek
commented
Aug 21, 2015
thanks @LukasReschke |
cf68d90 to
e69045bCompareThere was a problem hiding this comment.
Probably not required anymore since this is now as well a session cookie
e69045b to
f14aee7Comparef14aee7 to
6a3fb0dComparescrutinizer-notifier
commented
Aug 21, 2015
A new inspection was created. |
ghost
commented
Aug 21, 2015
PVince81
commented
Aug 24, 2015
Works fine in web UI + sync client 1.8.4, tested with encryption which uses the session for the keys. 👍 |
MorrisJobke
commented
Aug 24, 2015
Tested and works 👍 |
Add a session wrapper to encrypt the data before storing it on disk
PVince81
commented
Aug 25, 2015
Mysterious regression: #18557 |
icewind1991
commented
Sep 8, 2015
Did anyone bother checking the performance of this approach? https://blackfire.io/profiles/compare/fc575a75-07e5-4b84-b266-d012db68745b/graph 33ms (on my machine) for every single request doesn't seem worth it to me since it's just obfuscation. |
LukasReschke
commented
Sep 8, 2015
#17866 would have done this. - With this approach I'm not quite sure how we can achieve this if we want a somewhat useful encryption. Well, or we remove any HMAC verification which would make this even more snake-oily 🙊 |
LukasReschke
commented
Sep 8, 2015
Mhm… I think we could emulate this by putting everything into a single session field … Let me see… |
karlitschek
commented
Sep 8, 2015
Hmm. Why does it happen 43 times? |
LukasReschke
commented
Sep 8, 2015
Because with this approach every item in the session is encrypted itself instead of the whole session. And thus decrypting each item is required on it's own which involves HMACing ;-) |
karlitschek
commented
Sep 8, 2015
Hmmm. Can we have a config.php option so that this can be switch off on heavy load situations? |
LukasReschke
commented
Sep 8, 2015
No. But we can fix this. Please no config switches for stuff that we can fix properly. THX. |
LukasReschke
commented
Sep 8, 2015
Config switch = Nobody tests one of the conditions = It's broken. |
karlitschek
commented
Sep 8, 2015
Agreed. IF you can fix it :-) |
LukasReschke
commented
Sep 8, 2015
LukasReschke
commented
Sep 8, 2015
karlitschek
commented
Sep 8, 2015
LOL |


Reanimation of #17744 until we can have #17866
Reviewers please:
@nickvergessen@DeepDiver1975@MorrisJobke