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

[backport 3.5] etcdserver: don't attempt to grant nil permission to a role #13088

Merged
merged 1 commit into from
Jun 4, 2021

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Jun 4, 2021

Backport #13086.

Prevent etcd from crashing when given a bad grant payload, e.g.:

$ curl -d '{"name": "foo"}' http://localhost:2379/v3/auth/role/add
{"header":{"cluster_id":"14841639068965178418", ...
$ curl -d '{"name": "foo"}' http://localhost:2379/v3/auth/role/grant
curl: (52) Empty reply from server

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
@gyuho gyuho merged commit e721e4e into etcd-io:release-3.5 Jun 4, 2021
@gyuho gyuho deleted the c branch June 4, 2021 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants