Keyless API authentication- Launching GCP workloads from AWS

Antonio Cachuan
Google Cloud - Community
6 min readSep 10, 2021

--

Running your application only on GCP is not as common as we think, in this era of multi-cloud and on-premise the main challenge developers are facing is finding a secure way of authentication to Google Cloud. For example, we could find:

  • Data saved on AWS or Azure that needs to be consumed by services like Cloud Function or Cloud Run.
  • Data pipelines that need to be triggered by one AWS service like lambda.

A top of mind solution for these cases is “Create a Service Account”

A service account is a special type of Google account intended to represent a non-human user that needs to authenticate and be authorized to access data in Google APIs.

But we face disadvantages with the method because we need to rely on service account keys to access GCP APIs (Yes! a simple file). Now imaging the file could be used by anyone to access your GCP resources.

Workload identity federation was launched this year and is the answer from Google Cloud to reduce the risk.

Workload identity federation is a new keyless application authentication…

--

--

Antonio Cachuan
Google Cloud - Community

Google Cloud Professional Data Engineer (2x GCP). When code meets data, success is assured 🧡. Happy to share code and ideas 💡 linkedin.com/in/antoniocachuan/