azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Ambiguous documentation for AKS workload identity and Key Vault access.

Open fabio-s-franco opened this issue 11 months ago • 4 comments

The example of working with workload identity to access a key vault, assumes it uses policy based authorization instead of RBAC. It does not clarify whether RBAC is compatible with workload identity or provides instructions on how to use it in such a scenario.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

fabio-s-franco avatar Mar 11 '24 09:03 fabio-s-franco

@fabio-s-franco Thanks for your feedback! We will investigate and update as appropriate.

ManoharLakkoju-MSFT avatar Mar 11 '24 15:03 ManoharLakkoju-MSFT

@fabio-s-franco Thank you for bringing this to our attention. I've delegated this to content author @MGoedtel, who will review it and offer their insightful opinions.

ManoharLakkoju-MSFT avatar Mar 13 '24 06:03 ManoharLakkoju-MSFT

Hi @fabio-s-franco - I'll create a work item for us to address this gap in our documentation. As far as I know and understand, RBAC is compatible with a workload identity since it's an object that exists in Entra ID.

MGoedtel avatar Mar 20 '24 19:03 MGoedtel

Thanks @MGoedtel and @ManoharLakkoju-MSFT, I can confirm that it is compatible.

I was having trouble authenticating with it via the cli, discussed here https://github.com/Azure/azure-cli/issues/24756#issuecomment-1994004297. My impression was that the cli would automatically use the federated credentials and I was not sure, the problem was due to incompatibility with RBAC and workload identity.

fabio-s-franco avatar Mar 21 '24 18:03 fabio-s-franco

Hi @fabio-s-franco - I saw that and I've created that work item so we plan to update the Workload Identity content to include how to do this with Azure RBAC, and I've also engaged the AKS Security PMs for visibility and their engagement. #please-close

MGoedtel avatar Mar 28 '24 13:03 MGoedtel