Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Storage Account - Storage Account - Incorrect Handling of denyEncryptionScopeOverride Parameter #4446

Merged
merged 3 commits into from
Feb 14, 2025

Conversation

AlexanderSehr
Copy link
Contributor

@AlexanderSehr AlexanderSehr commented Feb 14, 2025

Description

Rebased from #4435

Original description:

Ref: #4258

Issue Summary:
When deploying the Storage Account module with a Blob container, the denyEncryptionScopeOverride parameter in the container's main.bicep template is incorrectly being set to null instead of explicitly retaining the expected false value when configured as such.

This behavior causes potential misconfigurations when deployed on a existing storage account that already has this variable set to false, as you are not allowed to change this property after its creation.

cc: @PetterHL

Pipeline Reference

Pipeline
avm.res.storage.storage-account

Type of Change

  • Update to CI Environment or utilities (Non-module affecting changes)
  • Azure Verified Module updates:
    • Bugfix containing backwards-compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in version.json:
      • 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

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Triage 🔍 Maintainers need to triage still label Feb 14, 2025
@AlexanderSehr AlexanderSehr self-assigned this Feb 14, 2025
@AlexanderSehr AlexanderSehr added the Type: Bug 🐛 Something isn't working label Feb 14, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue label Feb 14, 2025
@AlexanderSehr AlexanderSehr marked this pull request as ready for review February 14, 2025 10:49
@AlexanderSehr AlexanderSehr requested review from a team as code owners February 14, 2025 10:49
@AlexanderSehr AlexanderSehr enabled auto-merge (squash) February 14, 2025 10:49
@avm-team-linter avm-team-linter bot added the Needs: Module Owner 📣 This module needs an owner to develop or maintain it label Feb 14, 2025
@AlexanderSehr
Copy link
Contributor Author

Ready to go @ktremain.
The PR changes the ARM JSON version unfortunately (which was not intended), but I somehow can't upgrade to 0.33.93. As it does not affect hwo the module works, I'd ask to ignore this detail when reviewing.

@AlexanderSehr AlexanderSehr merged commit d7fa7c0 into main Feb 14, 2025
40 checks passed
@AlexanderSehr AlexanderSehr deleted the users/alsehr/PetterHL_main_rebase branch February 14, 2025 19:47
anderseide pushed a commit to anderseide/avm-bicep-registry-modules that referenced this pull request Feb 19, 2025
…cryptionScopeOverride Parameter (Azure#4446)

## Description

Rebased from Azure#4435

### Original description:
Ref: Azure#4258

Issue Summary:
When deploying the Storage Account module with a Blob container, the
denyEncryptionScopeOverride parameter in the container's main.bicep
template is incorrectly being set to null instead of explicitly
retaining the expected false value when configured as such.

This behavior causes potential misconfigurations when deployed on a
existing storage account that already has this variable set to false, as
you are not allowed to change this property after its creation.

## Pipeline Reference

<!-- Insert your Pipeline Status Badge below -->

| Pipeline |
| -------- |
|
[![avm.res.storage.storage-account](https://github.com/Azure/bicep-registry-modules/actions/workflows/avm.res.storage.storage-account.yml/badge.svg?branch=users%2Falsehr%2FPetterHL_main_rebase&event=workflow_dispatch)](https://github.com/Azure/bicep-registry-modules/actions/workflows/avm.res.storage.storage-account.yml)
|

## Type of Change

<!-- Use the checkboxes [x] on the options that are relevant. -->

- [ ] Update to CI Environment or utilities (Non-module affecting
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`:
- [ ] 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

---------

Co-authored-by: Petter Høvik Lintoft <[email protected]>
anderseide pushed a commit to anderseide/avm-bicep-registry-modules that referenced this pull request Feb 23, 2025
…cryptionScopeOverride Parameter (Azure#4446)

## Description

Rebased from Azure#4435

### Original description:
Ref: Azure#4258

Issue Summary:
When deploying the Storage Account module with a Blob container, the
denyEncryptionScopeOverride parameter in the container's main.bicep
template is incorrectly being set to null instead of explicitly
retaining the expected false value when configured as such.

This behavior causes potential misconfigurations when deployed on a
existing storage account that already has this variable set to false, as
you are not allowed to change this property after its creation.

## Pipeline Reference

<!-- Insert your Pipeline Status Badge below -->

| Pipeline |
| -------- |
|
[![avm.res.storage.storage-account](https://github.com/Azure/bicep-registry-modules/actions/workflows/avm.res.storage.storage-account.yml/badge.svg?branch=users%2Falsehr%2FPetterHL_main_rebase&event=workflow_dispatch)](https://github.com/Azure/bicep-registry-modules/actions/workflows/avm.res.storage.storage-account.yml)
|

## Type of Change

<!-- Use the checkboxes [x] on the options that are relevant. -->

- [ ] Update to CI Environment or utilities (Non-module affecting
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`:
- [ ] 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

---------

Co-authored-by: Petter Høvik Lintoft <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Module Owner 📣 This module needs an owner to develop or maintain it Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue Type: Bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Module Issue: Storage Account - Incorrect Handling of denyEncryptionScopeOverride Parameter
3 participants