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

Warn on output values that contain nested secrets #10669

Merged
merged 7 commits into from
Jun 27, 2023

Conversation

jeskew
Copy link
Contributor

@jeskew jeskew commented May 10, 2023

Resolves #10676 and resolves #10327

This PR updates the OutputsShouldNotContainSecretsRule analyzer rule to warn if an expression used inside an output value contains secrets. This analysis is performed based on the declared type of the value supplied.

Microsoft Reviewers: Open in CodeFlow

@StephenWeatherford
Copy link
Contributor

@jeskew Might not get to this until next week.

@StephenWeatherford
Copy link
Contributor

@jeskew Is there anything in the docs that will need to change? https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/linter-rule-secure-secrets-in-parameters

If so, please enter a new bug for that.

@StephenWeatherford
Copy link
Contributor

@jeskew Thanks for handling this! Gave it a quick look, will try to finish tomorrow.

Copy link
Contributor

@StephenWeatherford StephenWeatherford left a comment

Choose a reason for hiding this comment

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

Look great, thanks! Sorry for the delay. Left a few comments to consider.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2023

Test Results (win-x64)

       33 files         33 suites   29m 28s ⏱️
10 073 tests 10 073 ✔️ 0 💤 0
12 285 runs  12 285 ✔️ 0 💤 0

Results for commit 635d69d.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2023

Test Results (linux-musl-x64)

       33 files         33 suites   33m 16s ⏱️
10 061 tests 10 061 ✔️ 0 💤 0
12 274 runs  12 274 ✔️ 0 💤 0

Results for commit 635d69d.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2023

Test Results (linux-x64)

       33 files         33 suites   30m 41s ⏱️
10 061 tests 10 061 ✔️ 0 💤 0
12 274 runs  12 274 ✔️ 0 💤 0

Results for commit 635d69d.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2023

Test Results (osx-x64)

       33 files         33 suites   1h 47m 48s ⏱️
10 065 tests 10 065 ✔️ 0 💤 0
12 278 runs  12 278 ✔️ 0 💤 0

Results for commit 635d69d.

@jeskew
Copy link
Contributor Author

jeskew commented Jun 21, 2023

@StephenWeatherford would you mind taking another look when you get a chance?

Copy link
Contributor

@StephenWeatherford StephenWeatherford left a comment

Choose a reason for hiding this comment

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

Great job, thanks!

@jeskew jeskew merged commit af515f5 into main Jun 27, 2023
@jeskew jeskew deleted the jeskew/warn-on-outputs-containing-nested-secrets branch June 27, 2023 19:05
jeskew added a commit that referenced this pull request Jun 27, 2023
Merging #10669 broke the build on `main` due to a change to an unrelated
part of the code since when the PR was checked in CI. This PR fixes the
compilation errors that resulted from merging the PR.

###### Microsoft Reviewers: [Open in
CodeFlow](https://portal.fabricbot.ms/api/codeflow?pullrequest=https://github.com/Azure/bicep/pull/11084)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants