Cloudify enables integration with your local Okta system to authenticate users. In this guide, the configuration steps required to enable Okta authentication are described.
To enable Okta integration, the openssl package on Cloudify Manager needs to be of version 1.0.2. If you are running a Cloudify image this is already the case, however if you are installing make sure to update the openssl package prior to the Okta configuration.
Configuring Cloudify in Okta
To configure Okta authentication in Cloudify, first add Cloudify as an application in your okta system. The instructions below refer to okta’s classic UI - other views may differ in configuration parameters.
Adding Cloudify as an Okta Application
- Open the admin dashboard in okta
- From the top menu, choose “Applications”
- Choose “Add Application”
- Select “Create New App”
- In the “Create a New Application” form, choose as sign on method “SAML 2.0”
- Under General Settings configure the application name (Cloudify) and logo
Under SAML Settings, configure the following: General: a. As Single sign on URL: https://cloudify-manager-ip/stage/auth/saml/callback (or http if client side SSL is not used) b. Make sure the box for “Use this for Recipient URL and Destination URL” is marked c. As Audience URI: https://cloudify-manager-ip/stage/auth/saml/callback (or http if client side SSL is not used) d. Attribute statements - add the following: Name - firstname , Value - user.firstName Name - lastname , Value - user.lastName Name - email , Value - user.email Name - username , Value - user.login e. Group Attribute Statements: Add all relevant user groups, or generally use: Name - group , Filter - Regex, Value - .*
f. Under Feedback, define Cloudify as an internal app
In Assignments, assign the new Cloudify app created to the relevant users or groups.
Configuring Okta in Cloudify
To complete the okta authentication configuration, Okta needs to be configured in the Cloudify manager. To do so SSH into the Cloudify manager VM and follow these steps:
Add the okta certificate for Cloudify (can be found under setup instructions of the newly created Cloudify app in Okta) as a pem file named okta_certificate.pem under /etc/cloudify/ssl/
Restart Cloudify rest service using the following command:
sudo systemctl restart cloudify-restservice.service
Configure the Cloudify UI (Stage) to use Okta with the following steps:
a. Open the file /opt/cloudify-stage/conf/app.json for editting
b. Under saml section change the values as follows:
“enabled”: true (enabling saml mode)
“certPath”: “/etc/cloudify/ssl/okta_certificate.pem” (SAML certificate path which is used by the Cloudify Manager and UI)
(redirect url to the application at the Okta identity provider, can be found under setup instructions of the newly created Cloudify app in Okta)
(redirect url to the organization portal)
c. Restart Cloudify Stage service using the following command: sudo systemctl restart cloudify-stage.service
Create new user-groups in Cloudify, matching the user groups on okta (must be exactly the same names) using the following command for each group: cfy user-group create
Assign the user-groups to tenants using the following command: cfy tenants add-user-group