PostgreSQL Row Security Policies (RLS)
See original GitHub issueHello, first, thanks for this awesome software, you guys are doing a great work making something really usable to manage databases!
There is a feature that allow to manage rules in postgres ( https://github.com/dbeaver/dbeaver/issues/2284 ).
I think it could be good to know something similar for Policies: https://www.postgresql.org/docs/current/ddl-rowsecurity.html
Steps to reproduce, if exist:
CREATE TABLE public."user" (
id serial NOT NULL,
"name" text NULL
);
CREATE POLICY user_read_all_policy ON public.user
FOR SELECT
USING (true);
CREATE POLICY user_insert_any_policy ON public.user
FOR INSERT
WITH CHECK(true);
ALTER TABLE public.user ENABLE ROW LEVEL SECURITY;
Actually, the way to see what policies have a table, we can use:
select * from pg_policies;
I hope you can consider this for future releases.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:40
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Documentation: 15: 5.8. Row Security Policies - PostgreSQL
Row security policies can be specific to commands, or to roles, or to both. A policy can be specified to apply to ALL...
Read more >PostgreSQL Row Level Security (RLS): Basics and Examples
Row level security (RLS for short) is a PostgreSQL security feature provided by the open source PostgreSQL database.
Read more >Hands-on with PostgreSQL Authorization - Row-Level Security
What is Row-Level Security (RLS)? It's a way for PostgreSQL to limit what rows of a table are visible to a query. Typically,...
Read more >How to implement Column and Row level security in ...
Row -level security (RLS for short) is an important feature in the PostgreSQL security context. This feature enables database administrators ...
Read more >Using PostgreSQL Row-Level Security in a high-growth ...
At Dovetail, we leverage Row-Level Security (RLS) features built into PostgreSQL. By composing together GRANTS and POLICIES (that depend on transaction ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Would be nice to have a
Policies
tab on the list under a Table’sProperties
tab, similar to Indexes, Triggers, Constraints, Partitions, Rules etc. I use policies on almost all tables.Implemented and will be available in DBeaver 22.1.3: