cartography
cartography copied to clipboard
feat(azure): Add shared tag support to Network, Security Center, Reso…
Summary
This pull request continues the expansion of the shared Azure Tag ingestion pattern, adding support for four key services: Network, Security Center, Resource Groups, and SQL.
It also standardizes error handling in these modules (fail loudly on auth errors, handle transient errors gracefully) and removes sensitive logging.
- New Relationships:
(AzureVirtualNetwork)-[:TAGGED]->(AzureTag)(AzureNetworkSecurityGroup)-[:TAGGED]->(AzureTag)(AzureSecurityAssessment)-[:TAGGED]->(AzureTag)(AzureResourceGroup)-[:TAGGED]->(AzureTag)(AzureSQLServer)-[:TAGGED]->(AzureTag)
Description
- Network: Updated
network.pyto ingest tags for Virtual Networks and Network Security Groups. - Security Center: Updated
security_center.pyto ingest tags for Security Assessments. - Resource Groups: Updated
resource_groups.pyto ingest tags for Resource Groups. - SQL: Updated
sql.pyto ingest tags for SQL Servers. - Testing: Added integration tests and updated mock data for all four services to verify tag ingestion and relationship creation.
Related issues or links
- Addresses part of #1736
Checklist
- [x] Update/add unit or integration tests.
- [ ] Include a screenshot showing what the graph looked like before and after your changes.
- [ ] Include console log trace showing what happened before and after your changes.
- [x] Update the schema and readme.
- [x] Use the NodeSchema data model.
- [x] Confirm that the linter actually passes.