buildkite / buildkite/agent

Add config for setting max configurable OIDC token lifetime `buildkite-agent`

Open
#3,793 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.1k
Forks
378
Avg merge
2d 6h
Merged PRs (30d)
74

Description

**Is your feature request related to a problem? Please describe.**
Currently, there is no way to configure the maximum OIDC token lifetime at the agent level. This means teams that require shorter-lived tokens for security compliance must trust client to not set high token lifetime, which may not align with their organization's security policies.

**Describe the solution you'd like**
Allow Buildkite agent allows operators to set the maximum allowable OIDC token lifetime at the agent level. This would let platform teams enforce an upper bound on token lifetimes across all pipelines running on that agent, regardless of what individual pipeline steps request. This also reduces the risk if tokens are leaked that they are bounded to what the agent security settings are.

**Describe alternatives you've considered**
N/A

Contributor guide

Open the contributing guide

Research direction

No files or tests are named in the issue. Start by locating the agent's OIDC token configuration and token-generation entry points, then identify where agent-level settings are defined and tested. Done means operators can set an upper bound that applies to all pipeline requests, with the behavior covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.