Skip to content
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

Azure: Fetch disk type #1370

Merged
merged 5 commits into from
Oct 2, 2023
Merged

Azure: Fetch disk type #1370

merged 5 commits into from
Oct 2, 2023

Conversation

orestisfl
Copy link
Contributor

Summary of your changes

Needed for CIS Azure 7.4, see elastic/csp-security-policies#311

Related Issues

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary README/documentation (if appropriate)

CIS Azure 7.4
@github-actions
Copy link

github-actions bot commented Sep 29, 2023

📊 Allure Report - 💚 No failures were reported.

Result Count
🟥 Failed 0
🟩 Passed 37
⬜ Skipped 1

@@ -40,8 +40,9 @@ type AzureResource struct {
}

var AzureResourceTypes = map[string]string{
inventory.VirtualMachineAssetType: fetching.AzureVMType,
inventory.DiskAssetType: fetching.AzureDiskType,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually find having two constants and a map harder to read than just having a map with hardcoded strings, since the strings are only used in this map I suggest inlining these constants.

Copy link
Collaborator

@orouz orouz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@orestisfl orestisfl enabled auto-merge (squash) October 2, 2023 07:50
@orestisfl orestisfl merged commit 943b40b into elastic:main Oct 2, 2023
@orestisfl orestisfl deleted the azure-7_4 branch October 2, 2023 09:21
@orestisfl orestisfl linked an issue Oct 3, 2023 that may be closed by this pull request
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CIS Azure] Virtual Machines rules
2 participants