actions / actions/toolkit

Request for an OIDC token with expiry of > 5 mins

Open
#2,048 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Describe the enhancement
Currently the OIDC token retrieved from getIDToken has an expiry of 5 mins. This is generally insufficient for some jobs that we want to run, in particular Docker building jobs when used a mechanism for Workload Identity Federation for the purposes of Docker authentication.

Can we specify how long the expiry of the token is? Getting at least 10 minutes would be ideal for our use case.

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 locating the getIDToken entry point in the TypeScript toolkit and trace how its fixed expiry is obtained. Clarify the supported expiry contract for OIDC and the Docker Workload Identity Federation use case; done means callers can request an expiry longer than five minutes.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, typescript
Domain
authentication, cloud, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.