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 new table: gcp_instance_metadata #7924

Open
mwarkentin opened this issue Jan 30, 2023 · 0 comments
Open

Add new table: gcp_instance_metadata #7924

mwarkentin opened this issue Jan 30, 2023 · 0 comments
Labels
feature virtual tables wishlist Open feature request not currently being worked on.

Comments

@mwarkentin
Copy link

Feature request

What new feature do you want?

I would like a table for querying instance metadata of my VMs on GCP, similar to how it can be done for:

How is this new feature useful?

Being able to query things like if OS Login is enabled, project ID, zone, service account email, etc. for my instances.

How can this be implemented?

I assume this would be similar to the way it's implemented for other providers.

Docs

Example curl requests to the metadata endpoint when shelled into the VM:

curl "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/scopes" -H "Metadata-Flavor: Google"

curl "http://metadata.google.internal/computeMetadata/v1/project/attributes/?recursive=true&alt=text" \
    -H "Metadata-Flavor: Google"

curl "http://metadata.google.internal/computeMetadata/v1/instance/attributes/?recursive=true&alt=text" \
    -H "Metadata-Flavor: Google"
@mike-myers-tob mike-myers-tob added the wishlist Open feature request not currently being worked on. label May 9, 2023
@mike-myers-tob mike-myers-tob changed the title New table: gcp_instance_metadata Add new table: gcp_instance_metadata May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature virtual tables wishlist Open feature request not currently being worked on.
Projects
None yet
Development

No branches or pull requests

3 participants