AWS FIPS endpoints¶
FedRAMP installations on AWS GovCloud must send AWS API calls (S3, STS, ECR, and others) to AWS FIPS endpoints (for example, s3-fips.us-gov-west-1.amazonaws.com instead of s3.us-gov-west-1.amazonaws.com).
The AWS SDKs used by DataRobot switch every client to the FIPS endpoint when the environment variable AWS_USE_FIPS_ENDPOINT is set to true. The following sections describe where to set the variable. For the other values that run an installation in FIPS 140-3 mode, see FIPS 140-3 Helm values.
Note
Only set AWS_USE_FIPS_ENDPOINT when every AWS service DataRobot calls has a FIPS endpoint in your region. A client fails to connect when no FIPS endpoint exists for its service and region. See the AWS FIPS documentation for additional details.
Configure platform services¶
In Release 11.15 and later, set global.fips.awsUseFipsEndpoint. The chart then sets AWS_USE_FIPS_ENDPOINT to true on the DataRobot service pods:
global:
fips:
awsUseFipsEndpoint: true
In earlier releases, add the variable to global.extraEnvVars:
global:
extraEnvVars:
- name: AWS_USE_FIPS_ENDPOINT
value: "true"
Helm replaces lists instead of merging them. If global.extraEnvVars is already set in your values, add this entry to the existing list.
Configure notebook sessions¶
Notebook session pods are created at runtime and don't receive global.fips.awsUseFipsEndpoint or global.extraEnvVars. Add the variable to the notebook operator values:
nbx-operator:
notebookSession:
extraEnvVars:
- name: AWS_USE_FIPS_ENDPOINT
value: "true"
Configure file storage (S3)¶
When S3_HOST is set, DataRobot connects to that host directly and AWS_USE_FIPS_ENDPOINT has no effect on file storage. To route AWS file storage API calls to FIPS endpoints, set S3_HOST to the S3 FIPS endpoint for your region:
global:
filestore:
type: s3
environment:
S3_HOST: s3-fips.us-gov-west-1.amazonaws.com
S3_REGION: us-gov-west-1
See Object storage config for other S3 settings.
Configure image builds¶
Available in Release 11.15 and later.
The build service creates Image Builder pods at runtime and passes AWS_USE_FIPS_ENDPOINT to them from its own pod. The build service pod receives the variable from global.fips.awsUseFipsEndpoint or from global.extraEnvVars, so image builds need no separate value when either is set as described in Configure platform services.
The variable changes only AWS API calls, such as the request for an Amazon Elastic Container Registry (ECR) authorization token. Image Builder pushes and pulls images through the registry host set in IMAGE_BUILDER_CUSTOM_MODELS_REGISTRY_HOST. To send them to the ECR FIPS endpoint, set the host to the ecr-fips hostname of your registry:
core:
config_env_vars:
IMAGE_BUILDER_CUSTOM_MODELS_REGISTRY_HOST: <awsAccountId>.dkr.ecr-fips.us-gov-west-1.amazonaws.com
Replace <awsAccountId> with the ID of the AWS account that owns the registry, and us-gov-west-1 with the region of the registry.
Kubernetes pulls an image from the hostname in its image reference. Custom models, custom applications, and other workloads deployed after the change are pulled through the ecr-fips hostname. Workloads that are already running keep the hostname they were deployed with until you redeploy them.
Both hostnames address the same registry, so images built before the change stay available and don't need a rebuild. Update any Dockerfile or image URI that names the registry by its dkr.ecr hostname.
See Custom models configuration for the other registry settings, and Image build service for the registry type, the storage type, and the FIPS settings of the build service.
Limitations¶
- Custom model, custom application, and other workloads that run on long-running services (LRS) don't receive
AWS_USE_FIPS_ENDPOINT. - The build service doesn't support
AWS_USE_FIPS_ENDPOINTtogether with its ownS3_HOSTsetting inbuild-service.buildService.envApp, including anS3_HOSTthat names an S3 FIPS endpoint. The AWS SDK refuses to combine the variable with a custom endpoint, and builds fail. RemoveS3_HOSTfrom the build service values. The build service then uses the S3 FIPS endpoint for its region. The build service doesn't readglobal.filestore.environment.S3_HOST, so the setting in Configure file storage (S3) doesn't cause this. Theminiostorage type isn't affected. - Image builds fail when
AWS_USE_FIPS_ENDPOINTis set and the ECR registry is in a region with noecr-fipsendpoint, because there is no endpoint to request the authorization token from. - Image Builder has registry credentials only for the host in
IMAGE_BUILDER_CUSTOM_MODELS_REGISTRY_HOST. A Dockerfile whoseFROMnames the same registry by its other hostname (dkr.ecrinstead ofdkr.ecr-fips, or the reverse) fails with a401 Unauthorizederror. Use the hostname set inIMAGE_BUILDER_CUSTOM_MODELS_REGISTRY_HOSTinFROM. - Amazon ECR Public has no FIPS endpoint, so Image Builder pulls base images from
public.ecr.awsthrough the standard endpoint. On a FedRAMP installation, mirror those base images into your private registry and reference them by itsecr-fipshostname.