forked from etcd-io/etcd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
etcdctl: handle empty key permission correctly
Current `etcdctl role grant-permission` doesn't handle an empty key ("") correctly. Because the range permissions are treated as BytesAffineInterval internally, just specifying the empty key as a beginning of range introduces an invalid permission which doesn't work and betray users' intuition. This commit fix the way of handling empty key as a prefix or from key in permission granting. Fix etcd-io#8494
- Loading branch information
Showing
1 changed file
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters