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:
daniel-teuchert-sonarsource 2023-09-14 11:41:28 +02:00 committed by GitHub
parent e61222637f
commit c8a953286f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,11 +116,13 @@ resource example 'Microsoft.Web/sites@2015-08-01' = {
"resources": [ "resources": [
{ {
"type": "Microsoft.App/containerApps", "type": "Microsoft.App/containerApps",
"apiVersion": "2022-03-01", "apiVersion": "2022-10-01",
"name": "example", "name": "example",
"properties": { "properties": {
"ingress": { "configuration": {
"clientCertificateMode": "accept" "ingress": {
"clientCertificateMode": "accept"
}
} }
} }
} }
@ -130,11 +132,13 @@ resource example 'Microsoft.Web/sites@2015-08-01' = {
[source,bicep,diff-id=14,diff-type=noncompliant] [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' name: 'example'
properties: { properties: {
ingress: { configuration: {
clientCertificateMode: 'accept' // Sensitive ingress: {
clientCertificateMode: 'accept' // Sensitive
}
} }
} }
} }
@ -366,11 +370,13 @@ resource example 'Microsoft.Web/sites@2015-08-01' = {
"resources": [ "resources": [
{ {
"type": "Microsoft.App/containerApps", "type": "Microsoft.App/containerApps",
"apiVersion": "2022-03-01", "apiVersion": "2022-10-01",
"name": "example", "name": "example",
"properties": { "properties": {
"ingress": { "configuration": {
"clientCertificateMode": "require" "ingress": {
"clientCertificateMode": "require"
}
} }
} }
} }
@ -380,11 +386,13 @@ resource example 'Microsoft.Web/sites@2015-08-01' = {
[source,bicep,diff-id=14,diff-type=compliant] [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' name: 'example'
properties: { properties: {
ingress: { configuration: {
clientCertificateMode: 'require' ingress: {
clientCertificateMode: 'require'
}
} }
} }
} }
@ -497,7 +505,7 @@ resource example 'Microsoft.ContainerRegistry/registries/tokens@2022-12-01' = {
name: 'example' name: 'example'
properties: { properties: {
credentials: { credentials: {
certificates: [ certificates: [
{ {
name: 'certificate1' name: 'certificate1'
encodedPemCertificate: '[base64-encoded certificate]' encodedPemCertificate: '[base64-encoded certificate]'