-
Notifications
You must be signed in to change notification settings - Fork 34
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
Schema overhaul #91
Schema overhaul #91
Conversation
Just some thoughts as I'm jumping through these changes. Still stuff to do but thought I'd loop you in already. Following from "allow lists is now members" comes the realization that members need to have a nickname. Assuming that no-one wants to deal with just public keys and they might not have an alias. So the current allow list form needs another input field (and styling for that... cc @staltz 😬) and a way to change the members role (not sure if we want to make this with a drop-down on the list or a separate edit page (which might be worthwhile if people want to change their nick or public key for instance). |
Oh, yes it would make sense that the members page allows changing roles. A dropdown seems fine, to begin with. Just note that only admin should be able to change roles. But nicknames? Why? Aliases are basically the nickname system. |
Is this the reason? And in what context would they deal with public keys? Not sign-in, because that should be handled by SIWSSB (we don't want the fallback username/password system for all members. In fact we didn't even want it originally for anyone) |
if the members don't have a nickname, you just see the public key on who created the invite or who do these aliases belong to.
Not all users might have an alias. I might not want all my devices identified with an alias, especially since it's enumerable from the public, unless I switch the room into restricted mode, which might not be what the other room members want. edit: this members nickname is also different from the fallback password (where the "username" is called login). This is another place where entries are linked to the members and where changing or no aliases can be confusing. |
By the way: I don't think we need to spec this. It just makes sense for an implementation, I think. Simply starting from the case "what happens when you remove your only active alias" or "what do you show when there are two aliases?". |
That's good clarification. Thanks
I see this as a possibility, but not a need, strictly. Seeing the raw public key is not pressing problem, as I see it. There are also considerations to make, such as minimizing how much the admin knows about its members (see some Security Considerations in the spec), and it's also possible to create confusion by having both nickname and alias (people might register one thinking that they wanted the other, or vice-versa). Attaching identifiable metadata to members should also ideally by signed by the member, so that's why I compared them to aliases. |
Other thoughts about this
I think it would make sense to merge the aliases and members list pages into one, and add role dropdown too. It would need some redesign, indeed. We might even need a "member details" page that lists all the details of that member and allows editing (e.g. revoke alias). |
I'd argue the welcome strings we have act like help/descriptions on the page and should do a good job there.
Honestly, I don't see how moderators can effectively govern a room if they don't know who is who. Additionally, this feels like invite consumption should then be grouped with alias creation. Last time I asked for this you were against it, claimed people might not want an invite... 🤷
Do you want to do this now? I'd rather put this on v2.2 or later since it would need considerable re-work and generalization. Another approach to storing these on the room could be to hook into a configured peer and query it for
This sounds reasonable but can we do it as a follow-up? There is a lot of needed changes in here. |
we had a call and among other things decided to: later merge aliases with members managment/editing. We don't want to have a 2nd database of the social data that is already in ssb ( |
* create consolidated schema with new members table * update interfaces * remove allow_list and replace it with members * update roomdb types * rename User to Member * add role enums * update insert-user
copy of previous allow-list stuff
* implement SetRole on sqlite * add dropdown form to members table * add http endpoint for processing * Add comment to denied keys overview * update ban remove confirm page
b13ed14
to
4f723ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a quick look at all files and this seems good. :)
0531d06
to
dde6549
Compare
Also did a high-level walk through with cblgh. Merrrging now! |
This is needed for #90 but because there is so much renaming, I made a separate PR.
(key|comment)
(pub_key|nick)