From b2790c0e96299afbcf4bb0ebe82e61ec901948a8 Mon Sep 17 00:00:00 2001 From: rodney-almeida <64196999+rodney-almeida@users.noreply.github.com> Date: Tue, 14 May 2024 08:50:17 +0100 Subject: [PATCH] feat: Create\Update User Defined Types with sensitive values to include @secure() decorator. - `avm/res/container-instance/container-group` (#1919) ## Description Update containerType (user defined type) to set environmentVariables.secureValue to be of type secureString. Followed the same logic and created the user defined type for imageRegistryCredentials (imageRegistryCredentialType) as it also has a password attribute. Fixes #1868 Closes #1868 --> ## Pipeline Reference | Pipeline | | -------- | [![avm.res.container-instance.container-group](https://github.com/rodney-almeida/bicep-registry-modules/actions/workflows/avm.res.container-instance.container-group.yml/badge.svg?branch=rodney-almeida-1868)](https://github.com/rodney-almeida/bicep-registry-modules/actions/workflows/avm.res.container-instance.container-group.yml) ## Type of Change - [ ] Update to CI Environment or utlities (Non-module effecting changes) - [ ] Azure Verified Module updates: - [X] Bugfix containing backwards compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in `version.json`: - [X] Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description. - [ ] The bug was found by the module author, and no one has opened an issue to report it yet. - [ ] Feature update backwards compatible feature updates, and I have bumped the MINOR version in `version.json`. - [ ] Breaking changes and I have bumped the MAJOR version in `version.json`. - [ ] Update to documentation ## Checklist - [X] I'm sure there are no other open Pull Requests for the same update/change - [X] I have run `Set-AVMModule` locally to generate the supporting module files. - [X] My corresponding pipelines / checks run clean and green without any errors or warnings --------- Co-authored-by: Rodney Almeida --- .../container-group/README.md | 76 ++++++++++++- .../container-group/main.bicep | 104 ++++++++++-------- .../container-group/main.json | 53 ++++++++- .../tests/e2e/max/main.test.bicep | 11 +- 4 files changed, 189 insertions(+), 55 deletions(-) diff --git a/avm/res/container-instance/container-group/README.md b/avm/res/container-instance/container-group/README.md index c93906a3f9..983ca8cf49 100644 --- a/avm/res/container-instance/container-group/README.md +++ b/avm/res/container-instance/container-group/README.md @@ -355,7 +355,16 @@ module containerGroup 'br/public:avm/res/container-instance/container-group: