cartography
cartography copied to clipboard
feat(gcp): Add initial ingestion for GCP Cloud SQL
Summary
This pull request introduces a new intel module to ingest resources from GCP Cloud SQL. This change adds three new node types and maps their hierarchical, configuration, and security relationships.
-
New Nodes:
:GCPSqlInstance:GCPSqlDatabase:GCPSqlUser
-
New Relationships:
(GCPProject)-[:RESOURCE]->(GCPSqlInstance)(GCPSqlInstance)-[:ASSOCIATED_WITH]->(GCPVpc)(GCPSqlInstance)-[:USES_SERVICE_ACCOUNT]->(GCPServiceAccount)(GCPProject)-[:RESOURCE]->(GCPSqlDatabase)(GCPSqlInstance)-[:CONTAINS]->(GCPSqlDatabase)(GCPProject)-[:RESOURCE]->(GCPSqlUser)(GCPSqlInstance)-[:HAS_USER]->(GCPSqlUser)
Related issues or links
- Addresses part of #1736
Checklist
-
[x] Update/add unit or integration tests.
-
[x] Include a screenshot showing what the graph looked like before and after your changes.
-
[x] Include console log trace showing what happened before and after your changes.
-
[x] Use the NodeSchema data model.
-
[x] Confirm that the linter actually passes.