-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(misconf): Update Azure Database schema #9811
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
Conversation
Signed-off-by: nikpivkin <[email protected]>
Signed-off-by: nikpivkin <[email protected]>
|
Hi @yagreut! I moved the code related to CosmosDB to a separate |
|
You are adding parsing for new fields in |
Co-authored-by: Nikita Pivkin <[email protected]>
I created an issue to track it. |
@nikpivkin @yagreut Maybe I'm not following, if the services are deprecated why are we adding checks for them? IIUC, the issue you made is to move the parsing to use flexible fields, why not just add them from the start rather than add deprecated services? |
| threatDetectionEnabled := properties.GetMapValue("threatDetectionPolicy").GetMapValue("state") | ||
|
|
||
| if threatDetectionEnabled.Kind == azure.KindNull { | ||
| // Try alternative property paths | ||
| threatDetectionEnabled = properties.GetMapValue("securityAlertPolicy").GetMapValue("state") | ||
| } |
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.
I did not find these properties in the resource Microsoft.DBforPostgreSQL/servers. If I'm not mistaken, the security policy is configured via Microsoft.DBforPostgreSQL/servers/securityAlertPolicies, but so far we can't search for related resources for ARM.
Signed-off-by: nikpivkin <[email protected]>
Signed-off-by: nikpivkin <[email protected]>
Signed-off-by: nikpivkin <[email protected]>
Signed-off-by: nikpivkin <[email protected]>
|
@nikpivkin is this ready to be merged or are there still pending changes that we need to do? |
|
@simar7 I forgot to submit the review :) |
Update Azure Database schema for new checks
Checklist