-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
auth, e2e: the root role should be granted access to every key #6356
Conversation
We need to fix CI. Some of the tests are failing. The change looks good. |
@xiang90 fixed the CI failure (it was caused by the semantics of the root role), PTAL. |
@@ -666,6 +666,10 @@ func (as *authStore) isOpPermitted(userName string, revision uint64, key, rangeE | |||
return ErrPermissionDenied | |||
} | |||
|
|||
if hasRootRole(user) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a comment here: root role should have permission on all ranges.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
LGTM |
This commit changes the semantics of the root role. The role should be able to access to every key. Partially fixes etcd-io#6355
@gyuho Have we backport this yet? |
@xiang90 It's not backported yet. Should we include this in the next patch release? |
@gyuho yes. we should. |
This commit changes the semantics of the root role. The role should be
able to access to every key.
Partially fixes #6355
/cc @glycerine @soyking @xiang90