AL-Go icon indicating copy to clipboard operation
AL-Go copied to clipboard

[Bug]: Gertting secrets from Azure key vault fails in Preview

Open StefanMaron opened this issue 1 year ago • 3 comments

AL-Go version

preview

Describe the issue

As soon as I switched to preview, the Initialize step fails when it tries to read secrets from the key vault. If I switch back to main, it works again.

Expected behavior

Initialize should not fail

Steps to reproduce

Run preview CI/CD with a connected azure key vault

Additional context (logs, screenshots, etc.)

image

StefanMaron avatar Aug 07 '24 13:08 StefanMaron

Does it list which secrets it is looking for (above the part included in the screenshot)

freddydk avatar Aug 07 '24 13:08 freddydk

This is the part above that error message. The KeyVault is just used for the Code Signing cert image

StefanMaron avatar Aug 07 '24 13:08 StefanMaron

Got it. Your app registration then only has permissions to sign apps and we expect it to have permissions to list and read secrets. It's a bug - will fix this.

freddydk avatar Aug 07 '24 20:08 freddydk

@StefanMaron - could you try to run Update AL-Go System files with use freddydk/AL-Go@issue1164 to see whether this solves the issue. After this - revert back to main again, then I will proceed to get this fix into preview.

freddydk avatar Aug 19 '24 08:08 freddydk

I managed to repro myself and see that this indeed fixes the issue

freddydk avatar Aug 19 '24 19:08 freddydk