Skip to content

Conversation

@universam1
Copy link

Issue #, if available:

kubernetes-sigs/aws-efs-csi-driver#683
kubernetes-sigs/aws-efs-csi-driver#569

Description of changes:

The privateKey.pem can become an empty file due to several reasons, but this case is falsely detected as an existing valid key.
Instead of just assuming an existing file means a valid key, at least there should be a check if the file is not empty.

The `privateKey.pem` can become an empty file due to several reasons, but this case is falsely detected as an existing valid key.
Instead of just assuming an existing file means a valid key, at least there should be a check if the file is not empty.

There are several issues filed that cover this situation:

kubernetes-sigs/aws-efs-csi-driver#683

kubernetes-sigs/aws-efs-csi-driver#569
Signed-off-by: Samuel Lang <gh@lang-sam.de>
@dhohengassner
Copy link

@universam1 nice find

Great if this fix solves this nasty issue 👍

@bbuivn
Copy link

bbuivn commented Jun 10, 2022

Could someone merge this?
We do have the same issue and it would solve it <3

@universam1
Copy link
Author

@tmunipre please consider this fix, thank you

@stijnbrouwers
Copy link

Could this please be reviewed.
This keeps issue causes a lot of trouble in our current cluster and it seems like a simple, elegant solution that does not needs a lot of work to be merged.

@mjsoyeon
Copy link
Contributor

/lgtm

@RyanStan RyanStan merged commit c52de83 into aws:master Dec 28, 2022
@RyanStan
Copy link
Contributor

@universam1 Thank you for creating this PR! Sorry it wasn't merged earlier.

@universam1 universam1 deleted the fixEmptyKey branch December 28, 2022 15:12
@universam1
Copy link
Author

Thank you @RyanStan for taking the PR further, appreciated!
Do you know how to get a release with this fix in the downstream project https://github.com/kubernetes-sigs/aws-efs-csi-driver to solve the cascading issue?

@RyanStan
Copy link
Contributor

Yep, once we cut a release of efs-utils, we'll be able to propagate it to the csi driver. This is on our immediate radar now

@RyanStan
Copy link
Contributor

RyanStan commented Jan 9, 2023

This was included in v1.4.9 of aws-efs-csi-driver.

@otorreno
Copy link
Contributor

otorreno commented Aug 27, 2023

We are still facing this problem on v1.4.9, I believe we need the same check on the mount_efs/__init__.py file.

#174

@otorreno
Copy link
Contributor

@RyanStan since you have the context it would be great if you can review #174

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants