Configuring SAML authentication on managed clusters

To configure Hue for SAML authentication on managed clusters, you must add the SAML authentication properties to the Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini in Cloudera Manager.

These instructions assume that you have an Identity Provider set up and running. You can use any identity provider of your choice. For example, Okta, Ping Identity, and OpenAM.

  1. Log on to Cloudera Manager and go to Hue > Configuration.
  2. In the search text box, enter hue_safety_valve.ini to locate the Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini.
  3. Enter the SAML parameters into the Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini text box. For example:
    ## Example Settings using Open AM:
      help=_t("key_file_password password of the private key"),
      default=None) ## If using encrypted private key
    If you are using an encrypted private key file, then you must specify the password in the key_file_password property. Or you can use an unencrypted private key file.
    To create an unencrypted private key file from an encrypted key:
    1. SSH into a terminal as a root user.
    2. Change to the directory where you have stored the ssl certificate key.
    3. Run the following command:
      openssl rsa -in ssl_certificate.key -out ssl_certificate-nocrypt.key
    4. When prompted, enter the password that you use to access the ssl_certificate.key file.

      The output file (ssl_certificate-nocrypt.key) is an unencrypted PEM-formatted key.

  4. Click Save Changes, then select, Actions > Restart Hue.