-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
Description
The current implementation of OIDC makes it completely un-usable. Please do note that OIDC is an essential security feature.
If the env var DISABLE_REGISTRATION is set to true, Postiz allows only 1 account registration which is ideally what you want for a homelab setup. However, it disables OIDC completely (even for already registered users).
The only way to use OIDC is to unset the aforementioned variable which means that any rando can register an ADMIN account if Postiz is exposed to the Internet. This is a massive security issue.
One very simple solution is to implement the following:
- Enable OIDC even when DISABLE_REGISTRATION is set for already registered users.
- When DISABLE_REGISTRATION is set, allow registrations only via Invite Link for all users (including OIDC).
This will also allow OIDC Users to be part of the same org when they sign in.
vrisalab