Bug #3956
closedceph auth add/del entity name parameter check
0%
Description
It's currently (as of v0.56.1) possible to run "ceph auth add" without any further parameters. This results in the addition of an entry in "ceph auth list" with an entity name of "unknown.". However it doesn't seem possible to subsequently remove that entry via any incantation of "ceph auth del" that I have tried. I would expect to be able to remove such an entry somehow. And perhaps it shouldn't be created in the first place. Here's a demonstration:
chrysler ~ # ceph auth add
added key for
chrysler ~ # ceph auth list
installed auth entries:
unknown.
key: AQA8cQhREFCsORAAd8kp5pPFRK82ooklGosbTA==
<...snip...>
chrysler ~ # ceph auth del unknown.
bad entity name unknown.
chrysler ~ # ceph auth del 'unknown.'
bad entity name unknown.
chrysler ~ # ceph auth del
error: usage:
auth (add | del | get-or-create | get-or-create-key | caps) <name> <--in-file=filename>
auth (export | get | get-key | print-key) <name>
auth list
chrysler ~ # ceph auth del ''
bad entity name
Updated by Sage Weil over 11 years ago
- Status changed from New to Resolved