uniphant
uniphant · PostgreSQL-centric authentication and authorization demo integrating WebAuthn, PostgREST, and role-based access control.
Overview
PostgreSQL · 13
| Relationships | |
|---|---|
| Requires | webauthn |
Usage
Sources:
- Pinned upstream README
- Version 1.5 application SQL
- Pinned extension control file
- Pinned WebAuthn verification function
uniphant version 1.5 is a full-stack demonstration of PostgreSQL, PostgREST, WebAuthn, nginx, and browser clients. Its fixed public and api schemas implement users, credentials, roles, resources, permissions, access tokens, WebAuthn sign-up/sign-in, and generated OpenAPI metadata.
Demo-only installation
The expected database roles must exist, and the webauthn dependency is installed through CASCADE:
The complete demonstration also requires PostgREST, a trusted reverse proxy, browser WebAuthn support, TLS for non-local use, and the related PostgreSQL cryptographic dependencies. The README’s deployment recipe targets Ubuntu 20.04, PostgreSQL 13, PostgREST 7.0.1, and old request-header conventions.
Security-sensitive side effects
Installation grants web_anon usage on api and webauthn, grants web_anon to postgrest, and grants web_anon SELECT on all existing tables in both api and public. It creates many SECURITY DEFINER functions. The first successful non-anonymous sign-up receives the admin role automatically. These are deliberate demo shortcuts with major consequences in an existing database.
Do not install uniphant into a general-purpose or production public schema. A modern deployment must review every grant and definer function, remove first-user bootstrap behavior, verify fixed search paths, adapt PostgREST request settings, enforce trusted proxy headers and TLS, protect access-token storage, and retest current WebAuthn semantics. Use an empty disposable database for evaluation and compare the generated object/privilege inventory before and after installation.