mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 04:56:03 +03:00
[GH-ISSUE #99] Backwards compatibility breakage coming, here is what you can do #79
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#79
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 @jasonmunro on GitHub (Jul 24, 2016).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/99
There are 2 issues in the code that will break existing saved settings. Both are pro-active changes to address potential security issues, neither of which has been exploited or proven exploitable.
HOW TO UPDATE YOUR SETTINGS:
Once you do that, your data will be updated to the new formats and won't be lost when the final changes go in. I plan on making the switch over in about 1 week.
@ulfgebhardt commented on GitHub (Jul 26, 2016):
Hello @jasonmunro ,
i have an issue with this procedure ;-). I dont update your Software in 1weeks time.
To save my Settings i would like you to detect wether the saved settings is the old or new format and convert it if possible - or make it convert on config_gen. I guess there might be a Problem with Encryption, since the server might not be able 2 decrypt the string on its own, without the users password(???) - if so, please ask the user for his password to convert the Data on login. In this step i recommend to include a version number if thats possible so you can change the settings whenever you like.
Do this if its possible and not too much work, i use your software still in a small environment with few users, but if that might change this could be a real pain.
Thanks for your Time and Effort you put into this for all of us!
@jasonmunro commented on GitHub (Jul 26, 2016):
@ulfgebhardt, thanks for the feedback!
Currently the code does just what you suggest, it checks for the old/new formats and converts them to the newer format on user save/config generation, and the hmac signature check tries both the old and the new keys when validating an encrypted string. Technically, I don't have to remove the legacy support, and I could seamlessly update the user settings on login if the old format is detected without too much effort (or the user even knowing about it).
Honestly, I picked a 1 week time frame because I did not think it would be problem for anyone. Now that I know it is, I have no problem delaying the switch over, or even maintaining legacy support using a version number perpetually. Thanks again for letting me know!
@jasonmunro commented on GitHub (Aug 19, 2016):
I have preliminary version support in place, and my new plan is to delay this change until we get serious about releasing a first version. Closing this in the meantime.