Skip to content

Proper OIDC Implementation #807

@seamon67

Description

@seamon67

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.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions