Closed digitalbartimaeus closed 1 year ago
Welcome to Steampipe @digitalbartimaeus and thanks for raising this issue including all the details 👍.
Great catch indeed 👍
Relevant slack thread - https://steampipe.slack.com/archives/C01UECB59A7/p1677062449090679
@digitalbartimaeus Thanks for the reported issue; we have a fix available in this PR. Can you give it a try and share your feedback? You have to checkout the branch and run the dashboard. Thanks again!
Describe the bug For some NSG, the dashboard does not reflect the configured NSG rules. The underlying query is not working as expected. The concatenation section like
jsonb_array_elements_text(sg -> 'properties' -> 'destinationPortRanges' || (sg -> 'properties' -> 'destinationPortRange') :: jsonb) dport
is causing an additional entry owing to which we are getting an empty Destination Port Range.Steampipe version v0.18.6
Plugin version v0.37.0
To reproduce Query on NSG:
provides following test output:
Expected behavior Listing only configured NSG rules:
Additional context Removing the concatenation should helps to remove the duplicate line, but also removes the default NSG rules:
resulting in