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

[3.4] backport 15294 #15621

Merged
merged 2 commits into from
Apr 5, 2023
Merged

[3.4] backport 15294 #15621

merged 2 commits into from
Apr 5, 2023

Commits on Apr 4, 2023

  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>
    Signed-off-by: J. David Lowe <j.david.lowe@gmail.com>
    dlowe authored and mitake committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    cee78ac View commit details
    Browse the repository at this point in the history
  2. server/auth: disallow creating empty permission ranges

    Signed-off-by: Hitoshi Mitake <h.mitake@gmail.com>
    Co-authored-by: Benjamin Wang <wachao@vmware.com>
    mitake and ahrtr committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    442de31 View commit details
    Browse the repository at this point in the history