Skip to content

Specify how Bicep modules forward secure inputs - #3229

Merged
Andy Jordan (andyleejordan) merged 2 commits into
mainfrom
andyleejordan/avm-spec-secure-inputs-update
Nov 30, 2026
Merged

Andy Jordan (andyleejordan) merged 2 commits into
mainfrom
andyleejordan/avm-spec-secure-inputs-update

Conversation

@andyleejordan

@andyleejordan Andy Jordan (andyleejordan) commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 05cb5d44d75bea224f5c39372ed8b6cfd1ebfc48

Dimension Assessment Rationale
Change confidence 9.5/10 ↑ Applied the six review suggestions; the requirements and spec metadata are unchanged.
↑ Recompiled the revised example and confirmed the password is secure and its sibling remains plain in both modules. Markdown lint passed.
↓ Hugo and the remaining PR checks passed on the prior revision and are pending on this revision.

Overview/Summary

Azure/bicep-registry-modules#7472 corrected how AVM modules forward credentials. The specs said to use @secure() for sensitive inputs, but they didn't explain that securing the child input alone leaves earlier deployments unprotected. They also made it sound like marking an entire user-defined type was the right way to secure a property, which can mark ordinary sibling properties as secure too.

This PR fixes/adds/changes/removes

  1. Clarifies the rule in BCPNFR9: preserve security at each deployment boundary and do not forward secure values to non-secure destinations. It names both Bicep checks so authors know what to look for even before AVM CI picks them up (module checks, resource checks, type inference, analysis follow-up).
  2. Clarifies where to put @secure() in BCPNFR21: annotate sensitive properties instead of an array or mixed-sensitivity object. The example shows a password and a plain name going to matching child inputs.
  3. Keeps the existing IDs and validation tags. This is a clarification of the existing decorator requirements, not a new numbered spec or a change to the CI Bicep version, Terraform specs, or module code.

Breaking Changes

  1. None to module code or APIs. Module authors may need to correct decorators or forwarding paths that do not meet the clarified requirements.

As part of this Pull Request I have

  • Read the Contribution Guide and ensured this PR is compliant with the guide
  • Checked for duplicate Pull Requests
  • Associated it with relevant GitHub Issues or ADO Work Items (Internal Only)
  • Ensured my code/branch is up-to-date with the latest changes in the main branch
  • Ensured PR tests are passing
  • Updated relevant and associated documentation (e.g. Contribution Guide, Docs etc.)

Validation: git diff --check and Markdown lint passed after the review edits. Bicep v0.49.2 compiled the revised example with only unused-parameter warnings in the illustrative child stub; the emitted ARM template uses securestring for the password and string for the name on both sides. On the prior revision, pwsh -NoLogo -NoProfile -File ./utilities/tests/Test-ForkWorkflowSetup.ps1, pwsh -NoLogo -NoProfile -File ./utilities/tests/Test-TflintDocumentation.ps1, the local production Hugo build, and all seven PR checks passed. CI is running on the review revision.

Drafted by Copilot with GPT-6.2 Sol.

Keep credentials secure at every deployment boundary without marking
non-sensitive siblings as secure. Document both lint checks before the
AVM Bicep pin exposes all of their diagnostics.

Drafted by Copilot with GPT-6.2 Sol.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service Bot added the Needs: Triage 🔍 Maintainers need to triage still label Nov 30, 2026
@andyleejordan
Andy Jordan (andyleejordan) marked this pull request as ready for review November 30, 2026 19:25

@jtracey93 Jack Tracey (jtracey93) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Andy Jordan (@andyleejordan) - have refined the english a little to make it a bit more L200 level with ASD-STE1000 Standard tech english pass on it

Drafted by Copilot with GPT-6.2 Sol.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@andyleejordan
Andy Jordan (andyleejordan) merged commit f091454 into main Nov 30, 2026
7 checks passed
@andyleejordan
Andy Jordan (andyleejordan) deleted the andyleejordan/avm-spec-secure-inputs-update branch November 30, 2026 21:31
@andyleejordan Andy Jordan (andyleejordan) added Language: Bicep 💪 This is related to the Bicep IaC language Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue Type: Documentation 📄 Improvements or additions to documentation and removed Needs: Triage 🔍 Maintainers need to triage still labels Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language: Bicep 💪 This is related to the Bicep IaC language Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue Type: Documentation 📄 Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants