-
Notifications
You must be signed in to change notification settings - Fork 42
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
[Asset Inventory][Azure] Add missing resources and ECS fields required for GA #2954
Conversation
This pull request does not have a backport label. Could you fix it @kubasobon? 🙏
|
This pull request is now in conflicts. Could you fix it? 🙏
|
As for coveralls, it fails on internal/resources/providers/msgraph/provider.go, which I tried wrapping in unit tests, but I gave up on it since the upstream SDK is auto-generated and does not lend itself to testing. |
This pull request is now in conflicts. Could you fix it? 🙏
|
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
see comment on WithLabels
, also note i merged my PR which includes that enricher
…d for GA (#2954) * add Azure RoleDefinition * add Azure Entra Groups * add Azure Entra Users * update Azure Service Principal category * fix missing tenant info in Azure * add ECS to Roles * add ECS Group fields to Asset definition * start filling Azure ECS * add missing Blob Containers and fetch Labels/Tags where possible * fix existing unit tests for Azure Inventory * reclassify Blob Container Service * extract VM properties * fix expected value * align principal with cloud assets sheet * make linters happier * update all missing ECS fields * fix test cases * make test cases race-condition-proof * remove redundant todo * add helper func test * extend test case * make linter happy * skip asset.go in coverage * cover resource-graph file * add test for BlobContainers * update ASSETS.md * use mapstructure.Decode * unpack properties to struct and test it * fixes for linters * gci (cherry picked from commit da397ba) # Conflicts: # internal/inventory/ASSETS.md # internal/inventory/asset.go # internal/inventory/azurefetcher/fetcher_storage_test.go # internal/inventory/cloud_assets.xlsx
…d for GA (#2954) * add Azure RoleDefinition * add Azure Entra Groups * add Azure Entra Users * update Azure Service Principal category * fix missing tenant info in Azure * add ECS to Roles * add ECS Group fields to Asset definition * start filling Azure ECS * add missing Blob Containers and fetch Labels/Tags where possible * fix existing unit tests for Azure Inventory * reclassify Blob Container Service * extract VM properties * fix expected value * align principal with cloud assets sheet * make linters happier * update all missing ECS fields * fix test cases * make test cases race-condition-proof * remove redundant todo * add helper func test * extend test case * make linter happy * skip asset.go in coverage * cover resource-graph file * add test for BlobContainers * update ASSETS.md * use mapstructure.Decode * unpack properties to struct and test it * fixes for linters * gci (cherry picked from commit da397ba) # Conflicts: # internal/inventory/asset.go
…d for GA (#2954) * add Azure RoleDefinition * add Azure Entra Groups * add Azure Entra Users * update Azure Service Principal category * fix missing tenant info in Azure * add ECS to Roles * add ECS Group fields to Asset definition * start filling Azure ECS * add missing Blob Containers and fetch Labels/Tags where possible * fix existing unit tests for Azure Inventory * reclassify Blob Container Service * extract VM properties * fix expected value * align principal with cloud assets sheet * make linters happier * update all missing ECS fields * fix test cases * make test cases race-condition-proof * remove redundant todo * add helper func test * extend test case * make linter happy * skip asset.go in coverage * cover resource-graph file * add test for BlobContainers * update ASSETS.md * use mapstructure.Decode * unpack properties to struct and test it * fixes for linters * gci (cherry picked from commit da397ba)
…and ECS fields required for GA (#3057) * [Asset Inventory][Azure] Add missing resources and ECS fields required for GA (#2954) * add Azure RoleDefinition * add Azure Entra Groups * add Azure Entra Users * update Azure Service Principal category * fix missing tenant info in Azure * add ECS to Roles * add ECS Group fields to Asset definition * start filling Azure ECS * add missing Blob Containers and fetch Labels/Tags where possible * fix existing unit tests for Azure Inventory * reclassify Blob Container Service * extract VM properties * fix expected value * align principal with cloud assets sheet * make linters happier * update all missing ECS fields * fix test cases * make test cases race-condition-proof * remove redundant todo * add helper func test * extend test case * make linter happy * skip asset.go in coverage * cover resource-graph file * add test for BlobContainers * update ASSETS.md * use mapstructure.Decode * unpack properties to struct and test it * fixes for linters * gci (cherry picked from commit da397ba) * fix inconsistencies --------- Co-authored-by: Kuba Soboń <wtty.fool@gmail.com>
…d for GA (#2954) * add Azure RoleDefinition * add Azure Entra Groups * add Azure Entra Users * update Azure Service Principal category * fix missing tenant info in Azure * add ECS to Roles * add ECS Group fields to Asset definition * start filling Azure ECS * add missing Blob Containers and fetch Labels/Tags where possible * fix existing unit tests for Azure Inventory * reclassify Blob Container Service * extract VM properties * fix expected value * align principal with cloud assets sheet * make linters happier * update all missing ECS fields * fix test cases * make test cases race-condition-proof * remove redundant todo * add helper func test * extend test case * make linter happy * skip asset.go in coverage * cover resource-graph file * add test for BlobContainers * update ASSETS.md * use mapstructure.Decode * unpack properties to struct and test it * fixes for linters * gci
…and ECS fields required for GA (#3011) [Asset Inventory][Azure] Add missing resources and ECS fields required for GA (#2954) * add Azure RoleDefinition * add Azure Entra Groups * add Azure Entra Users * update Azure Service Principal category * fix missing tenant info in Azure * add ECS to Roles * add ECS Group fields to Asset definition * start filling Azure ECS * add missing Blob Containers and fetch Labels/Tags where possible * fix existing unit tests for Azure Inventory * reclassify Blob Container Service * extract VM properties * fix expected value * align principal with cloud assets sheet * make linters happier * update all missing ECS fields * fix test cases * make test cases race-condition-proof * remove redundant todo * add helper func test * extend test case * make linter happy * skip asset.go in coverage * cover resource-graph file * add test for BlobContainers * update ASSETS.md * use mapstructure.Decode * unpack properties to struct and test it * fixes for linters * gci Co-authored-by: Kuba Soboń <wtty.fool@gmail.com>
Summary of your changes
This PR:
Role
andPrincipal
where it is impossible to test right nowOutstanding issues⚠️
The PR does not address all taxonomy issues and skips filling ECS fields for Role and Principal. A follow-up ticket will be created.
Related Issues
Closes https://github.com/elastic/security-team/issues/11690
Checklist