Auth server¶
The auth server is built with the Go FIPS 140-3 cryptographic module. In FIPS mode, the auth server checks the module's integrity and runs the FIPS 140-3 power-on self-tests at startup, before it serves any requests. If a self-test fails, the container exits with a non-zero code instead of starting.
FIPS mode applies to the auth server container, its database migration init container, and the cleanup CronJob. It is available in Release 11.14 and later.
Whether FIPS mode is on depends on your DataRobot version:
- Release 11.15 and later: The auth server follows the installation-wide
global.fips.enabledswitch. When the installation runs in FIPS mode, so does the auth server, and you don't set anything for the auth server itself.auth-token-customization.hydra.fips.enabled, if you set it, overrides the installation-wide switch for the auth server only. - Release 11.14: FIPS mode is off by default, even when the rest of the installation runs in FIPS mode. Turn it on with
auth-token-customization.hydra.fips.enabled.
For the other values that run an installation in FIPS 140-3 mode, see FIPS 140-3 Helm values.
Prerequisites¶
In FIPS mode, the auth-server-system-secrets Secret needs two things it doesn't need otherwise:
- A third key,
secretsPagination. - A
secretsCookiewhose active entry differs from the active entry ofsecretsSystem. The active entry is the first one in each key's list. If the DataRobot chart created the Secret before Release 11.14 and the keys have never been rotated, both keys have the same value, so the Secret doesn't meet this requirement.
Whether you have to change the Secret yourself depends on where it comes from.
| Secret source | Action |
|---|---|
| Created by the DataRobot Helm chart (the default) | None. On the first install or upgrade in FIPS mode, the chart adds secretsPagination and, if secretsCookie shares its active entry with secretsSystem, replaces secretsCookie with a new random key. It keeps both on later upgrades. On ArgoCD and other helm template installs, the auth server's hydra-keys init container does this the first time the pod starts. Replacing secretsCookie signs out any auth server browser sessions once. secretsSystem is never replaced. |
Keys set in your values file:
|
Also set auth-token-customization.hydra.secret.secretsPagination to a long random value, and make sure secretsCookie differs from secretsSystem. If they match, the render fails. See ArgoCD. |
| External Secrets (ESO or VSO) | Add a secretsPagination property to the auth-server-system-secrets entry in your secret store, make sure secretsCookie differs from secretsSystem, and wait for the change to sync into the cluster. Then set auth-token-customization.hydra.fips.enabled explicitly, as described in Turn on FIPS mode. See Auth server system secrets. |
| A Secret you create yourself | Add the secretsPagination key to the Secret as shown below, make sure secretsCookie differs from secretsSystem, and set auth-token-customization.hydra.fips.enabled explicitly, as described in Turn on FIPS mode. |
Update the Secret before you enable FIPS mode
If the Secret has no secretsPagination key, the auth server pod cannot start. It stays in CreateContainerConfigError, and sign-in to DataRobot fails until the key is added. If secretsCookie and secretsSystem share their active entry, the auth server exits at startup and the pod restarts until they differ.
To add the key to a Secret you manage yourself:
kubectl -n ${NAMESPACE} patch secret auth-server-system-secrets \
--type=merge \
-p "{\"data\":{\"secretsPagination\":\"$(openssl rand -hex 22 | tr -d '\n' | base64)\"}}"
secretsPagination only protects the tokens the auth server uses to page through long lists. Unlike secretsSystem, it does not protect stored data, so you can generate it at any time.
Turn on FIPS mode¶
In Release 11.15 and later, the auth server runs in FIPS mode whenever global.fips.enabled is true, provided the chart creates the auth-server-system-secrets Secret (the default).
If the Secret comes from External Secrets or you create it yourself, the chart can't add the keys FIPS mode needs. With global.fips.enabled: true, the render fails until you set auth-token-customization.hydra.fips.enabled explicitly:
true, after you update the Secret as described in Prerequisites.false, to keep the auth server out of FIPS mode.
In Release 11.14, or to turn on FIPS mode for the auth server alone, add the following to your values file:
auth-token-customization:
hydra:
fips:
enabled: true
Then run helm upgrade (or sync the ArgoCD Application).
auth-token-customization.hydra.fips.mode is optional and controls how much the self-tests log:
debug(default): Runs in FIPS mode and logs one line for each self-test that passes. Use this mode if you need a record that the self-tests ran at startup, for example for an audit."on": Runs in FIPS mode without logging each passing self-test. Quote the value, because otherwise YAML readsonastrue.
To turn off the self-test log lines, add mode: "on" under fips:
auth-token-customization:
hydra:
fips:
enabled: true
mode: "on"
Check that self-tests ran¶
With the default debug mode, the auth server logs the self-test results each time it starts. The following commands find the auth server Deployment with jq and print those lines:
HYDRA=$(kubectl -n ${NAMESPACE} get deployment -o json \
| jq -r '.items[] | select(any(.spec.template.spec.containers[]; .name == "hydra")) | .metadata.name')
kubectl -n ${NAMESPACE} logs deployment/"$HYDRA" -c hydra | grep -E 'fips140|FIPS 140-3'
Example output:
FIPS 140-3 self-test passed: cSHAKE128
FIPS 140-3 self-test passed: SHA2-256
FIPS 140-3 self-test passed: SHA2-512
FIPS 140-3 self-test passed: HMAC-SHA2-256
fips140: verified code+data
FIPS 140-3 self-test passed: AES-CBC
...
The exact list of self-tests depends on the auth server version. fips140: verified code+data confirms the module integrity check.
If a self-test fails, the container log shows fatal error: FIPS 140-3 self-test failed: <self-test name>, the container exits with code 2, and Kubernetes restarts it. The pod shows CrashLoopBackOff until the cause is fixed. Contact DataRobot Support if this happens.
If the pod is in CreateContainerConfigError instead, the Secret has no secretsPagination key; see Prerequisites.