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 missing fields gcp audit logs #10886

Merged
merged 8 commits into from
Sep 16, 2024

Conversation

haetamoudi
Copy link
Contributor

@haetamoudi haetamoudi commented Aug 26, 2024

Proposed commit message

Add policy_violation_info, metadata and related fields to GCP audit logs.

Changes

  • Add policy_violation_info, metadata and related fields to audit logs.
  • Add more audit logs for testing
  • Update GCP audit log dashboard to use correct email field

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Author's Checklist

  • Sample logs do not contain sensitive data
  • Change in dashboard query won't break the visualization

How to test this PR locally

Follow the public documentation to ingest GCP Audit logs https://www.elastic.co/docs/current/integrations/gcp

@haetamoudi haetamoudi added the enhancement New feature or request label Aug 26, 2024
@andrewkroh andrewkroh added the Integration:gcp Google Cloud Platform label Aug 26, 2024
@haetamoudi haetamoudi mentioned this pull request Aug 26, 2024
8 tasks
@haetamoudi haetamoudi marked this pull request as ready for review August 26, 2024 15:34
@haetamoudi haetamoudi requested review from a team as code owners August 26, 2024 15:34
@andrewkroh andrewkroh added the Team:Security-Service Integrations Security Service Integrations Team [elastic/security-service-integrations] label Aug 26, 2024
@elasticmachine
Copy link

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

@elasticmachine
Copy link

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@ebeahan
Copy link
Member

ebeahan commented Sep 5, 2024

@efd6 @ShourieG would one of you be able to review the changes to the audit data stream for @haetamoudi here?

@kgeller we can't give it a ✅ since we're not codeowners but will you look over too for any feedback?

EDIT: also the coverage failure can be ignored. @haetamoudi actually looking at some improvements in elastic/elastic-package#2063.

Copy link
Contributor

@kgeller kgeller left a comment

Choose a reason for hiding this comment

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

Overall looks great! Just a couple of suggestions 😄

haetamoudi and others added 6 commits September 6, 2024 09:19
Co-authored-by: Dan Kortschak <dan.kortschak@elastic.co>
Co-authored-by: Dan Kortschak <dan.kortschak@elastic.co>
…efault.yml

Co-authored-by: Dan Kortschak <dan.kortschak@elastic.co>
…efault.yml

Co-authored-by: Dan Kortschak <dan.kortschak@elastic.co>
@elasticmachine
Copy link

💚 Build Succeeded

History

Copy link

Quality Gate failed Quality Gate failed

Failed conditions
75.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube

@haetamoudi
Copy link
Contributor Author

@efd6 I addressed the changes from the comments, let me know if anything if missing to get approval

@haetamoudi haetamoudi merged commit 8130976 into elastic:main Sep 16, 2024
4 of 5 checks passed
@haetamoudi haetamoudi deleted the enhance-gcp-audit-integration branch September 16, 2024 08:40
@elasticmachine
Copy link

Package gcp - 2.38.0 containing this change is available at https://epr.elastic.co/search?package=gcp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Integration:gcp Google Cloud Platform Team:Security-Service Integrations Security Service Integrations Team [elastic/security-service-integrations]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants