-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Doc: Make clear that sharing registration_shared_secret is dangerous #2885
Comments
a pr to reword it would be welcome. |
When you point me to the location, that needs to be adjusted... 😃 |
@rugk I'm not finding in the code where users can register as admins via the REST interface? Per your post: And secondarily, is this the desired behavior? |
See also the issue I linked. There someone also said one can do this. I don't know whether I tested it, but I'm actually sure it is possible this way. And, I guess, yes, it is intended. There is this Python script for creating accounts. |
synapse/synapse/config/registration.py Line 74 in d69decd
and the README probably |
Also this issue is a related to #1659 but since it has more info maybe that issue should be closed in favor of this one. |
Signed-off-by: Aaron Raimist <[email protected]>
* Clarify what registration_shared_secret allows for (#2885) Signed-off-by: Aaron Raimist <[email protected]> * Add changelog Signed-off-by: Aaron Raimist <[email protected]>
fixed in #4844 |
In the config file it reads about
registration_shared_secret
:Especially the last part implies that this is just a secret one can share to users, who want to create an account. It then enables the registration, but only for the user, who has this secret. Also sounds very convenient.
What you do not mention there is one big fact: With that secret, you can register admin accounts!
That means that this secret is much more dangerous than one expects from reading the config description! (I also thought it is harmless.)
And, BTW, I am not the only one, who had this idea: element-hq/element-web#2090
So better adjust the text there, to specifically point that out! (and make sure that no admin shares it)
The text was updated successfully, but these errors were encountered: