Unable to run non-root container on kubernetes using workload identity #5981
-
        Describe the BugUnable to run non-root container on kubernetes using workload identity due to permission problems. Documentation has no information on how to resolve this. Steps to ReproduceCreate a dockerfile that uses  The first error is a folder permission error where we have no access to  This was resolved this by doing However this generates a second error 
 Im unsure how to proceed from here, this image works fine when running as root. Other Information.Net8 Output of 
 | 
  
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
| 
         [Triage] @MarkTallentire which .NET image/tag are you using? And are you using the Azure SDK to set up Workload Identity?  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Hi @lbussell, sorry. This is using  
 This is all running on AKS  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Closing this as incorrect. I noticed some incorrect packages in our config that caused this. Mainly Azure.Identity was an incorrect version. All working now. Sorry!  | 
  
Beta Was this translation helpful? Give feedback.
Hi @lbussell, sorry. This is using
mcr.microsoft.com/dotnet/aspnet:8.0built withmcr.microsoft.com/dotnet/sdk:8.0and I believe the error is coming from this line of codebuilder.Configuration.AddAzureKeyVault(new Uri($"https://{keyVaultName}.vault.azure.net/"), new DefaultAzureCredential());This is all running on AKS