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

Grant mismatch between worker and server #1154

Open
ozansz opened this issue Feb 5, 2024 · 3 comments
Open

Grant mismatch between worker and server #1154

ozansz opened this issue Feb 5, 2024 · 3 comments
Labels
question Further information is requested

Comments

@ozansz
Copy link

ozansz commented Feb 5, 2024

Bug Report

Briefly describe the bug

We have observed that when we run a query inside a virtual warehouse worker directly using a user created in the server, the VW worker sometimes recognizes the user grants but sometimes not. There is no grant issue when we run the same query in the server, but it fails nondeterministically (as far as we understood) inside the virtual warehouse worker.

The result you expected

We expected when the same query is run in both server and virtual warehouse worker directly, both to recognize the grants given to the specific user, as both worker and server should use FDB for user grants.

How to Reproduce

Run a query which requires explicit grants which are already given to a specific user, in both VW worker and server. Or, query the grants of that specific user:

  1. Create a user with name support and grant for example a role named read_all

  2. Inside VW:

show grants for support

GRANT NONE TO support
  1. Inside server:
show grants for support

GRANT read_all TO support
  1. After some trials in VW, we also see the same correct result as in server:
show grants for support

GRANT read_all TO support

Version

cc4e467

@ozansz ozansz added the bug Something isn't working label Feb 5, 2024
@nudles
Copy link
Collaborator

nudles commented Feb 6, 2024

@ozansz thanks for reporting the issue.
After step 4, does the VW worker always return the correct results?
Does it return Grant NONE TO support again?

@ozansz
Copy link
Author

ozansz commented Feb 9, 2024

@nudles After step 4, the VW worker always returns the correct results, yes. Might it be because of some caching mechanism?

@nudles
Copy link
Collaborator

nudles commented Feb 19, 2024

@ozansz , currently we do not support the auto sync of the RBAC information to workers.
RBAC is auto synced among servers only.
Hope it clarifies.

@kevinthfang kevinthfang added question Further information is requested and removed bug Something isn't working labels Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants