fleet
fleet copied to clipboard
Support ability to query GCP metadata in Fleet
Problem
As a Fleet user, I'd like to build queries that can return information about GCP instance metadata like I'm able to do with my Azure and E2 instances today.
There is an open issue at osquery to add support for a gcp_instance_metadata table, but there has not been any activity on it in over a year.
Potential solutions
- Add
gcp_instance_metadatatable to Fleet data tables so GCP instance metadata can be queried the same as Azure and E2 instances can be today. - The Github issue suggests metadata for a GCP instance can be collected with a
curlcommand which means it could potentially be scripted. This solution is not ideal as data could not be obtained in the same way as Azure or EC2. Additionally, thecurlosquery table cannot be used as a workaround since GCP requiresMetadata-Flavor: Googleas a header and thecurltable does not support headers.
Hey @ddribeiro thanks for tracking this one.
The plan is to weigh it at the next feature fest on 2024-06-20.
Hi, I'm the one who opened that upstream issue, and we are also FleetDM customers, so consider it a +1 from us too.