Disable user registration by default#5328
Conversation
|
Unlikely we're going to change this. A few comments:
|
|
Thanks @dcramer for the feedback! Allow me to reply to it.
|
|
@cpoetter tbh in most cases people use SSO, and this flag doesn't matter at that point |
|
@dcramer Okay, you are probably right. But SSO is not really part of this pull request, is it? The question is, in the cases this flag does matter, what value should it have by default? I also know that I can't claim to know what most people want or do. I only see the amount of pull requests and issues regarding this topic. I think this is at least a hint for something that could be a nice feature/change. The best would be to make a kind of survey regarding this issue I think. |
|
If we wanted to disable it by default, or make it easier to disable, I'd want to do it via the UI's configuration. That'd mean:
|
|
@dcramer I think we should first disable by default, and then do the UI for this, which, of course, is also very important. Almost 2 months have passed, but I can not find either a PR or an issue about such an option in the UI. However, last night thousands of people received letters from a script that checked the availability of ALL data on their Sentry servers, because they forgot to turn off the registration, or did not know that it was turned on by default at all. This spawned an issue #5617 I'll summarize my opinion:
|
|
We also received mail (luckily from a white hat). There should at least be an option in UI to turn registration off (like gitlab has). |
|
Is it possible to reopen this pull request, or should I create a new one? |
|
Just to reiterate we are NOT changing the default behavior. The only change we'll accept is exposing this in the UI as a runtime configuration, and as part of the setup wizard. If you want that PR, quite frankly, feel free make it yourself. Sentry is open source and free, but that doesn't mean we'll do whatever you want. Our prioritize is serving our customers and our cloud service, and this is not a priority for either of them. |
Why?
How does this relate to the finished change in the default value of a single configuration item, without which thousands of people have problems? You can just press the |
|
@AlexWayfer those "thousands" of people should learn that internal services need locked down just as much as anything. You're asking for a fairly significant change, with no obvious way to inform users of how to undo it, which will then end up with even more issues here asking how to enable registration, or create accounts, etc. I'm not opposed to making this easier and more obvious to configure, and a choice upon installation, but I am opposed to creating more work for our team 'just because'. |
|
+1, having Sentry opened to the world by default isn't so safe. Even internally (i.e. behind a VPN/IP filtering) not all employees are supposed to have access to Sentry. I understand you don't want it to trigger more developments on your end, but making this configurable with an environment variable would be pretty easy and would be a bliss for people using your Sentry image on DockerHub. The default could stay the same but at least, users that want to could disable user registration on container using your official image without having to use a custom I can come up with a PR if you're interested. |
As the following pull requests and issues show, disabling the user registration seems to be one of the most wanted features for self hosted server.
Add Env parameter to allow Register
Make user registration configurable by ENV var
Add SENTRY_ALLOW_REGISTRATION environment variable
add new environment variable to disable registration
Can not disable user registration
How to disable user register on self hosted server ?
Adding the ability to do so to the ENV variables was often discussed and denied. My approach is therefore different: Disable user registration by default.
I guess that disabling user registration is configured in a lot, if not the most sentry setups, as it is a huge security risk NOT to do so.