-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: Support workload identity #1193
feat: Support workload identity #1193
Conversation
Hi @cvvz. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
workload identity failed to inject to csi driver when csi driver was deployed in |
e26eae4
to
f0b857c
Compare
charts/latest/azurefile-csi-driver/templates/csi-azurefile-controller.yaml
Outdated
Show resolved
Hide resolved
charts/latest/azurefile-csi-driver/templates/csi-azurefile-controller.yaml
Outdated
Show resolved
Hide resolved
charts/latest/azurefile-csi-driver/templates/csi-azurefile-controller.yaml
Outdated
Show resolved
Hide resolved
charts/latest/azurefile-csi-driver/templates/csi-azurefile-controller.yaml
Outdated
Show resolved
Hide resolved
/ok-to-test |
cc @RomanBednar for this PR, let me know if you have any concern. |
also we need to check how to enable workload identity on capz, there is a draft PR to support workload identity on CAPZ: kubernetes-sigs/cluster-api-provider-azure#2814 |
Thank you @andyzhangx and @cvvz for the PR. The proposed changes look great for the purposes of our storage operator I believe. We don't use helm to deploy the driver but we can implement something similar. |
@cvvz I gave it a bit more thought and believe it would be much cleaner for deployments and enabling/disabling workload identity authentication feature if the auth lib could also decide about the method used based on cloud config. Keeping the env variables for the sake of webhook is still ok - we could have both. It makes sense for us in OpenShift enhancement but I'd like you to weight in on that. Here's the enhancement discussion: openshift/enhancements#1301 (comment) |
@RomanBednar It seems good to me to support federated workload identity in cloud auth config, which is a global configuration can effect both cloud-provider-azure and azure csi driver. And we should still keep using the env variables and webhook in csi driver, since some users may want to configure workload identity separately. |
Hi, @RomanBednar I just checked again, and I think we already support workload identity based on cloud config in this PR. You can set |
Ah I see, initially I misunderstood the config parsing, thanks for pointing that out! @cvvz |
0d3506b
to
9c903ce
Compare
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls squash all commits, thanks.
commit f8a9cdf Author: weizhichen <weizhichen@microsoft.com> Date: Mon Apr 24 04:11:22 2023 +0000 fix helm commit 9f94bad Author: weizhichen <weizhichen@microsoft.com> Date: Mon Apr 24 04:01:46 2023 +0000 fix yaml lint commit 46c8cab Author: weizhichen <weizhichen@microsoft.com> Date: Mon Apr 24 03:47:07 2023 +0000 fix go mod commit 4d55075 Author: weizhichen <weizhichen@microsoft.com> Date: Mon Apr 24 02:53:00 2023 +0000 add readme commit 126a8c2 Author: weizhichen <weizhichen@microsoft.com> Date: Mon Apr 24 02:46:40 2023 +0000 use go 1.20 commit 3ad423d Author: weizhichen <weizhichen@microsoft.com> Date: Mon Apr 24 02:31:37 2023 +0000 fix e2e: add context commit 9c903ce Author: weizhichen <weizhichen@microsoft.com> Date: Mon Apr 24 00:35:41 2023 +0000 fix vendor commit bdb8d8a Author: weizhichen <weizhichen@microsoft.com> Date: Mon Apr 24 00:26:43 2023 +0000 update vendor commit 97492b4 Author: weizhichen <weizhichen@microsoft.com> Date: Tue Apr 4 07:20:53 2023 +0000 upgrade adal commit ba33edf Author: weizhichen <weizhichen@microsoft.com> Date: Wed Mar 1 23:18:43 2023 +0000 fix docs commit 2a478f5 Author: weizhichen <weizhichen@microsoft.com> Date: Wed Mar 1 01:24:18 2023 +0000 fix commit 6571797 Author: weizhichen <weizhichen@microsoft.com> Date: Fri Feb 24 07:50:40 2023 +0000 fix commit 4e0f80c Author: weizhichen <weizhichen@microsoft.com> Date: Fri Feb 24 07:49:10 2023 +0000 fix commit 56f9d20 Author: weizhichen <weizhichen@microsoft.com> Date: Fri Feb 24 06:53:18 2023 +0000 fix docs commit c1a111c Author: weizhichen <weizhichen@microsoft.com> Date: Fri Feb 24 06:43:35 2023 +0000 fix commit 4c82dda Author: weizhichen <weizhichen@microsoft.com> Date: Thu Feb 23 08:03:01 2023 +0000 Squashed commit of the following: commit e26eae4 Merge: 020a6c3 141ab79 Author: weizhichen <weizhichen@microsoft.com> Date: Thu Feb 23 07:59:46 2023 +0000 Merge branch 'master' of https://github.com/kubernetes-sigs/azurefile-csi-driver into support-workload-identity commit 020a6c3 Author: weizhichen <weizhichen@microsoft.com> Date: Thu Feb 23 07:58:28 2023 +0000 fix commit e23c004 Author: weizhichen <weizhichen@microsoft.com> Date: Thu Feb 23 07:49:26 2023 +0000 fix commit 6336c4e Author: weizhichen <weizhichen@microsoft.com> Date: Thu Feb 23 07:42:15 2023 +0000 add docs commit 7e84f91 Author: weizhichen <weizhichen@microsoft.com> Date: Wed Feb 22 08:15:00 2023 +0000 fix commit 6a866db Author: weizhichen <weizhichen@microsoft.com> Date: Tue Feb 21 11:15:22 2023 +0000 fix commit f7caea6 Author: weizhichen <weizhichen@microsoft.com> Date: Tue Feb 21 08:40:31 2023 +0000 fix commit bccdb92 Author: weizhichen <weizhichen@microsoft.com> Date: Tue Feb 21 08:22:43 2023 +0000 fix commit 3f99c86 Author: weizhichen <weizhichen@microsoft.com> Date: Tue Feb 21 05:03:17 2023 +0000 fix commit d2663f3 Author: weizhichen <weizhichen@microsoft.com> Date: Tue Feb 21 04:42:51 2023 +0000 fix commit ca11365 Author: weizhichen <weizhichen@microsoft.com> Date: Thu Feb 16 10:54:38 2023 +0000 fix commit 0ef4233 Author: weizhichen <weizhichen@microsoft.com> Date: Thu Feb 16 09:59:50 2023 +0000 support workload identity commit b06461d Author: weizhichen <weizhichen@microsoft.com> Date: Thu Feb 16 03:25:40 2023 +0000 chore: update cloud-provider
f8a9cdf
to
22f111a
Compare
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, cvvz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #1138
Requirements:
Special notes for your reviewer:
Release note: