-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
ACL read-only user permissions reject queries using query functions and variables #5687
Comments
Identifying different related issues below: Set-up for repro:Schema:
Data:
Login via non-groot user which has Queries and observations:Query 1
Result
Observations: The result is as expected. But Alpha has following erroneous log message: Query 2
Result
Observations: The result is as expected since Query 3
Result
Observations: Alpha log message Query 4
Without any query, alpha periodically logs:
This leads to confusion as reported. |
I have a PR: #5733 that fixes |
The second PR: #5945 fixes |
What version of Dgraph are you using?
v20.03.3
Have you tried reproducing the issue with the latest release?
Yes
What is the hardware spec (RAM, OS)?
Ubuntu Linux (Docker)
Steps to reproduce the issue (command/config used to run Dgraph).
that has the
name` predicate.type
functionQuery: Run a query using the
type()
function:Alpha logs show access denied for predicates
""
:expand
functionQuery: Run a query using
expand(_all_)
:Alpha logs show access denied for predicates
",expand"
:val
function and variablesQuery: Run a query using
val(v)
and see an access denied log in Alpha:Expected response:
Actual response (q2 doesn't show up):
Alpha logs show access denied for predicates
"name,v,val"
:uid
functionQuery: Run a query using the
uid()
function:Query returned expected results:
But, Alpha logs show access denied for predicates
""
.Expected behaviour and actual result.
These queries from a read-only user should return back the expected data.
It looks like ACL rules are looking at built-in functions and variable names as part of rule set for ACLs.
The text was updated successfully, but these errors were encountered: