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

Getting managedIdentityClientId from configmap support #812

Closed
antoineozenne-at-leocare opened this issue Oct 13, 2023 · 4 comments
Closed
Assignees
Labels
enhancement New feature or request Kubernetes

Comments

@antoineozenne-at-leocare

It should be great if we could get spec.auth.workloadIdentity.managedIdentityClientId from a configmap.

In my use case, I deploy the managed identity with Azure Service Operator. This operator allows putting and reading the clientId of the managed identity in a configmap. So if a resource needs to get the clientId, it can get it from the configmap.

I would like to do the same thing with AzureAppConfigurationProvider, in a GitOps way.

@RichardChen820 RichardChen820 added enhancement New feature or request Kubernetes labels Oct 13, 2023
@RichardChen820
Copy link
Contributor

RichardChen820 commented Oct 13, 2023

Are you looking forward something like this?

spec:
  endpoint: <your-app-configuration-store-endpoint>
  target:
    configMapName: demo
  auth:
    workloadIdentity:
      configMapReference:
         configMapName: cm-contains-managed-identity-id
         key: key-of-managed-identity-id

@antoineozenne-at-leocare
Copy link
Author

Exactly!

@RichardChen820
Copy link
Contributor

It sounds like a reasonable case to me. We are working on the v1 stable version release now and will consider adding it in v1. Thanks for you feedback, please stay tuned

@RichardChen820
Copy link
Contributor

Added the auth.workloadIdentity.managedIdentityClientIdReference property for workloadIdentity authentication in v1.1.0. It enables the retrieval of the client ID of a user-assigned managed identity from a ConfigMap

spec:
  endpoint: <your-app-configuration-store-endpoint>
  target:
    configMapName: demo
  auth:
    workloadIdentity:
      managedIdentityClientIdReference:
         configMap: cm-contains-managed-identity-id
         key: key-of-managed-identity-id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Kubernetes
Projects
None yet
Development

No branches or pull requests

2 participants