Universal Admin GitHub

How logins stay safe

Universal Admin has no users of its own and keeps no data of its own. People log in with their own database accounts, so the database stays the one place that decides who may see and change what.

Get Universal Admin

Logging in

WhatHow
The passwordChecked by the database itself, not by Universal Admin
What each person sees and may changeThe account's own rights in the database: a table it can't read isn't there for that person, and a change it may not make is refused
Superuser accounts (postgres, root)Refused at the login page, unless the config says allow_superuser: true
Wrong passwordsAfter five for one account within ten minutes, further tries wait, so guessing through the page is slow
The login itselfA cookie holding the account, encrypted with a random key written once on the server (readable by its owner only); it can't be read by the page's scripts, and it ends after 12 hours

An admin nobody logs in to

When the database address carries the password, nobody logs in, so the address itself is the lock. Then the admin only answers on the machine it runs on: it refuses to listen where other machines can reach it, refuses requests that come through a proxy or tunnel, and refuses pages that address it under another site name, which stops a web page in your browser from reaching it.

Changing data

WhereHow
Forms and listsChanges go through requests a page on another site can't send (they must be JSON)
The query pageRead-only unless the config says query: write; then every statement runs read-only first, and one that would change data asks before running again
The People pageOnly for accounts allowed to manage accounts; never changes your own account or a superuser; each change is confirmed in words first and written to the log

More on accounts and running it on a server: Connecting in the README, and Deploy. Found a problem? Please report it privately through GitHub's security advisories on the repository.