SAML Auth

SAML support for Nx Cloud is an addon for Nx Enterprise contracts and requires an unlock key. Please get in touch if you are interested.

Jump To

Azure Active Directory Set-up

  1. Create a new enterprise app

    Step 1

    Step 2

  2. Choose “Create your own”:

    Step 3

  3. Give it a name

    Step 4

  4. Assign your users and/or groups to it:

    Step 5

  5. Then set-up SSO

    Step 6

  6. And choose SAML:

    Step 7

  7. Add these configuration options

    1. Configure the Identifier exactly as nx-private-cloud
    2. For the Reply URL, it should point to your Private Cloud instance URL. Make sure it ends with /auth-callback

    Step 8

  8. Scroll down and manage claims:

    Step 9

  9. The first row should be the email claim, click to Edit it:

    Step 10

  10. Configure it as per below

    1. “Namespace” needs to be blank
    2. “Name:” needs to be “email”
    3. See screenshot below. This is an important step, because Nx Cloud will expect the “email” property on each profile that logs in.

    Step 11

  11. Download the certificate in Base64:

    Step 12

  12. Extract the downloaded certificate value as a one-line string:

    1. awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' azure_cert_file.cer
    2. We’ll use this in a bit to initialize an environment variable
  13. Copy the Login URL:

    Step 13

  14. Then add these two env vars to your Nx Cloud cluster secrets (see Helm config below):

    1. SAML_CERT=<your-cert-string-from-above>
    2. SAML_ENTRY_POINT=<your-login-url-from-above>

Okta Set-up

  1. Create a new Okta App Integration:

    Okta 1

    Okta 2

  2. Give it a name:

    Okta 3

  3. On the Next page, configure it as below:

    1. The Single Sign On URL needs to point to your Nx Cloud instance URL and ends with /auth/saml/callback
    2. The Audience should be nx-private-cloud

    Okta 4

  4. Scroll down to attribute statements and configure them as per below:

    Okta 5

  5. Click “Next”, and select the first option on the next screen.

  6. Go to the assignments tab and assign the users that can login to the Nx Cloud WebApp:

    1. Note: This just gives them permission to use the Nx Cloud web app with their own workspace. Users will still need to be invited manually through the web app to your main workspace.

    Okta 6

  7. Then in the Sign-On tab scroll down:

    Okta 7

  8. Scroll down and from the list of certificates, download the one with the “Active” status:

    Okta 8

  9. Extract the downloaded certificate value as a one-line string:

    1. awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' okta.cert
    2. We will use this in a bit to initialize and environment variable
  10. Then view the ldP metadata:

    Okta 9

  11. Then find the row similar to the below, and copy the highlighted URL (see screenshot as well):

    1. 1<md:SingleSignOnService 2 Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" 3 Location="https://trial-xxxxx.okta.com/app/trial-xxxxx_nxcloudtest_1/xxxxxxxxx/sso/saml" 4/> 5

    Okta 10

  12. Then add these two env vars to your secrets (see Helm config below):

    1. SAML_CERT=<your-cert-string-from-above>
    2. SAML_ENTRY_POINT=<your-login-url-from-above>

Helm config

If you are using Helm to deploy Nx Cloud you will need to configure the below two values, as well as make the SAML_CERT and SAML_ENTRY_POINT env vars as secrets:

1# helm-values.yml 2addonUnlockKey: '<your-unlock-key>' 3 4saml: 5 enabled: true 6 7# secrets.yml 8apiVersion: v1 9kind: Secret 10metadata: 11 name: nxcloudsecret 12type: Opaque 13stringData: 14 SAML_CERT: '-----BEGIN CERTIFICATE-----\nblablablabla\n-----END CERTIFICATE-----\n' 15 SAML_ENTRY_POINT: 'https://some-oktaurl.com/sso/saml' 16