-
Notifications
You must be signed in to change notification settings - Fork 580
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
[E2E] Zero csi driver aws credentials to fallback to use instance profile role #4260
Comments
This issue is currently awaiting triage. If CAPA/CAPI contributors determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Zero the credentials causes two test cases failing to start statefulset pod after k8s version upgrade: "CSI=external CCM=external AWSCSIMigration=on: upgrade to v1.23" will investigate it. |
/assign |
stateful set pod fails:
csi controller log:
decode it:
Checking more on the document, we need to pin csi controller to control plane by:
This csi addon upgrade change removes this part unfortunately. I'll add it back. From this practice, I also learned that exposing aws credentials in the csi add on indeed is too open and dangerous (it allows the pod to do many things like attach/detach volumes on workers directly). We should limit the permission of pods (eg. csi add-on) by using instance profile role. |
/kind bug
What steps did you take and what happened:
[A clear and concise description of what the bug is.]
What did you expect to happen:
It should be removed. After it is removed, the csi add on will fallback to workload cluster control plane instance role to get credentials from metadata service. Otherwise we cannot catch bugs on this basic scenario if using explict aws credentails
It is also not existing in the original csi addon test. At that time, it uses IMDSv1 to retrieve credentials.
After the #4147, the IMDSv2 is enabled however the hop limit is set to 1, csi addon is failed to retrieve credentials hence at that time #4147 add explict aws credentails in the yaml to let tests pass.
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
kubectl version
):/etc/os-release
):The text was updated successfully, but these errors were encountered: