You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the past I could run compliance mods, such as the Azure compliance mod and use the where filter to skip checks for services I don't have permission, e.g. ActiveDirectory checks as follows:
This had performed the Azure CIS v1.5.0 benchmark, but without the AzureAD checks (which I have often not permission to do and I also want to avoid the long running guest user queries).
When I try the same with powerpipe in the analog ways, the AzureAD CIS checks are not skipped:
powerpipe benchmark run "azure_compliance.benchmark.cis_v300" \
--where "tags->>'service' != 'Azure/ActiveDirectory'"
powerpipe benchmark run azure_compliance.benchmark.cis_v300 \
--where "tags->>'service' not in ('Azure/EntraID','Azure/ActiveDirectory')"
Steampipe version (steampipe -v): v1.0.3 Steampipe Azure plugin version:
hub.steampipe.io/plugins/turbot/azuread@latest 1.0.0 Powerpipe version (powerpipe -v): v1.2.2 Azure Compliance Mod version (powerpipe mod list): github.com/turbot/steampipe-mod-azure-compliance@v1.2.0
Expected behavior
I expect that all CIS benchmark controls that have the tag service = Azure/ActiveDirectory (see a list of them here), are not executed in the benchmark run with the --where "tags->>'service' != 'Azure/ActiveDirectory'" filter.
Describe the bug
In the past I could run compliance mods, such as the Azure compliance mod and use the
where
filter to skip checks for services I don't have permission, e.g. ActiveDirectory checks as follows:This had performed the Azure CIS v1.5.0 benchmark, but without the AzureAD checks (which I have often not permission to do and I also want to avoid the long running guest user queries).
When I try the same with powerpipe in the analog ways, the AzureAD CIS checks are not skipped:
Steampipe version (
steampipe -v
): v1.0.3Steampipe Azure plugin version:
Powerpipe version (
powerpipe -v
): v1.2.2Azure Compliance Mod version (powerpipe mod list): github.com/turbot/steampipe-mod-azure-compliance@v1.2.0
Expected behavior
I expect that all CIS benchmark controls that have the tag
service = Azure/ActiveDirectory
(see a list of them here), are not executed in the benchmark run with the--where "tags->>'service' != 'Azure/ActiveDirectory'"
filter.Please note, the service tag is correctly set in the newer CIS v3.0.0 benchmark description under https://hub.powerpipe.io/mods/turbot/steampipe-mod-azure-compliance/benchmarks/control.cis_v300_2_11?context=benchmark.cis_v300/benchmark.cis_v300_2#tags could it be that the service tag is somehow not propagated to the control table? If that would be the case, it would be rather an issue of the Mod instead of Powerpipe itself.
Further, this issue seems to be related to the stale-closed issue #492 .
The text was updated successfully, but these errors were encountered: