]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: ACL: Show which permissions are allowed for unauthenticated connections
authorPeter Krempa <pkrempa@redhat.com>
Fri, 17 Feb 2023 15:31:20 +0000 (16:31 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 20 Feb 2023 08:22:51 +0000 (09:22 +0100)
Certain APIs are allowed also without authentication but the ACL page
didn't outline which. Generate a new column with the information.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
docs/acl.html.in
scripts/genaclperms.py

index 3d0f651864e8c3efad2c8d677efeda5d94f225dd..268d3aebd3c20e84a068116b0d48a535113a1222 100644 (file)
@@ -20,7 +20,8 @@
       state, where the only API operations allowed are those required
       to complete authentication. After successful authentication, a
       connection either has full, unrestricted access to all libvirt
-      API calls, or is locked down to only "read only" operations,
+      API calls, or is locked down to only "read only" (see 'Anonymous'
+      in the table below) operations,
       according to what socket a client connection originated on.
     </p>
 
index e228b3ef60955d98ee286e42a6eb90b6f214f212..43616dad04c1b2beba7439aa7110a4251c518f03 100755 (executable)
@@ -96,6 +96,7 @@ for obj in sorted(perms.keys()):
     print('        <tr>')
     print('          <th>Permission</th>')
     print('          <th>Description</th>')
+    print('          <th>Anonymous</th>')
     print('        </tr>')
     print('      </thead>')
     print('      <tbody>')
@@ -103,6 +104,11 @@ for obj in sorted(perms.keys()):
     for perm in sorted(perms[obj].keys()):
         description = perms[obj][perm]["desc"]
 
+        if perms[obj][perm]["anonymous"]:
+            anonymous = 'yes'
+        else:
+            anonymous = ''
+
         if description is None:
             raise Exception("missing description for %s.%s" % (obj, perm))
 
@@ -112,6 +118,7 @@ for obj in sorted(perms.keys()):
         print('        <tr>')
         print('          <td><a id="%s">%s</a></td>' % (plink, perm))
         print('          <td>%s</td>' % description)
+        print('          <td>%s</td>' % anonymous)
         print('        </tr>')
 
     print('      </tbody>')