]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/rgw: document Admin and System Users 62871/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 17 Apr 2025 21:52:27 +0000 (17:52 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 18 Apr 2025 15:29:56 +0000 (11:29 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
doc/radosgw/admin.rst

index 483269b38339bf5478badd8f59f894627f5828e6..002702c7f21df52283bb675da1ae443e798065d2 100644 (file)
@@ -397,8 +397,41 @@ following form:
 .. prompt:: bash
 
    radosgw-admin caps rm --uid=johndoe --caps={caps}
-  
 
+Admin and System Users
+----------------------
+
+Users with the ``--admin`` or ``--system`` flag have global read and write
+permissions. These permissions apply to all APIs including S3 and Swift,
+unlike Admin Capabilities, and cannot be denied by IAM policy.
+
+The ``--system`` flag should only be used as documented in `Multisite Configuration`_.
+
+The ``--admin`` flag can be useful for troubleshooting and recovery. For
+example, if a user accidentally removes their permissions to a bucket or
+object, the admin user's credentials can be used to issue the S3/Swift API
+requests necessary to restore them.
+
+.. warning:: When not in use, consider deleting the admin user or disabling
+   its access keys. Do not give admin permissions to untrusted users.
+
+To create an admin user:
+
+.. prompt:: bash
+
+   radosgw-admin user create --uid={username} --display-name="{display-name}" --admin
+
+To add the admin flag to an existing user:
+
+.. prompt:: bash
+
+   radosgw-admin user modify --uid={username} --admin
+
+To remove the admin flag from an existing user:
+
+.. prompt:: bash
+
+   radosgw-admin user modify --uid={username} --admin=0
 
 Quota Management
 ================
@@ -903,3 +936,4 @@ example commands:
 .. _Ceph Object Gateway Config Reference: ../config-ref/
 .. _Accounts: ../account/
 .. _Admin Ops API: ../adminops/
+.. _Multisite Configuration: ../multisite/