From: John Spray Date: Thu, 2 Aug 2018 10:42:50 +0000 (+0100) Subject: mgr: tweaks to command permissions X-Git-Tag: v14.0.1~664^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7602f256c47fd9782e86ba21e6ef2edc8925b87e;p=ceph.git mgr: tweaks to command permissions Upgrade all selftest ops to rw, downgrade restful cert list to r. Signed-off-by: John Spray --- diff --git a/src/pybind/mgr/restful/module.py b/src/pybind/mgr/restful/module.py index 2d6b4979584b..28313a309b5a 100644 --- a/src/pybind/mgr/restful/module.py +++ b/src/pybind/mgr/restful/module.py @@ -219,7 +219,7 @@ class Module(MgrModule): { "cmd": "restful list-keys", "desc": "List all API keys", - "perm": "rw" + "perm": "r" }, { "cmd": "restful create-self-signed-cert", diff --git a/src/pybind/mgr/selftest/module.py b/src/pybind/mgr/selftest/module.py index 1b519a368d9d..d9815eb04756 100644 --- a/src/pybind/mgr/selftest/module.py +++ b/src/pybind/mgr/selftest/module.py @@ -63,12 +63,12 @@ class Module(MgrModule): { "cmd": "mgr self-test remote", "desc": "Test inter-module calls", - "perm": "r" + "perm": "rw" }, { "cmd": "mgr self-test module name=module,type=CephString", "desc": "Run another module's self_test() method", - "perm": "r" + "perm": "rw" }, ]