From: Sage Weil Date: Thu, 8 Jul 2021 20:19:42 +0000 (-0400) Subject: doc/mgr/dashboard: simplify dashboard+rgw config docs X-Git-Tag: v16.2.6~25^2~20 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dfbd5f23a0fb11ee247328bb1f509e44903062d1;p=ceph.git doc/mgr/dashboard: simplify dashboard+rgw config docs Signed-off-by: Sage Weil (cherry picked from commit 599116a0680296776445d614c55b63f145a700b6) --- diff --git a/doc/mgr/dashboard.rst b/doc/mgr/dashboard.rst index 0615e3f3cf9c..54a139a51146 100644 --- a/doc/mgr/dashboard.rst +++ b/doc/mgr/dashboard.rst @@ -376,51 +376,14 @@ password. Enabling the Object Gateway Management Frontend ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -To use the Object Gateway management functionality of the dashboard, you will -need to provide the login credentials of a user with the ``system`` flag -enabled. If you do not have a ``system`` user already, you must create one:: +When RGW is deployed with cephadm, the RGW credentials used by the +dashboard will be automatically created. You can also manually force the +credentials to be created with:: - $ radosgw-admin user create --uid= --display-name= \ - --system + $ ceph dashboard connect-rgw -Take note of the keys ``access_key`` and ``secret_key`` in the output. - -To obtain the credentials of an existing user via `radosgw-admin`:: - - $ radosgw-admin user info --uid= - -In case of having several Object Gateways, you will need the required users' credentials -to connect to each Object Gateway. -Finally, provide these credentials to the dashboard:: - - $ echo -n "{'': '', '': '', ...}" > - $ echo -n "{'': '', '': '', ...}" > - $ ceph dashboard set-rgw-api-access-key -i - $ ceph dashboard set-rgw-api-secret-key -i - -.. note:: - - Legacy way of providing credentials (connect to single Object Gateway):: - - $ echo -n "" > - $ echo -n "" > - -In a simple configuration with a single RGW endpoint, this is all you -have to do to get the Object Gateway management functionality working. The -dashboard will try to automatically determine the host and port -from the Ceph Manager's service map. - -In case of having several Object Gateways, you might want to set -the default one by setting its host and port manually:: - - $ ceph dashboard set-rgw-api-host - $ ceph dashboard set-rgw-api-port - -In addition to the settings mentioned so far, the following settings do also -exist and you may find yourself in the situation that you have to use them:: - - $ ceph dashboard set-rgw-api-scheme # http or https - $ ceph dashboard set-rgw-api-admin-resource +This will create an RGW user with uid ``dashboard`` for each realm in +the system. If you are using a self-signed certificate in your Object Gateway setup, you should disable certificate verification in the dashboard to avoid refused