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

Cleanup file access control #5039

Merged
merged 20 commits into from
Oct 7, 2020
Merged

Conversation

dain
Copy link
Member

@dain dain commented Sep 1, 2020

No description provided.

@dain dain requested a review from electrum September 1, 2020 04:22
@cla-bot cla-bot bot added the cla-signed label Sep 1, 2020
@dain dain force-pushed the cleanup-file-access-control branch from ee6e12c to 2c49db5 Compare September 2, 2020 04:07
@dain dain requested a review from kokosing September 2, 2020 04:07
@dain dain force-pushed the cleanup-file-access-control branch from 2c49db5 to 9347c2e Compare September 2, 2020 18:07
kokosing
kokosing previously approved these changes Sep 2, 2020
@dain dain force-pushed the cleanup-file-access-control branch 3 times, most recently from 6bbb705 to 5e2da1a Compare September 3, 2020 00:50
@dain dain force-pushed the cleanup-file-access-control branch 2 times, most recently from ab29061 to 12762aa Compare September 17, 2020 03:55
@dain dain requested a review from kokosing September 17, 2020 04:02
@dain dain force-pushed the cleanup-file-access-control branch from 12762aa to 92cc3e5 Compare September 17, 2020 04:24
@mosabua mosabua added the docs label Sep 17, 2020
Copy link
Member

@mosabua mosabua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bunch of minor suggestions for docs submitted. I have not looked at the code...

@dain dain force-pushed the cleanup-file-access-control branch from 92cc3e5 to db77636 Compare September 24, 2020 00:50
Copy link
Member

@kokosing kokosing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for first 3 commits. Up to Change catalog check to match other checks. If you could merge them, then it will be easier to continue with that. It is quite hard for me to digest it all at once.

@dain
Copy link
Member Author

dain commented Sep 29, 2020

@kokosing I prefer to wait until you are done, and then I will merge... the first couple are simple cleanups, and I don't really want to split the PR.

@dain dain requested a review from kokosing September 29, 2020 17:21
@dain dain dismissed kokosing’s stale review September 29, 2020 17:21

Code has been significantly updated since review

Copy link
Member

@kokosing kokosing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just few comments.

@dain dain force-pushed the cleanup-file-access-control branch from db77636 to f9fa302 Compare October 7, 2020 00:22
dain added 20 commits October 6, 2020 17:27
Place check catalog method near other checks
Old camel case names are still supported
Changed file based access control to check for table ownership to create,
rename, or drop tables or views.
Only show tables the user has permissions on
If no catalog rules are defined, allow all catalog access
Table and schema default to allow if there are no rules defined, so replace
Optional empty with an allow allow rule
System access control defaults to allow if no rules are defined for table,
schema, and session property
Catalog file access control is static and not used in combination with other
access control systems, so grant and revoke are denied.
@dain dain force-pushed the cleanup-file-access-control branch from f9fa302 to a4bc95a Compare October 7, 2020 00:27
@dain dain merged commit 9e6e36f into trinodb:master Oct 7, 2020
@dain dain deleted the cleanup-file-access-control branch October 7, 2020 03:48
@dain dain mentioned this pull request Oct 7, 2020
10 tasks
@mosabua
Copy link
Member

mosabua commented Oct 7, 2020

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants