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

Add common and tag dimensions across compliance queries closes #33 #34

Merged
merged 5 commits into from
May 16, 2023

Conversation

khushboo9024
Copy link
Contributor

Checklist

  • Issue(s) linked

@rajlearner17
Copy link
Contributor

@khushboo9024 can you pls check this
image

Copy link
Contributor

@rajlearner17 rajlearner17 left a comment

Choose a reason for hiding this comment

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

LGTM after minor changes and testing dashboard & check-all outcome

Copy link
Contributor

@misraved misraved left a comment

Choose a reason for hiding this comment

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

@khushboo9024 please take a look at the review comments. Thanks!!

Comment on lines +22 to +25
description = "A list of tags to add as dimensions to each control."
# A list of tag names to include as dimensions for resources that support
# tags (e.g. "Owner", "Environment"). Default to empty since tag names are
# a personal choice - for commonly used tag names see
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
description = "A list of tags to add as dimensions to each control."
# A list of tag names to include as dimensions for resources that support
# tags (e.g. "Owner", "Environment"). Default to empty since tag names are
# a personal choice - for commonly used tag names see
description = "A list of tags to add as dimensions to each control."
# A list of tag names to include as dimensions for resources that support
# tags (e.g. "Owner", "Environment"). Default to empty since tag names are
# a personal choice.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we could add https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/ as a document reference for commonly used tags.

mod.sp Outdated
common_dimensions_namespace_sql = replace(local.common_dimensions_qualifier_namespace_sql, "__QUALIFIER__", "")
common_dimensions_non_namespace_sql = replace(local.common_dimensions_non_namespace_qualifier_sql, "__QUALIFIER__", "")
tag_dimensions_sql = replace(local.tag_dimensions_qualifier_sql, "__QUALIFIER__", "")

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

```

```shell
steampipe check benchmark.cis_kube_v120 --var 'tag_dimensions=["Environment", "Owner"]'
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of Environment and Owner, could we add different tag examples in the doc files?

@karanpopat
Copy link
Contributor

Tested the control.pod_default_seccomp_profile_enabled after labelling the pod csi-azuredisk-node-hmb65 with Environment=test
Got proper results

image

@rajlearner17 rajlearner17 merged commit 34139ec into release/v0.9 May 16, 2023
@rajlearner17 rajlearner17 deleted the common-tag-dimension branch May 16, 2023 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants