|
|
|
|
|
by ralala
2708 days ago
|
|
How much of the typical application server authorization logic can we put into the database? Is it possible to setup authorization on a cell-level?
Example: All users may change their own passwords, but only team admins may change the passwords of other users in their team. |
|
A clarification on my previous comment: The way I’ve used Postgres RBAC is to create roles for each service in my application that needs DB access. For example say you have a service (in my case typically a lambda function) that only ever reads data from the DB and only from specific tables. I would create a role that only grants SELECT privileges for those specific tables. This also disallows UPDATE, DELETE, ALTER etc. privileges. Then assign this service that role. This mitigates the possible damage done if that service is compromised and shrinks your applications attack surface.