Okta

Before You Start

  • You must have the following enabled on your cluster:
  • You must have an Okta account
  • You should know the value of your proxy.host setting in your Helm values.yaml file

How to Enable Okta as an IdP

1. Create an App on Okta

  1. Log in to Okta.
  2. Navigate to Applications > Applications.
  3. Select Create App Integration.
  4. Choose the OIDC - OpenID Connect sign-in method.
  5. Choose the Web Application application type.
  6. Click Next.
  7. Name the application, such as HPE Machine Learning Data Management.
  8. Navigate to General Settings > Grant Type and check the following:
    • Authorization Code
    • Refresh Token
  9. Navigate to Sign-in Redirect URIs and input the following:
    https://<your.proxy.host.value>/dex/callback
  10. Navigate to Assignments and select your preferred Controlled Access policy.
  11. Click Save.

2. Define Helm Config

The following steps add the OIDC section to your Helm chart. When an upstream IdP is successfully added to the list, HPE Machine Learning Data Management’s default MockIdP is disabled automatically. You can add multiple IdPs to upstreamIDPs.

  1. Navigate to your values.yamls file or obtain your current Helm values.yaml overrides:

    helm get values pachyderm > values.yaml
  2. Add the following section:

  3. Update the following attributes:

    Field Description
    issuer The Okta App’s domain URL, found under Sign On > OpenID Connect ID Token; must have https://.
    clientID The Okta App’s client ID, found under General > Client Credentials.
    clientSecret The Okta App’s client secret, found under General > Client Secrets.
    redirectURI A combination of your proxy host value and /dex/callback. For example, https://console.pachdemo.com/dex/callback.
  4. Save your changes and upgrade your cluster:

    helm upgrade pachyderm pachyderm/pachyderm -f values.yaml
tip icon Tip

3. Login

The users registered with your IdP are now ready to Log in to HPE Machine Learning Data Management

Troubleshooting

PachD CrashLoopBackOff

If you encounter a CrashLoopBackOff error after running the kubectl get pods command, it’s likely that one of the following needs to be fixed:

  • your issuer value is incorrect (sometimes it needs a trailing slash /, it should match exactly what you see in Okta).
  • you have an unexpected field such as version in the config section oidc.updstreamIDPs entry.

Example Error in PachD Pod logs

You can obtain your pod logs by running: kubectl logs <pachd-pod-name> > logs.txt

create connector with ID: "okta": unable to open connector: failed to get provider: oidc: issuer did not match the issuer returned by provider, expected "https://trial-1839456.okta.com/" got "https://trial-1839456.okta.com"

You may need to download the Okta Verify app on your mobile device and scan the QR code through the app log in.