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

Adding TLS mount for EFS - [RFE] #1094

Open
TebogoTS opened this issue Jun 22, 2023 · 1 comment
Open

Adding TLS mount for EFS - [RFE] #1094

TebogoTS opened this issue Jun 22, 2023 · 1 comment
Labels
kind/feature A feature request

Comments

@TebogoTS
Copy link

Current situation

When using Flatcar in AWS EKS with AWS EFS by default mount happen with a TLS argument for in-transit encryption, but this does not work.

https://github.com/kubernetes-sigs/aws-efs-csi-driver#encryption-in-transit

Impact

mount failed: exit status 1 Mounting command: mount Mounting arguments: -t efs -o tls fs-xxxxxxx.efs.xx-xxx-x.amazonaws.com :/ /var/lib/kubelet/pods/xxxxxxxx/volumes/kubernetes.io~csi/efs-pv-xxxx/mount

Failed to create self-signed client-side certificate.

Ideal future situation

Adding amazon-efs-utils and stunnel as part of the AMI packages.

Additional information

Currently encryption-in-transit must be disabled for the mount to work.


apiVersion: v1
kind: PersistentVolume
metadata:
name: efs-pv
spec:
capacity:
storage: 5Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
csi:
driver: efs.csi.aws.com
volumeHandle: fs-xxxxxxxx
volumeAttributes:
encryptInTransit: "false"

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: efs-pvc-claim
spec:
accessModes:
- ReadWriteOnce
storageClassName: ""
resources:
requests:
storage: 5Gi

apiVersion: v1
kind: Pod
metadata:
name: efs-app-tls-false
spec:
containers:

  • name: app
    image: centos
    command: ["/bin/sh"]
    args: ["-c", "while true; do echo $(date -u) >> /data/out.txt; sleep 5; done"]
    volumeMounts:
    • name: persistent-storage
      mountPath: /data
      volumes:
  • name: persistent-storage
    persistentVolumeClaim:
    claimName: efs-pvc-claim

@jepio
Copy link
Member

jepio commented Jun 22, 2023

Thanks @TebogoTS.

Adding amazon-efs-utils and stunnel as part of the AMI packages.

Do you have any links that mention these packages need to be present for TLS mount to work?

Would you be able to capture an strace -f of the mount command to see what helpers are spawned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A feature request
Projects
Development

No branches or pull requests

2 participants