Repository navigation
Specify how Bicep modules forward secure inputs - #3229
Merged
Andy Jordan (andyleejordan) merged 2 commits intoNov 30, 2026
Merged
Andy Jordan (andyleejordan) merged 2 commits into
Andy Jordan (andyleejordan) merged 2 commits into
Conversation
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>
Andy Jordan (andyleejordan)
marked this pull request as ready for review
November 30, 2026 19:25
Jack Tracey (jtracey93)
requested changes
Nov 30, 2026
Jack Tracey (jtracey93)
left a comment
Contributor
There was a problem hiding this comment.
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>
Jack Tracey (jtracey93)
approved these changes
Nov 30, 2026
Andy Jordan (andyleejordan)
deleted the
andyleejordan/avm-spec-secure-inputs-update
branch
November 30, 2026 21:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
05cb5d44d75bea224f5c39372ed8b6cfd1ebfc48↑ 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
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).@secure()inBCPNFR21: 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.Breaking Changes
As part of this Pull Request I have
mainbranchValidation:
git diff --checkand 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 usessecurestringfor the password andstringfor 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.