Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgresql protocol not using RBAC row policy #22658

Closed
UnamedRus opened this issue Apr 5, 2021 · 0 comments · Fixed by #22755
Closed

Postgresql protocol not using RBAC row policy #22658

UnamedRus opened this issue Apr 5, 2021 · 0 comments · Fixed by #22755
Assignees
Labels
bug Confirmed user-visible misbehaviour in official release comp-postgresql comp-rbac Access control related

Comments

@UnamedRus
Copy link
Contributor

How to reproduce
Clickhouse version 21.5

 CREATE TABLE xxx_table (val UInt32) ENGINE=MergeTree ORDER BY val;
 INSERT INTO val SELECT * FROM numbers(10);
 CREATE ROW POLICY xx_policy ON default.xxx_table FOR SELECT USING val = 2 TO postgres;
 
 
 default=> SELECT * FROM xxx_table;
 val
-----
   0
   1
   2
   3
   4
   5
   6
   7
   8
   9
(10 rows)



LAPTOP.localdomain :) SELECT * FROM xxx_table;

SELECT *
FROM xxx_table

┌─val─┐
│   2 │
└─────┘

Additional context
Related #22572

@UnamedRus UnamedRus added the bug Confirmed user-visible misbehaviour in official release label Apr 5, 2021
@filimonov filimonov added comp-postgresql comp-rbac Access control related labels Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed user-visible misbehaviour in official release comp-postgresql comp-rbac Access control related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants