APPSEC-1083: S6382 Fixed incorrect ARM examples (#3056)
## Review A dedicated reviewer checked the rule description successfully for: - [ ] logical errors and incorrect information - [ ] information gaps and missing content - [ ] text style and tone - [ ] PR summary and labels follow [the guidelines](https://github.com/SonarSource/rspec/#to-modify-an-existing-rule) --------- Co-authored-by: Loris S. <91723853+loris-s-sonarsource@users.noreply.github.com>
This commit is contained in:
parent
e61222637f
commit
c8a953286f
@ -116,11 +116,13 @@ resource example 'Microsoft.Web/sites@2015-08-01' = {
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.App/containerApps",
|
||||
"apiVersion": "2022-03-01",
|
||||
"apiVersion": "2022-10-01",
|
||||
"name": "example",
|
||||
"properties": {
|
||||
"ingress": {
|
||||
"clientCertificateMode": "accept"
|
||||
"configuration": {
|
||||
"ingress": {
|
||||
"clientCertificateMode": "accept"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -130,11 +132,13 @@ resource example 'Microsoft.Web/sites@2015-08-01' = {
|
||||
|
||||
[source,bicep,diff-id=14,diff-type=noncompliant]
|
||||
----
|
||||
resource example 'Microsoft.App/containerApps@2022-03-01' = {
|
||||
resource example 'Microsoft.App/containerApps@2022-10-01' = {
|
||||
name: 'example'
|
||||
properties: {
|
||||
ingress: {
|
||||
clientCertificateMode: 'accept' // Sensitive
|
||||
configuration: {
|
||||
ingress: {
|
||||
clientCertificateMode: 'accept' // Sensitive
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -366,11 +370,13 @@ resource example 'Microsoft.Web/sites@2015-08-01' = {
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.App/containerApps",
|
||||
"apiVersion": "2022-03-01",
|
||||
"apiVersion": "2022-10-01",
|
||||
"name": "example",
|
||||
"properties": {
|
||||
"ingress": {
|
||||
"clientCertificateMode": "require"
|
||||
"configuration": {
|
||||
"ingress": {
|
||||
"clientCertificateMode": "require"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -380,11 +386,13 @@ resource example 'Microsoft.Web/sites@2015-08-01' = {
|
||||
|
||||
[source,bicep,diff-id=14,diff-type=compliant]
|
||||
----
|
||||
resource example 'Microsoft.App/containerApps@2022-03-01' = {
|
||||
resource example 'Microsoft.App/containerApps@2022-10-01' = {
|
||||
name: 'example'
|
||||
properties: {
|
||||
ingress: {
|
||||
clientCertificateMode: 'require'
|
||||
configuration: {
|
||||
ingress: {
|
||||
clientCertificateMode: 'require'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -497,7 +505,7 @@ resource example 'Microsoft.ContainerRegistry/registries/tokens@2022-12-01' = {
|
||||
name: 'example'
|
||||
properties: {
|
||||
credentials: {
|
||||
certificates: [
|
||||
certificates: [
|
||||
{
|
||||
name: 'certificate1'
|
||||
encodedPemCertificate: '[base64-encoded certificate]'
|
||||
|
Loading…
x
Reference in New Issue
Block a user