Hide sensitive columns #2654
-
Environment
Description of issueThis is more like a feature request other than a bug. I'm new to PostgREST but used PostgreSQL for many years, I looked all the docs trying to find out if it's possible to hide sensitive columns like Thanks. PostgREST looks very interesting and powerful, I'd like to use it in my next project. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We infer the FKs of a view, see https://postgrest.org/en/stable/api.html#embedding-views, so you can use an auto-updatable view for that.
Additionally you could |
Beta Was this translation helpful? Give feedback.
We infer the FKs of a view, see https://postgrest.org/en/stable/api.html#embedding-views, so you can use an auto-updatable view for that.
Additionally you could
GRANT SELECT(col1, col2) ON tbl TO role
and not include thepassword
column. Then only make the UPDATE available through a SECURITY DEFINER function.