cluster-api-provider-azure icon indicating copy to clipboard operation
cluster-api-provider-azure copied to clipboard

Migrate from AAD pod identity to Azure Workload Identity

Open CecileRobertMichon opened this issue 3 years ago • 7 comments

/kind feature

Azure AD Workload Identity is the next iteration of Azure AD Pod Identity that enables Kubernetes applications to access Azure cloud resources securely with Azure Active Directory based on annotated service accounts.

Since Azure AD Pod Identity is getting deprecated, we should migrate all CAPZ usage to Azure Workload Identity.

CecileRobertMichon avatar Mar 29 '22 21:03 CecileRobertMichon

I can work on this one. /assign sonasingh46

sonasingh46 avatar Apr 04 '22 07:04 sonasingh46

@sonasingh46 let me know if you need any help with this one. Excited to see it moving forward.

/cc @chewong @aramase

CecileRobertMichon avatar Apr 08 '22 22:04 CecileRobertMichon

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Jul 07 '22 22:07 k8s-triage-robot

/remove-lifecycle stale

CecileRobertMichon avatar Jul 07 '22 22:07 CecileRobertMichon

@sonasingh46 is this something you're still working on?

Now that workload identity supports managed identity and identity federation, this would allow us to use managed identities even for management clusters not in Azure (eg. kind clusters!) https://github.com/Azure/azure-workload-identity/issues/325

CecileRobertMichon avatar Oct 03 '22 21:10 CecileRobertMichon

I had given some first pass time on this issue and then paused for some time on this. By the way, the info you shared sounds great and I can start on this again asap. I think the first step would be to start with a design document for this and I would love to do this.

sonasingh46 avatar Oct 04 '22 05:10 sonasingh46

@sonasingh46 I'm going to mark this for the current release milestone given that you're working on it, if it's too tight we can move it to the next one (the next release date is ~1 month away)

/milestone v1.6

CecileRobertMichon avatar Oct 11 '22 20:10 CecileRobertMichon

Moving this to the next milestone, but worth mentioning that we definitely want to prioritize this for 1.7 (let's not push it out indefinitely)

jackfrancis avatar Nov 03 '22 16:11 jackfrancis

@CecileRobertMichon

Now that workload identity supports managed identity and identity federation, this would allow us to use managed identities even for management clusters not in Azure (eg. kind clusters!) https://github.com/Azure/azure-workload-identity/issues/325

Is there a documentation to do provide identities for any pod a generic k8s cluster (read non-AKS) ? I found that most of the docs for this refer to doing stuff on AKS, while I want to solve this for any k8s cluster on Azure. I am trying to solve this very problem for another project https://github.com/confidential-containers/cloud-api-adaptor/issues/974

surajssd avatar May 18 '23 19:05 surajssd

@surajssd yes here: https://azure.github.io/azure-workload-identity/docs/topics/self-managed-clusters.html

CecileRobertMichon avatar May 18 '23 19:05 CecileRobertMichon

@surajssd yes here: https://azure.github.io/azure-workload-identity/docs/topics/self-managed-clusters.html

Thanks 😇

surajssd avatar May 18 '23 19:05 surajssd

Just linking the doc PR here for the record. https://github.com/kubernetes-sigs/cluster-api-provider-azure/pull/3770

sonasingh46 avatar Jul 27 '23 16:07 sonasingh46