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

Feat: Added Support for CloudTrace Resource #307

Closed

Conversation

aryanagrawal22
Copy link
Contributor

@aryanagrawal22 aryanagrawal22 commented Dec 10, 2023

Description

Issue #247 Added support for CloudTrace resource

Changes Made

  • Created client factory for CloudTrace resource : cloud_trace_client.py
  • Created a new crawler factory in the crawler package : cloud_trace_crawler.py
  • Also modified example.config
  • In the scanner.py file, included the crawler in the crawl loop and updated the crawl_client_map.
  • Added unit tests in test_unit.py
  • Left a blank cloud_traces file for test output check

Testing

Tested the resource locally. Ran Successfully.

@aryanagrawal22 aryanagrawal22 changed the title Added Support for CloudTrace Resource Feat: Added Support for CloudTrace Resource Dec 11, 2023
@@ -0,0 +1 @@
[]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Before diving into the review. Could you please provide an example output here for testing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I have added tests and made a minor change to an error. Please let me know any further changes.

#!/bin/bash

# Enable the CloudTrace API
gcloud services enable cloudtrace.googleapis.com
Copy link
Collaborator

Choose a reason for hiding this comment

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

Well, it is not enough to generate a good test, right? You need to create this trace too to have it in the output of the tool. Could you provide an example on how to do it via bash?

@@ -55,6 +55,9 @@
"cloud_functions": {
"fetch": true
},
"cloud_traces":{
Copy link
Collaborator

Choose a reason for hiding this comment

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

NIT: missing space

@mshudrak
Copy link
Collaborator

mshudrak commented Jul 9, 2024

Closing this one due to inactivity.

@mshudrak mshudrak closed this Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants