Repository navigation
feat(client/cli): refresh OIDC token on the fly - #2026
Conversation
Signed-off-by: Tibor Kircsi <[email protected]>
There was a problem hiding this comment.
Pull request overview
Adds renewable OIDC authentication for long-running dirctl operations.
Changes:
- Resolves bearer tokens per RPC and refreshes cached tokens.
- Adds GitHub Actions token minting and OIDC audience configuration.
- Updates import workflows and documentation.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
client/oidc_grpc.go |
Adds lazy, renewable token sources. |
client/oidc_grpc_test.go |
Tests per-request and cached-token refresh. |
client/oidc_github.go |
Implements GitHub Actions token minting. |
client/oidc_github_test.go |
Tests minting, renewal, and error handling. |
client/config.go |
Adds client audience configuration. |
client/config/config.go |
Propagates audience through configuration layers. |
cli/config/config.go |
Maps the audience CLI override. |
cli/cmd/options.go |
Adds the --oidc-audience flag. |
cli/cmd/context/show.go |
Displays the resolved audience. |
.github/workflows/import-records.yaml |
Switches imports to renewable tokens. |
docs/content/dir/dir-component-oidc-authentication.md |
Documents GitHub Actions renewal. |
docs/content/dir/dir-cli-reference.md |
Documents renewable-token usage. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…oidc Signed-off-by: Tibor Kircsi <[email protected]>
|
Can this refresh flow be generalized to other OIDC providers than GitHub as well? I would prefer avoiding GitHub Actions specific code |
|
The refresh flow already is generic. What's GitHub-specific isn't refreshing a token, it's obtaining one in the first place, and that part has no cross-provider standard to generalize to. The renewal mechanism in this PR is
|
Signed-off-by: Tibor Kircsi <[email protected]>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Closes #2022