-
Notifications
You must be signed in to change notification settings - Fork 281
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
[azclient] Refactor AuthProvider multi-tenant token credential #8596
base: master
Are you sure you want to change the base?
[azclient] Refactor AuthProvider multi-tenant token credential #8596
Conversation
Hi @zarvd. 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-sigs/prow repository. |
pkg/azclient/auth.go
Outdated
credOptions := &azidentity.ClientCertificateCredentialOptions{ | ||
ClientOptions: *clientOption, | ||
AdditionallyAllowedTenants: []string{armConfig.NetworkResourceTenantID}, | ||
SendCertificateChain: true, |
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.
@MartinForReal Kindly note that I have also add the missing option here. please take a look, thanks.
} | ||
} | ||
|
||
// ClientCertificateCredential is used for client certificate | ||
if computeCredential == nil && len(config.AADClientCertPath) > 0 { | ||
credOptions := &azidentity.ClientCertificateCredentialOptions{ | ||
ClientOptions: *clientOption, | ||
SendCertificateChain: true, |
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.
Please take a closer look; it's moved to the else branch in L213.
/ok-to-test |
4f47ae5
to
02845dc
Compare
/lgtm |
/assign @andyzhangx |
/hold |
/unhold |
02845dc
to
cbf61b6
Compare
cbf61b6
to
b47944e
Compare
/lgtm |
b47944e
to
07fc156
Compare
/lgtm |
07fc156
to
1d55408
Compare
New changes are detected. LGTM label has been removed. |
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: feiskyer, zarvd 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 |
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.
Could you add some unit tests?
Broke down the large |
20c5ae2
to
ad77adc
Compare
ad77adc
to
47b542f
Compare
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Refactor the AuthProvider to remove the
MultiTenantCredential
, as theComputeCredential
would work the same and provide the client options while using the auxiliary token provider.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: