]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/AuthMonitor: Allow * wildcard for filesystem name
authorDouglas Fuller <dfuller@redhat.com>
Wed, 8 Nov 2017 20:44:23 +0000 (15:44 -0500)
committerDouglas Fuller <dfuller@redhat.com>
Mon, 13 Nov 2017 18:18:21 +0000 (13:18 -0500)
commit474982aace88f2d2ef50dc408c41b973895248ea
treee440cd7c4022c6d3585b20b426848239316fbf97
parentcd3cb7d3d1c00818a39635ad66b4201db4f0c44c
mon/AuthMonitor: Allow * wildcard for filesystem name

Extend ceph fs authorize to accept the * wildcard for the filesystem
name. This will grant access to all data pools associated with CephFS.
Therefore:

ceph fs authorize * client.foo /bar rwp

Is equivalent to:

ceph auth get-or-create client.foo mon "allow r" \
                                   mds "allow rwp path=/foo" \
                                   osd "allow rw tag cephfs data=*"

Note that the wildcard must be escaped from the shell in most cases.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
src/mon/AuthMonitor.cc