turbot / steampipe-plugin-azure

Use SQL to instantly query Azure resources across regions and subscriptions. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/turbot/azure
Apache License 2.0
37 stars 17 forks source link

azure_mysql_flexible_server query always returns public_network_access as "enabled" even if db does not have public access. #819

Closed ManojDhanorkar closed 4 weeks ago

ManojDhanorkar commented 1 month ago

Below azure_mysql_flexible_server query always returns public_network_access as "enabled" even if db does not have public access.

select name, id, public_network_access from azure_mysql_flexible_server

Steampipe v0.22.1

Azure 0.64.0

ParthaI commented 1 month ago

Hi @ManojDhanorkar, Sorry to see that you are encountering the error.

I have raised an issue on the Azure Go SDK repository to address this response. You can track the issue here.

We will revisit this matter once it is resolved on the Azure Go SDK side.

Thanks!

ManojDhanorkar commented 1 month ago

I suspect this problem may be there in mysql standalone , postgres standalone and postgres flexible. Will this new PR fix it across all of them ?

ManojDhanorkar commented 1 month ago

when this would get merged ?

ManojDhanorkar commented 1 month ago

which query should be used on azure_postgresql_flexible_server to know if server has public access enabled. I searched a lot but could not find one.

ParthaI commented 1 month ago

Hi @ManojDhanorkar, in the azure_mysql_flexible_server table, there is a column named public_network_access with possible values of Disabled or Enabled. This allows you to determine whether the server has public access enabled.

I have added the example queries in the PR body. Did you get a chance to have a look?

ManojDhanorkar commented 1 month ago

for azure_postgresql_flexible_server ( postgress ) should I raise new issue ? I am looking for similar column in postgres. Any pointers around that.

ManojDhanorkar commented 1 month ago

On the mysql PR some checks are failing . https://github.com/turbot/steampipe-plugin-azure/pull/820

ParthaI commented 1 month ago

for azure_postgresql_flexible_server ( postgress ) should I raise new issue ? I am looking for similar column in postgres. Any pointers around that.

Yes, please raise a separate issue.

On the mysql PR some checks are failing . https://github.com/turbot/steampipe-plugin-azure/pull/820

It is not due to the code changes in that PR. It is due to the use of a few deprecated Azure Go packages. We will be working on it.

ManojDhanorkar commented 1 month ago

thanks

ManojDhanorkar commented 1 month ago

When is the next release planned where we can expect the changes to be included ?

ManojDhanorkar commented 4 weeks ago

will this be available in https://github.com/turbot/steampipe-plugin-azure/releases/tag/v0.65.0 ?