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

Do not collect Google Cloud metadata #15806

Merged
merged 2 commits into from
Jan 24, 2020

Conversation

exekias
Copy link
Contributor

@exekias exekias commented Jan 24, 2020

What does this PR do?

Compute instances metadata may contain sensitive info, so we should not
collect them.

In the future we can enable this again with some kind of whitelisting,
to only report the metadata we want.

Why is it important?

We should avoid collecting sensitive info

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
    - [ ] I have added tests that prove my fix is effective or that my feature works

How to test this PR locally

Configure Metricbeat against a GCloud project that has Compute VMs with metadata, check that we are not collecting it.

Related issues

Compute instances metadata may contain sensitive info, so we should not
collect them.

In the future we can enable this again with some kind of whitelisting,
to only report the metadata we want.
@exekias exekias requested a review from a team as a code owner January 24, 2020 09:47
@exekias exekias requested a review from kaiyan-sheng January 24, 2020 09:47
@exekias exekias added bug needs_backport PR is waiting to be backported to other branches. review labels Jan 24, 2020
@exekias exekias requested a review from sayden January 24, 2020 09:48
Copy link
Contributor

@sayden sayden left a comment

Choose a reason for hiding this comment

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

LGTM. I'm not sure if this needs a Changelog entry.

@andresrc
Copy link
Contributor

LGTM. I'm not sure if this needs a Changelog entry.

I don't think so, the previous change has not shipped yet.

@exekias exekias merged commit 7296437 into elastic:master Jan 24, 2020
exekias pushed a commit to exekias/beats that referenced this pull request Jan 24, 2020
* Do not collect Google Cloud metadata

Compute instances metadata may contain sensitive info, so we should not
collect them.

In the future we can enable this again with some kind of whitelisting,
to only report the metadata we want.

* Update docs

(cherry picked from commit 7296437)
@exekias exekias added v7.6.0 and removed needs_backport PR is waiting to be backported to other branches. labels Jan 24, 2020
exekias pushed a commit to exekias/beats that referenced this pull request Jan 24, 2020
* Do not collect Google Cloud metadata

Compute instances metadata may contain sensitive info, so we should not
collect them.

In the future we can enable this again with some kind of whitelisting,
to only report the metadata we want.

* Update docs

(cherry picked from commit 7296437)
@exekias exekias added the v7.7.0 label Jan 24, 2020
exekias pushed a commit that referenced this pull request Jan 25, 2020
* Do not collect Google Cloud metadata

Compute instances metadata may contain sensitive info, so we should not
collect them.

In the future we can enable this again with some kind of whitelisting,
to only report the metadata we want.

* Update docs

(cherry picked from commit 7296437)
exekias pushed a commit that referenced this pull request Jan 27, 2020
* Do not collect Google Cloud metadata

Compute instances metadata may contain sensitive info, so we should not
collect them.

In the future we can enable this again with some kind of whitelisting,
to only report the metadata we want.

* Update docs

(cherry picked from commit 7296437)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Metricbeat] googlecloud module has potential sensitive data in labels.metadata
4 participants