grafeas / voucher

🎟 Voucher creates attestations for Binary Authorization
Apache License 2.0
73 stars 20 forks source link

Add support of auth using ADC #51

Closed rxbchen closed 2 years ago

rxbchen commented 2 years ago

CloudBuild has some issues retrieving id_tokens from the metadata server resulting in the following error:

creating client failed: metadata: GCE metadata "instance/service-accounts/default/identity?audience=[someurl]" not defined

This pr aims to make auth using application-default-credentials possible, since it is exposed by GCB