google-github-actions / google-github-actions/auth

Token lifetime for longer running jobs when using Direct Workload Identity Federation

Open
#505 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.4k
Forks
304
PR merge metrics
No merged PRs in 30d

Description

Hello,

I am trying to setup some CI jobs that will run Terraform commands with Terraform configured to use a Google Cloud Storage bucket (docs) to store its state and do its locking.

Due to the nature of Terraform operations, a 10 (or 5[^1]) minutes TTL for the authentication token feels short. I don't see how this TTL can be raised. What's my next best option?

Documents I have been through:

[^1]: This is still unclear to me tbh: if I understand correctly it's 5 minutes when using Workload Identity Federation through a Service Account and 10 minutes when using Direct Workload Identity Federation.
[^2]: This comment in particular.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing README.md, docs/SECURITY_CONSIDERATIONS.md, docs/EXAMPLES.md, and the linked discussions in issues #474 and #432. The issue currently asks for guidance on token lifetimes and alternatives for long-running Terraform jobs rather than naming a scoped code or documentation change; a maintainer decision would be needed before defining what done means.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, google-cloud, terraform, typescript
Domain
authentication, ci-cd, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.