Option to disable and/or restrict signups
🔖 Feature description
Add an option to the configuration to disable signup of new accounts and/or an option that restricts signup to certain email domains. This is a pretty standard feature for most self-hostable SAAS.
Additionally some kind of invite system could be created that allows Admins to invite users via email to sign up, even when general signup is disabled (ideally with an additional config option).
🎤 Why is this feature needed ?
For maxium usability some may want to expose their postiz deployment to the internet. This however allows anyone to just create and account and use my deployment and my connected integrations, which they might not want. So an option to disable new signups or restrict them to a certain email domain (or similar) would do wonders.
✌️ How do you aim to achieve this?
Add a couple new config options:
- DISABLE_SELF_SIGNUP (boolean)
- RESTRICT_SELF_SIGNUP_EMAILS (comma seperated string of emails or domains) (overwritten by DISABLE_SELF_SIGNUP)
- DISABLE_INVITES (boolean) (overwrites both other options)
🔄️ Additional Information
No response
👀 Have you spent some time to check if this feature request has been raised before?
- [X] I checked and didn't find similar issue
Are you willing to submit PR?
None
Hello @DerLeole , I find it as an interesting issue to work on. I would like to work on this issue. Please assign this issue to me. /assign
Indeed, that's an essential feature for those trying to self-host, like myself. I have a rather small and slow VPS, no way I can afford to support random users registering and using the services that I host there.
Please do this, I also cant afford to have random internet folk using my server
Another please for this to happen. I was shocked that this wasn't already implemented.
Also supporting this
Got things installed and uninstalled when i realized theres no way to restrict access to myself and family without putting another login in front via traefik or something
was thinking wouldn't it be easiest to just expose the OIDC login, that way self-hosted users could just point to their own OIDC backend (pocketid, authentik, etc) and login/auto could be handled externally.
Hey, this is resolved half, because now you have the option to disable signup.
where are we this? are those config options added? if no, what are your current workarounds?
where are we this? are those config options added? if no, what are your current workarounds? @rockstarsunlimited You can check the latest releases or the docs. All though the email domain sign up will not be implemented.
Thanks @egelhaus for adding this.
For those having problems finding the configuration (I did), it was mentioned in https://github.com/gitroomhq/postiz-app/releases/tag/v1.29.1 as:
DISABLE_REGISTRATION=true
Couldn't actually find any mention of it in the docs though.
Created a PR for the docs: https://github.com/gitroomhq/postiz-docs/pull/85