Azure / Azure/azvmimagebuilder

Question: How do you handle secrets when azure image builder?

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
111
Forks
69
PR merge metrics
No merged PRs in 30d

Description

Hey Guys,

How do you handle secrets when azure image builder?

Let's say i have customization, that logins to my container register and pulls an image. How can I pass my login details in secure way?

```
az image builder customizer add -n $mytemplate -g $myResourceGroup --type powershell --customizer-name pulldockerimages --defer --exit-codes 0 `
--inline-script `
'docker login myrepo.azurecr.io --username myUser--password myPassword' `
'docker pull myrepo.azurecr.io/imv:onprem-18.4.28601.29139-w1-10.0.17763.2300-ltsc2019' `
```

Now, it's just stored as plain text and could be seen on Image template Json view, and logs

![image](https://user-images.githubusercontent.com/16342128/142082389-d3dc3d89-576d-483f-a0cb-9c92ec1b555f.png)

Best Regards,
Gintautas

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.