-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add azureresourcemanager to rule S4507
- Loading branch information
Showing
2 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
include::../description.adoc[] | ||
|
||
include::../ask-yourself.adoc[] | ||
|
||
include::../recommended.adoc[] | ||
|
||
== Sensitive Code Example | ||
|
||
[source,json,diff-id=1,diff-type=noncompliant] | ||
---- | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Resources/deployments", | ||
"apiVersion": "2019-05-01", | ||
"name": "templateDebug", | ||
"properties": { | ||
"debugSetting": { "detailLevel": "RequestContent, ResponseContent" } | ||
} | ||
} | ||
] | ||
} | ||
---- | ||
|
||
[source,bicep,diff-id=2,diff-type=noncompliant] | ||
---- | ||
resource templateDebug 'Microsoft.Resources/deployments@2019-05-01' = { | ||
name: 'templateDebug' | ||
properties: { | ||
debugSetting: { // Noncompliant | ||
detailLevel: 'RequestContent, ResponseContent' | ||
} | ||
} | ||
} | ||
---- | ||
|
||
== Compliant Solution | ||
|
||
[source,json,diff-id=1,diff-type=compliant] | ||
---- | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Resources/deployments", | ||
"apiVersion": "2019-05-01", | ||
"name": "templateDebug", | ||
"properties": {} | ||
} | ||
] | ||
} | ||
---- | ||
|
||
[source,bicep,diff-id=2,diff-type=compliant] | ||
---- | ||
resource templateDebug 'Microsoft.Resources/deployments@2019-05-01' = { | ||
name: 'templateDebug' | ||
} | ||
---- | ||
|
||
include::../see.adoc[] | ||
|
||
ifdef::env-github,rspecator-view[] | ||
|
||
''' | ||
== Implementation Specification | ||
(visible only on this page) | ||
|
||
include::../message.adoc[] | ||
|
||
=== Highlighting | ||
|
||
Highlight the "debugSetting" property and its value. | ||
|
||
''' | ||
== Comments And Links | ||
(visible only on this page) | ||
|
||
include::../comments-and-links.adoc[] | ||
|
||
endif::env-github,rspecator-view[] |