ScaleSec / gcp-workload-identity-federation

Pypi module to enable workload identity federation from AWS to GCP without the need for static credentials.
26 stars 7 forks source link

Add GCP SDK steps to code example #6

Closed jdyke closed 3 years ago

jdyke commented 3 years ago

In this section https://github.com/ScaleSec/gcp-workload-identity-federation#using-the-module we provide a code snippet of how to retrieve the SA access token. It would be beneficial for those unfamiliar with python to also include code to list a bucket or copy an object with the retrieved token.

jdyke commented 3 years ago

We can include an example using the requests library, GCP SDK, curl -H from the cli, etc.

We can provide these via an examples/ folder and call that out on the readme.