Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ spec:
{{- if .Values.useFIPS }}
- name: AWS_USE_FIPS_ENDPOINT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current implementation should work because efs-utils checks for FIPS in two ways:

-Through the AWS_USE_FIPS_ENDPOINT environment variable (which is currently set by the Helm chart)
-Through the fips_mode_enabled setting in the config file

https://github.com/aws/efs-utils/blob/master/src/mount_efs/__init__.py#L3474-L3478
The current Helm chart sets AWS_USE_FIPS_ENDPOINT=true when useFIPS is enabled, which should be sufficient

However, this change does add redundancy for both ways

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 . I think the real bug is in Readme. it need --set useFIPS=true instead of --set useFips=true

value: "true"
- name: FIPS_ENABLED
value: "true"
{{- end }}
- name: PORT_RANGE_UPPER_BOUND
value: "{{ .Values.portRangeUpperBound }}"
Expand Down
2 changes: 2 additions & 0 deletions charts/aws-efs-csi-driver/templates/node-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ spec:
{{- if .Values.useFIPS }}
- name: AWS_USE_FIPS_ENDPOINT
value: "true"
- name: FIPS_ENABLED
value: "true"
{{- end }}
- name: PORT_RANGE_UPPER_BOUND
value: "{{ .Values.portRangeUpperBound }}"
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ This procedure requires Helm V3 or later. To install or upgrade Helm, see [Using

To force the Amazon EFS CSI driver to use FIPS for mounting the file system, add the following argument.
```sh
--set useFips=true
--set useFIPS=true
```
**Note**
`hostNetwork: true` (should be added under spec/deployment on kubernetes installations where AWS metadata is not reachable from pod network. To fix the following error `NoCredentialProviders: no valid providers in chain` this parameter should be added.)
Expand Down