hashicorp / hashicorp/packer-plugin-azure
[ARM Builder] Build KeyVault Secret not deleted when `build_key_vault_name` is specified
Open
bug
- Dominant language
- Go
- Stars
- 63
- Forks
- 103
- PR merge metrics
- No merged PRs in 30d
Description
Whenever a user specifies a `build_key_vault_name` in their template we do not make a call to delete this key vault, this makes sense but as a result we leave behind an unused secret in the vault.
To solve this we need to make a call to delete the secret when a key vault is provided, if the key vault isn't provided it gets deleted correctly.
Contributor guide
Research direction
Start in the ARM Builder cleanup path and trace how cleanup behaves when build_key_vault_name is specified versus omitted. Confirm the existing behavior for the no-name case, then verify that the secret is deleted while the user-provided key vault remains.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, go
- Domain
- cloud, security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100