hlxsites / hlxsites/prisma-cloud-docs

CKV2_AZURE_21 code sample is incorrect and means the suggested fix is not clear

Open
#1,325 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
21
Forks
92
PR merge metrics
No merged PRs in 30d

Description

https://github.com/hlxsites/prisma-cloud-docs/blob/84b15ece336e7f93023adda6a2fb8b6660389f20/docs/en/enterprise-edition/policy-reference/azure-policies/azure-logging-policies/ensure-storage-logging-is-enabled-for-blob-service-for-read-requests.adoc?plain=1#L88-L93

- The `azurerm_storage_container` resource references itself.
- The container name looks like a blob name

As it's not clear what the intention of this snippet is I can't suggest a fix for it.

Also
- There are stray characters at the end of the example block on https://github.com/hlxsites/prisma-cloud-docs/blob/84b15ece336e7f93023adda6a2fb8b6660389f20/docs/en/enterprise-edition/policy-reference/azure-policies/azure-logging-policies/ensure-storage-logging-is-enabled-for-blob-service-for-read-requests.adoc?plain=1#L52-L53
- There is an extra `{` at the start of the snippet, and an extra `}` after the `",` on https://github.com/hlxsites/prisma-cloud-docs/blob/84b15ece336e7f93023adda6a2fb8b6660389f20/docs/en/enterprise-edition/policy-reference/azure-policies/azure-logging-policies/ensure-storage-logging-is-enabled-for-blob-service-for-read-requests.adoc?plain=1#L96-L97

Contributor guide

Open the contributing guide

Research direction

Start in the linked AsciiDoc file, especially the examples around lines 52-53, 88-93, and 96-97, and read the surrounding policy text to determine the intended Terraform and Azure configuration. Done means the example no longer contains stray or mismatched braces, avoids the self-reference, and clearly expresses the intended fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, terraform
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.