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

Some queries return null region values instead of the region value in the Steampipe table. #847

Open
JeffreyFudge opened this issue Dec 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@JeffreyFudge
Copy link

Describe the bug
Some queries return a null in the region column, despite the fact that the AWS API (and thus the Steampipe table) have the value of "global".

This seems to be caused by the fact that some queries utilize "local.common_dimensions_qualifier_sql", which does not include region, and others utilize "common_dimensions_qualifier_global_sql", which includes region. These locals are out of variables.pp).

Query "iam_policy_custom_no_assume_role" is an example that does not leverage the global_sql and thus does not return a region.

As a result, findings can have an AWS region name, "global", or a null. It would seem that the region value in the API/table should always be returned and never set to null via omission.

Powerpipe version (powerpipe -v)
Example: v1.0.1

Steampipe version (steampipe -v)
Example: v1.0.1

Plugin version (steampipe plugin list)
Example: v1.2.0

To reproduce
Run the AWS Foundational Security Best Practices dashboard in Powerpipe and download the CSV file. Null values will be observed in the region column.

Expected behavior
I would expect to see the region value that is contained in the Steampipe table, and not a null.

@JeffreyFudge JeffreyFudge added the bug Something isn't working label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant