Enabling the OAuth2 Proxy service
Enable the OAuth2 Proxy service for SSO access to the Dashboard and the Ceph cluster.
Enabling the oauth2-proxy service either with the cephadm CLI commands or by using
a service specification file.
Before you begin
- Ceph Management gateway (
mgmt-gateway) service is enabled and --enable-auth is set to true. For more information, see Enabling the Ceph Management gateway. - You should either have an admin account with Red Hat Single-Sign-On 7.6.0 with OAuth2 protocol running or IBM Security Verify with OAuth2 protocol running. For more information, see Configuring IBM Security Verify as the identity provider using OAuth2 protocol.
About this task
Find the
oauth2-proxy container image by running the ceph config
get
command.ceph config get mgr mgr/cephadm/container_image_oauth2_proxyStorage administrators can specify a custom image by changing the
container_image_oauth2_proxy
cephadm module option. If other daemons were
running, you must redeploy the daemons to use the new
image.ceph config set mgr mgr/cephadm/container_image_oauth2_proxy NEW_OAUTH2_PROXY_IMAGE
ceph orch redeploy oauth2_proxyEnabling the OAuth2 Proxy service with the command-line interface
Procedure
Enabling the OAuth2 Proxy service with a service specification file
Before you begin
oauth2-proxy service will run on.- Your client ID.
- The OIDC issuer URL.
- Client secret.
- The relevant domain addresses to allow.Note: The domain can be the same or different from the oidc_issuer_url.
- A running IBM Storage Ceph cluster.
- (Optional) The host HTTPS address and host port.
- (Optional) Cookie secret.
- (Optional) SSL certificates and certificate keys.
For more information about SSL protocols, ciphers, certificates, and certificate keys, see the Deploying web servers and reverse proxies section in the Red Hat Enterprise Linux documentation.