Upgrade (projects must change): admin is explicit too, and a database without a schema is closed.
controlhas four admin lists,admin_create,admin_read,admin_update,admin_delete: the/adminobject routes need the route's permission id and the table in that database's list.["*"](every table of that database) is allowed only in these four. Atom's master lists are["*"], so a project that extendsbase_config_postgres_schema_master["control"]changes nothing; a project may narrow them.- Every other database's schema lists its admin tables, e.g.
"admin_read": ["*"],"admin_create": ["gps_point"]: without them/admin/object-*on?connection=<name>answers 403 naming the list. - A database with only
config_postgres_url_<name>and noconfig_postgres_schema_<name>(a read replica too) no longer follows master's rules: every table route refuses it (403). Give it a schema that lists what each group may read, e.g.config_postgres_schema_replica1 = {"control": {"private_read": ["task"], "admin_read": ["*"]}}. The query runners, pgweb and project code still reach it. /my/profileand/private/user-readno longer take?connection=: users live in master. Mark-as-read runs on the database the rows were read from.
What changed:
- One access pattern for every group: 12 lists (
public_create,public_read,private_read,my_create,my_read,my_update,my_delete,my_delete_all,admin_*), each a list of tables of that database; closed unless listed. They apply to Atom's table routes only (routes that take atable: object and table-column routes under/public,/private,/my,/admin, relation joins, CSV import), never to the SQL runners, pgweb, user routes or the project's own routes. - Databases Atom doesn't manage: a schema may be
controlonly (tableandsqloptional), and access lists may name any table that exists in that database, made outside Atom; startup checks each named table exists there and stops naming a missing one. Atom never alters a table outside thetablepart, sorow_update_disabled,row_delete_disabled,row_delete_max,buffer_limitandretention_dayaccept only tables of thetablepart. A table made outside Atom has no column rules: every column is visible to the groups it is opened to. - An empty schema (
{}or{"table": {}, "control": {}, "sql": {}}) is a database that opens nothing.