Description
An EFS file system’s encryption state is set at creation. It protects shared files and metadata on a FileSystem. File permissions and mount access still determine who can read them.
Potential impact
Exposure of unencrypted storage can disclose documents, uploads or application data shared by several workloads. It can also leave encryption requirements unmet.
Remediation
Set spec.forProvider.encrypted to true in new resources and in the Compositions or templates that create them. Check the KMS key and permissions. For an existing unencrypted file system, preserve the source and backups, migrate the data, and test file access before switching mounts and applications. Restrict network access to mount targets and use encryption in transit.
Examples
To provision these efs.aws.crossplane.io/v1alpha1 resources, supply the example ProviderConfig. To mount the resulting file system, clients also need a mount target and network access.
Before
apiVersion: efs.aws.crossplane.io/v1alpha1
kind: FileSystem
metadata:
name: example3
spec:
forProvider:
region: us-east-1
encrypted: false
providerConfigRef:
name: example
example3 requests an unencrypted file system in us-east-1.
After
apiVersion: efs.aws.crossplane.io/v1alpha1
kind: FileSystem
metadata:
name: example
spec:
forProvider:
region: us-east-1
encrypted: true
providerConfigRef:
name: example
example requests a separate encrypted file system. Verify its encryption and migrate any data you want to keep.