Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Efs encryption at rest #39

Merged
merged 38 commits into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
26d4a83
Adding EFS workloads
aliaksei-ivanou Mar 3, 2023
05c07b5
Adding fileSystemId
aliaksei-ivanou Mar 3, 2023
453a4a3
Trying another fileSystemId
aliaksei-ivanou Mar 3, 2023
d2fa221
Using the existing EFS file system
aliaksei-ivanou Mar 3, 2023
d8591d9
Adding accessPointID
aliaksei-ivanou Mar 3, 2023
4d77fb3
Removing access point
aliaksei-ivanou Mar 3, 2023
7b62e83
Removing the redundant comment
aliaksei-ivanou Mar 3, 2023
684bd36
Adding efs-access-point
aliaksei-ivanou Mar 3, 2023
c199891
Fixing the name in EFSAccessPoint
aliaksei-ivanou Mar 3, 2023
c1bdcd1
Trying to use a pre-created access point for EFS
aliaksei-ivanou Mar 3, 2023
9f13678
Adding EFS AP
aliaksei-ivanou Mar 3, 2023
96adfe3
Reoving the AP and the KMS key
aliaksei-ivanou Mar 3, 2023
2bc64e5
Adding EFS AP
aliaksei-ivanou Mar 3, 2023
7901bf5
Changing AP name
aliaksei-ivanou Mar 3, 2023
4fab3b1
Using another provisioning mode
aliaksei-ivanou Mar 3, 2023
b80b9df
Setting provisioning mode explicitly to efs
aliaksei-ivanou Mar 3, 2023
7ed7fb8
Provisioning mode efs is not supported.
aliaksei-ivanou Mar 3, 2023
b8b8f97
Adding clear dependency between StorageClass and
aliaksei-ivanou Mar 3, 2023
7fb9bfa
Updating accessPointId
aliaksei-ivanou Mar 3, 2023
3191bfc
Updating EFS AP name
aliaksei-ivanou Mar 3, 2023
b1667f5
Replacing AP id with alias
aliaksei-ivanou Mar 3, 2023
7a9a366
Trying to isolate the issue
aliaksei-ivanou Mar 3, 2023
bcf0b22
Removing the AP and providing the permissions in
aliaksei-ivanou Mar 3, 2023
5cdb0b7
Adding the customer provided KMS key
aliaksei-ivanou Mar 3, 2023
3c2f729
Fixing the if statement
aliaksei-ivanou Mar 3, 2023
0e8f0db
Adding a pod named with a single container.
aliaksei-ivanou Mar 3, 2023
42d36db
Changing the directoryPerms
aliaksei-ivanou Mar 3, 2023
f0e6608
Updating the pod config
aliaksei-ivanou Mar 3, 2023
c95ff8a
Updating fileSystemId
aliaksei-ivanou Mar 3, 2023
3bf99b7
Updating the workloads
aliaksei-ivanou Mar 6, 2023
9e2bb9b
Adjusting mount file permissions
aliaksei-ivanou Mar 8, 2023
2cc6921
Receiving efsFileSystemId from the blueprint
aliaksei-ivanou Mar 8, 2023
eeb8711
Chenging repo and branch
aliaksei-ivanou Mar 8, 2023
074c2d1
Renaming the KMS key var to ebsKmsKey
aliaksei-ivanou Mar 7, 2023
f2573af
Adding a pod using the PVC
aliaksei-ivanou Mar 22, 2023
24a6a2d
Adding ebsKmsKey
aliaksei-ivanou Mar 22, 2023
efec711
Removing redundant comments
aliaksei-ivanou Mar 22, 2023
8a0a170
Merge branch 'main' of github.com:aliaksei-ivanou/eks-blueprints-work…
aliaksei-ivanou Mar 22, 2023
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
2 changes: 2 additions & 0 deletions security/envs/dev/templates/team-platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ spec:
helm:
values: |
spec:
efsKmsKey: {{ index .Values.spec "efsKmsKey" }}
efsFileSystemId: {{ index .Values.spec "efsFileSystemId" }}
ebsKmsKey: {{ index .Values.spec "ebsKmsKey" }}
syncPolicy:
automated:
Expand Down
29 changes: 29 additions & 0 deletions teams/team-data/dev/templates/efs-ecncrypted-storage-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: efs-encrypted-claim
spec:
accessModes:
- ReadWriteMany
storageClassName: efs-encrypted
resources:
requests:
storage: 10Gi
---
apiVersion: v1
kind: Pod
metadata:
name: efs-encryption-app
spec:
containers:
- name: app
image: centos
command: ["/bin/sh"]
args: ["-c", "while true; do echo $(date -u) >> /example/out.txt; sleep 5; done"]
volumeMounts:
- name: persistent-storage
mountPath: /example
volumes:
- name: persistent-storage
persistentVolumeClaim:
claimName: efs-encrypted-claim
18 changes: 18 additions & 0 deletions teams/team-platform/dev/templates/efs-encrypted-storage-class.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: efs-encrypted
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: efs.csi.aws.com
mountOptions:
- tls
parameters:
fileSystemId: {{ .Values.spec.efsFileSystemId }}
provisioningMode: efs-ap
directoryPerms: "700"
gidRangeStart: "1000" # optional
gidRangeEnd: "2000" # optional
{{ if .Values.spec.efsKmsKey }}
kmsKeyId: {{ .Values.spec.efsKmsKey }}
{{ end }}