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

How to enable Workload Identity in EA #838

Closed
peqi-ms opened this issue Apr 13, 2023 · 7 comments
Closed

How to enable Workload Identity in EA #838

peqi-ms opened this issue Apr 13, 2023 · 7 comments
Labels

Comments

@peqi-ms
Copy link

peqi-ms commented Apr 13, 2023

Is your feature request related to a problem? Please describe.
Hi, we are hosting our services in AKS in multiple regions(e.g. eus, wus, scus, ea).
Currently, we are using aad-pod-identity talking to Azure KeyVault and generate/inject tokencredential into our services on AKS clusters.
Aad-pod-identity will be deprecated, so we are onboarding to workload identity.
Both our MSI(user assigned managed identity), KV, and services are allocated per region, and one of our regions is East Asia.
According to Doc here: "e2e-test-images/busybox", we can't generate federated credential between "EastAsia AKS oidc issuer" and "EastAsia user-assigned-managed-identity". Looks like we can generate federated credential by a dedicated identity generated by other region, but this going to be a big change and not compliance. Is there a workaround for this?
Describe the solution you'd like

Describe alternatives you've considered

Additional context

@peqi-ms peqi-ms added the enhancement New feature or request label Apr 13, 2023
@peqi-ms peqi-ms changed the title How can enable Workload Identity in EA How to enable Workload Identity in EA Apr 13, 2023
@peqi-ms
Copy link
Author

peqi-ms commented Apr 15, 2023

Another question is we are using " tokenCredential = new ManagedIdentityCredential();" [Azure.Identity 1.5.0]in our code, By checking your example code, "DefaultAzureCredential" will use the environment variables injected by the Azure Workload Identity, I assume ManagedIdentityCredential will act the same as DefaultAzureCredential, so we dont need change our code in this case? https://learn.microsoft.com/en-us/dotnet/api/azure.identity.defaultazurecredential?view=azure-dotnet

@RichardChen820
Copy link

RichardChen820 commented Apr 21, 2023

@aramase Do you have any insight on how to bypass the limitation on East Asia, it is a blocker for us as well to migrate pod identity to workload identity.

@aramase
Copy link
Member

aramase commented Apr 21, 2023

Another question is we are using " tokenCredential = new ManagedIdentityCredential();" [Azure.Identity 1.5.0]in our code, By checking your example code, "DefaultAzureCredential" will use the environment variables injected by the Azure Workload Identity, I assume ManagedIdentityCredential will act the same as DefaultAzureCredential, so we dont need change our code in this case? https://learn.microsoft.com/en-us/dotnet/api/azure.identity.defaultazurecredential?view=azure-dotnet

@peqi-ms The minimum required SDK versions are documented here.

@isolenov
Copy link

Do you have any insight on how to bypass the limitation on East Asia, it is a blocker for us as well to migrate pod identity to workload identity.

The only possible work-around is to use identity from a different region.

@aramase
Copy link
Member

aramase commented May 2, 2023

Closing this issue with #838 (comment) and #838 (comment). Feel free to reopen if you have any questions.

@brosev
Copy link

brosev commented Sep 28, 2023

Hi @aramase, looks like this issue was closed without a solution to the initial question regarding to the EastAsia region? This is a blocker for us moving off of AADpod identity to Workload Identity. Is there a solution to this blocker that can be found somewhere?

If not what is the workaround for EastAsia?

@brosev
Copy link

brosev commented Jan 25, 2024

@RichardChen820 Curious if you were able to find a workaround for this east asia Issue?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants