crashappsec / chalk

Chalk allows you to follow code from development, through builds and into production.
https://crashoverride.com/
GNU General Public License v3.0
322 stars 11 forks source link

feat: add _GCP_PROJECT_METADATA key #311

Closed nettrino closed 1 month ago

nettrino commented 1 month ago

Issue

Additional improvement over https://github.com/crashappsec/chalk/issues/298

Description

Project information is not included in the instance metadata, therefore this exposes a separate key _GCP_PROJECT_METADATA with project info, if one is found

Testing

Deploy a chalked image to GCP and check that project metadata is populated

nettrino commented 1 month ago

Let's add some tests as well

@miki725 we need to mock /etc/resolv.conf not sure what the best way is to go about this? I just modified a file in place to make the test pass but feel free to change as you see fit