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

Omsagent managed identity conflicts with other identities #3658

Open
smartaquarius10 opened this issue May 16, 2023 · 1 comment
Open

Omsagent managed identity conflicts with other identities #3658

smartaquarius10 opened this issue May 16, 2023 · 1 comment
Assignees

Comments

@smartaquarius10
Copy link

smartaquarius10 commented May 16, 2023

Team,

Currently we are using aad pod identity but we thought to delete it and start using managed identities directly to interact with key vault. We have provided our own kubelet identity to AKS and given access to this identity on key vault. After this we can easily get the secrets using this code

var azureServiceTokenProvider = new AzureServiceTokenProvider();
            var kv = new KeyVaultClient(new KeyVaultClient.AuthenticationCallback(azureServiceTokenProvider.KeyVaultTokenCallback));
            var kvsecret=await kv.GetSecretAsync("https://mykv.vault.azure.net/", "mysecret");
            return kvsecret.Value.ToString();

The moment we enable omsagent, C# throws an exception that multiple userassigned managed identities are available.

How to resolve this. Is there anyway to choose a different resource group for oms agent managed identity.

@miwithro miwithro self-assigned this Jun 2, 2023
@ghost ghost added the action-required label Jun 28, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the stale Stale issue label Feb 19, 2025
Copy link
Contributor

This issue has been automatically marked as stale because it has not had any activity for 30 days. It will be closed if no further activity occurs within 7 days of this comment. @miwithro

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

No branches or pull requests

2 participants