]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephfs: add auth caps based on fs names
authorDouglas Fuller <dfuller@redhat.com>
Thu, 7 Mar 2019 15:17:23 +0000 (10:17 -0500)
committerRishabh Dave <ridave@redhat.com>
Thu, 10 Sep 2020 11:40:51 +0000 (17:10 +0530)
commit91d5715be6996629fb912a7dd1e52b754dd6e7fd
tree15f3a14cf96707c8c583e3a0421e3fcdc4c4b056
parent51af2346fdfd3f87f55bd75b161658609e88fd6b
cephfs: add auth caps based on fs names

Add new auth caps to restrict access to clients based on fsnames. To
specify this, for example:

mds 'allow rw fsname=cephfs1'

This will restrict client access to fs name "cephfs1" only. Messages to
active MDS assigned to any other FSMap will be dropped. Standby MDS not
associated with an FSMap will accept messages from clients. To allow
multiple file systems, create MDS cap as follows -

mds 'allow rw fsname=cephfs1, allow rw fsname=cephfs2'

Fixes: http://tracker.ceph.com/issues/15070
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
Signed-off-by: Rishabh Dave <ridave@redhat.com>
doc/cephfs/client-auth.rst
src/mds/MDSAuthCaps.cc
src/mds/MDSAuthCaps.h
src/mds/Server.cc
src/mds/SessionMap.h