Skip to content

build/bake: support configurable Docker Hub and GCP token lifetimes - #340

Merged
crazy-max merged 1 commit into
docker:mainfrom
crazy-max:registry-token-lifetime
Nov 5, 2026
Merged

crazy-max merged 1 commit into
docker:mainfrom
crazy-max:registry-token-lifetime

Conversation

@crazy-max

Copy link
Copy Markdown
Member

Honor expires_in in Docker Hub and GCP registry identities across build, signing, finalization, and verification authentication steps. Callers can request token lifetimes suited to longer builds, while omitted values preserve the existing one-hour defaults. Docker Hub accepts 300–21600 seconds and GCP accepts 1–43200 seconds, with GCP lifetimes above one hour requiring the appropriate organization policy.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
crazy-max marked this pull request as ready for review November 5, 2026 14:32
@crazy-max
crazy-max requested a review from a team as a code owner November 5, 2026 14:32
@crazy-max
crazy-max merged commit c87fa22 into docker:main Nov 5, 2026
458 of 462 checks passed
@crazy-max
crazy-max deleted the registry-token-lifetime branch November 5, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant