Run Commands


Learn how to authenticate with 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 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 Pachyderm.
  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:
  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, Pachyderm’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:
  1. Update the following attributes:
issuerThe Okta App’s domain URL, found under Sign On > OpenID Connect ID Token; must have https://.
clientIDThe Okta App’s client ID, found under General > Client Credentials.
clientSecretThe Okta App’s client secret, found under General > Client Secrets.
redirectURIA combination of your proxy host value and /dex/callback. For example,
  1. Save your changes and upgrade your cluster:
    helm upgrade pachyderm pachyderm/pachyderm -f values.yaml

Alternatively, you can create a secret containing your dex connectors (Key: upstream-idps) and reference its name in the field oidc.upstreamIDPsSecretName.

3. Login #

The users registered with your IdP are now ready to Log in to Pachyderm

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 "" got ""

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