aztfmod / rover

The rover is a docker container in charge of the deployment of the Terraform platform engineering for Azure
MIT License
172 stars 142 forks source link

Error: SecretNotFound when running the launchpad due to " A secret with (name/id) tenant-id was not found in this key vault." #205

Closed nusrath432 closed 2 years ago

nusrath432 commented 2 years ago

version: aztfmod/rover:1.0.1-2106.3012

Error: SecretNotFound when running the launchpad due to " A secret with (name/id) tenant-id was not found in this key vault."

I am getting the above error when running the launchpad even though the tenant-id secret exists in the key vault as "mysecret-tenant-id". This is due to rover function using "-n tenant-id" at https://github.com/aztfmod/rover/blob/master/scripts/functions.sh#L344 instead of "-n ${SECRET_PREFIX}-tenant-id"

Is the correct behaviour and if not, what am I doing wrong that it is using -tenant-id and not ${SECRET_PREFIX}-tenant-id or the secrets created within the keyvault kv-level0 should not have been created using a SECRET_PREFIX in the first place.

Thanks

Solution: Added tenant-id secret to kv-level0 to continue. Must have been deleted post first deployment of launchpad.