]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: tweaks to command permissions 23387/head
authorJohn Spray <john.spray@redhat.com>
Thu, 2 Aug 2018 10:42:50 +0000 (11:42 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 2 Aug 2018 10:42:50 +0000 (11:42 +0100)
Upgrade all selftest ops to rw, downgrade restful
cert list to r.

Signed-off-by: John Spray <john.spray@redhat.com>
src/pybind/mgr/restful/module.py
src/pybind/mgr/selftest/module.py

index 2d6b4979584b04e56caf292ee73dcd9bea112998..28313a309b5a0dae2cbc62218d560800be243ab3 100644 (file)
@@ -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",
index 1b519a368d9d82d77ddaf36b7a5d616bcf75884a..d9815eb04756ff2194c4fe5520ca8bd401f4cbcd 100644 (file)
@@ -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"
             },
             ]