supraj.dev
Google Cloud

Service Account Impersonation

How can I use a service account’s access without downloading its risky key file?

28 s loop7 sentencesSilent, read alongScene: Journey
Read the story, sentence by sentence 7 sentences

What you'll be able to say

  1. Service account impersonation lets a person act as a service account for a short time without creating or downloading a service account key.
  2. To impersonate a service account you need the iam.serviceAccounts.getAccessToken permission, which is in roles like Service Account Token Creator.
  3. Impersonation access tokens expire after one hour by default, while a downloaded service account key never expires by default.