mondoohq / cnquery

open source, cloud-native, graph-based asset inventory
https://cnquery.io
Other
320 stars 21 forks source link

Azure NAT Gateway etag field not properly parsing #4092

Open tas50 opened 5 months ago

tas50 commented 5 months ago

Describe the bug This field includes extra characters

To Reproduce

azure.subscription.network.natGateways.first: {
  name: "nat"
  publicIpAddresses: [
    0: azure.subscription.networkService.ipAddress name="nat_IP" location="westus" ipAddress="137.117.23.24"
  ]
  tags: {}
  zones: []
  subnets: []
  etag: "W/\"9e245ca8-c472-49bb-bb7f-79017c0c16c0\""
  properties: {
preslavgerchev commented 5 months ago

According to https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag this is a indicator that it's using a weak validator. This value is as it's coming back from the Azure API (and how it's shown in the portal as well)

If it makes sense, we can drop the weak validator indication?