Description
Neptune storage encryption protects graph data, cluster logs, automated backups and snapshots.
Encryption does not replace database permissions or network restrictions. Check the actual encryption state and key of the running cluster.
Potential impact
- Unauthorized acquisition of unencrypted storage or backups can expose graph data and sensitive relationships.
- Organizational encryption-at-rest requirements may not be met.
Remediation
- Explicitly set
spec.forProvider.storageEncryptedtotruefor new clusters and update the base templates in Compositions. - Use the default KMS key or a customer managed key that meets organizational requirements, retaining the necessary key permissions.
- To migrate an unencrypted cluster, specify a KMS key when restoring its snapshot to a new cluster. Verify the data and application connection before switching.
Examples
These are new-cluster excerpts. Configure the required provider settings and networking separately. Also review backup policy: skipFinalSnapshot: true omits the final snapshot on deletion.
Before
yaml
apiVersion: neptune.aws.crossplane.io/v1alpha1
kind: DBCluster
metadata:
name: sample-cluster3
spec:
forProvider:
region: eu-central-1
engine: neptune
enableIAMDatabaseAuthentication: true
skipFinalSnapshot: true
The storage-encryption requirement is not explicit. Check the actual cluster state.
After
yaml
apiVersion: neptune.aws.crossplane.io/v1alpha1
kind: DBCluster
metadata:
name: sample-cluster
spec:
forProvider:
region: eu-central-1
engine: neptune
enableIAMDatabaseAuthentication: true
skipFinalSnapshot: true
storageEncrypted: true
This requests encryption for a new cluster. It does not migrate existing data or switch applications automatically.