-
Notifications
You must be signed in to change notification settings - Fork 516
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
Rework user management #1220
Rework user management #1220
Conversation
Can you also update the docs and schema for this change? |
Yep will do that too :) |
I don't know why i did'nt do this right away haha, way more clean! Thank you! |
May I suggest we don't merge this until 2.5.0 since it's a schema-breaking change? |
It's not a breaking change since it's backwards compatible :) I think the current state is way more fragile since we only support a single user in a file. Which means - and has been pointed out in the issues - that users will lose their actual settings if they try to export them. In addition I think the 1 different settings of "users" and "superusers" seemed to have stirred quite some confusion which this resolves as well |
Yea it appears backwards compatible, I get that there's still some work left. |
I like this plan. I was under the impression that this was a breaking change |
@Torxed This should be ready for a review now :) |
Testing commences now! :D |
Great work, especially making it backwards compatible. Merged and done! :) |
Fantastic, thanks for double checking everything :) |
I think the related issues where not closed automatically |
You are correct heh, gotta love Github. |
I'm not sure what triggers it, maybe only mentioning it in the title 🤷♂️ |
It's if the word |
Could you add a text when we can start testing it? |
It is in master now so basically from there now :), @Torxed will this make it into the new iso? |
It will :) I'm planning on running several tests throughout the day. |
Re-worked user management
Fixes
Changes
New file format for user credentials
The format for the credentials config file has changed to allow specifying multiple users. This change is backwards compatible, so if old configurations get passed they are parseable and will internally be transformed into the new format. When saving configurations they will be saved in the new format.
Old format
New format
User object
!superuser
does not exist anymore, instead only the internal!users
is handled whereas the entries are now aUser
class objectThis greatly simplified the code in some parts and makes it easier to avoid bugs :)
Update to menu
The menu has now only 1 entry to define users in which the sudo privileges can be specified.
@Torxed I'll let you know when it's ready, probably tomorrow :)