Project

General

Profile

Actions

Bug #3956

closed

ceph auth add/del entity name parameter check

Added by Alex Moore about 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
cephx
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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

Actions #1

Updated by Sage Weil about 11 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF