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

Add analysis info for GCP creds #3727

Merged
merged 2 commits into from
Dec 5, 2024
Merged

Add analysis info for GCP creds #3727

merged 2 commits into from
Dec 5, 2024

Conversation

bill-rich
Copy link
Collaborator

Description:

Explain the purpose of the PR.

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@bill-rich bill-rich requested a review from a team as a code owner December 3, 2024 21:43
@@ -113,6 +113,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
"rotation_guide": "https://howtorotate.com/docs/tutorials/gcp/",
"project": creds.ProjectID,
},
AnalysisInfo: map[string]string{"user": creds.ClientEmail},
Copy link
Contributor

Choose a reason for hiding this comment

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

Usually this would be a service account. Maybe we should stick with gcp terminology and call it principal?

https://cloud.google.com/iam/docs/principal-identifiers

Also, what is this field for in the detector result?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good call. There is a type usually in the full key file. I'll add that if it exists. Otherwise the plan was to check both.

@bill-rich bill-rich merged commit 4cd055f into main Dec 5, 2024
13 checks passed
@bill-rich bill-rich deleted the gcp_analysis_info branch December 5, 2024 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants