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

Commits on Jun 4, 2021

  1. etcdserver: don't attempt to grant nil permission to a role

    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>
    dlowe authored and gyuho committed Jun 4, 2021
    Configuration menu
    Copy the full SHA
    e27effa View commit details
    Browse the repository at this point in the history