Hi,
I recently setup a code signing certificate in Azure Key Vault. I am using the HSM. I setup the roll based Access control for the key vault while creating it. Then, I created an application in my azure tenant and provided all the required access roles (Key Vault Crypto Officer, Key Vault Crypto Service Encryption User, Key Vault Crypto User) to my KeyVault . I can see all those roles assigned to my app when i check the KeyVault IAM. But when I use the azuresigntool, I am getting the following error :
Signing executable files...
trce: AzureSignTool.SignCommand[0]
Retrieving current version of certificate GlobalSign-CodeSigningCert.
```fail: AzureSignTool.SignCommand[0]
```yaml
Failed to retrieve certificate codecertificate from Azure Key Vault. Please verify the name of the certificate and the permissions to the certificate. Error message: Caller is not authorized to perform action on resource.
If role assignments, deny assignments or role definitions were changed recently, please observe propagation time.
Caller: appid=xxxx;iss=https://sts.windows.net/761a7c13-d3ba-42e1-93e9-f17c1f98d720/
Action: 'Microsoft.KeyVault/vaults/certificates/read'
Resource: '/subscriptions/xxxx/resourcegroups/buildsigning/providers/microsoft.keyvault/vaults/buildsigningcert/certificates/codesigningcert'
Assignment: (not found)
DenyAssignmentId: null
DecisionReason: null
Vault: BuildSigningCert;location=eastus
Status: 403 (Forbidden)
ErrorCode: Forbidden
Content:
{"error":{"code":"Forbidden","message":"Caller is not authorized to perform action on resource.\r\nIf role assignments, deny assignments or role definitions were changed recently, please observe propagation time.\r\nCaller: appid=xxxx;iss=https://sts.windows.net/761a7c13-d3ba-42e1-93e9-f17c1f98d720/\r\nAction: 'Microsoft.KeyVault/vaults/certificates/read'\r\nResource: '/subscriptions/xxxx/resourcegroups/buildsigning/providers/microsoft.keyvault/vaults/igningcert/certificates/signingcert'\r\nAssignment: (not found)\r\nDenyAssignmentId: null\r\nDecisionReason: null \r\nVault: BuildSigningCert;location=eastus\r\n","innererror":{"code":"ForbiddenByRbac"}}}
```Appreciate any hlep on this.