cartography icon indicating copy to clipboard operation
cartography copied to clipboard

feat(gcp): Add ingestion for GCP Cloud Run

Open janithashri opened this issue 2 months ago • 1 comments

Summary

This pull request introduces a new intel module to ingest resources from GCP Cloud Run. This change adds five new node types and maps their hierarchical, internal, and security relationships.

  • New Nodes:

    • :GCPCloudRunService
    • :GCPCloudRunRevision
    • :GCPCloudRunJob
    • :GCPCloudRunExecution
    • :GCPCloudRunDomainMapping
  • New Relationships:

    • (GCPProject)-[:RESOURCE]->(:GCPCloudRunService) (and all 4 other child nodes)
    • (GCPCloudRunService)-[:HAS_REVISION]->(:GCPCloudRunRevision)
    • (GCPCloudRunJob)-[:HAS_EXECUTION]->(:GCPCloudRunExecution)
    • (GCPCloudRunDomainMapping)-[:POINTS_TO_SERVICE]->(:GCPCloudRunService)
    • (GCPCloudRunRevision)-[:USES_IMAGE]->(:GCPGCRImage)
    • (GCPCloudRunJob)-[:USES_IMAGE]->(:GCPGCRImage)
    • (GCPCloudRunRevision)-[:USES_SERVICE_ACCOUNT]->(:GCPServiceAccount)
    • (GCPCloudRunJob)-[:USES_SERVICE_ACCOUNT]->(:GCPServiceAccount)

(Note: IAM relationships CAN_INVOKE and CAN_RUN are planned for a follow-up PR.)

Related issues or links

Checklist

  • [x] Update/add unit or integration tests.

  • [x] Include a screenshot showing what the graph looked like before and after your changes. Screenshot 2025-10-26 210040

  • [x] Include console log trace showing what happened before and after your changes. Screenshot 2025-10-27 114009

  • [x] Update the schema and readme.

  • [x] Use the NodeSchema data model.

  • [x] Confirm that the linter actually passes.

janithashri avatar Oct 27 '25 17:10 janithashri

@janithashri this is good to go but if you can resolve the conflicts on your branch so that this can be merged that would be great

shyammukund avatar Nov 10 '25 21:11 shyammukund