-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add support to query identity settings in App Service > Web App. closes #54 #90
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -88,6 +88,24 @@ func tableAzureAppServiceWebApp(_ context.Context) *plugin.Table { | |||
Type: proto.ColumnType_BOOL, | |||
Transform: transform.FromField("SiteProperties.HTTPSOnly"), | |||
}, | |||
{ | |||
Name: "identity_type", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Paulami30 Since there aren't that many fields here, and identity information is easy to find, would this work if we just had an identity
column with the JSON type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we fetch the whole identity column, we do not get the data. That is why I had to fetch the keys from the object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Paulami30 Similar to how we handle the response data format in the azure_firewall
table, could we handle it similar to https://github.com/turbot/steampipe-plugin-azure/blob/main/azure/table_azure_firewall.go#L247 and condense the data into an identity
column?
Integration test logsLogs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
New Query ExampleList web apps that have managed service identity set to disabledselect
name,
enabled,
region,
identity
from
azure_app_service_web_app
where
identity = '{}';
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Integration test logs
Logs