mgr/dashboard: fix security scopes of some NFS-Ganesha endpoints
Apply NFS_GANESHA scope to these endpoints:
- `/api/nfs-ganesha/daemon`.
- `/ui-api/nfs-ganesha/*`.
Otherwise, any valid users can access them.
Fixes: https://tracker.ceph.com/issues/47356
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
(cherry picked from commit
ed123e493cf43e71cb608a31ac8f2a9136f6febf)
Conflicts:
src/pybind/mgr/dashboard/controllers/nfsganesha.py
- ReadPermissions between Endpoint and def lsdir;
def lsdir pylint addition