Skip to content

fix(sdk/go): re-read edge token on every request - #4914

Open
ericcurtin wants to merge 1 commit into
NVIDIA:mainfrom
ericcurtin:fix/4515-go-edge-token-reload/ericcurtin
Open

ericcurtin wants to merge 1 commit into
NVIDIA:mainfrom
ericcurtin:fix/4515-go-edge-token-reload/ericcurtin

Conversation

@ericcurtin

Copy link
Copy Markdown
Contributor

Summary

Re-read edge_token on every request so a rewritten token is used without a restart.

Related Issue

Closes #4515

Changes

  • Drop the caching edgeTokenLoader; lazyEdgeAuth reads the file per call, like the OIDC path.
  • Replace the cache tests with reload tests.

Testing

  • Checks appropriate to the affected code and behavior pass
  • Unit tests added/updated (if applicable)
  • E2E tests added/updated (if applicable)

Ran go test ./... and golangci-lint run in sdk/go.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Closes NVIDIA#4515

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
@copy-pr-bot

copy-pr-bot Bot commented Oct 25, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@TaylorMutch @SDAChess could you please triage #4515 so the issue check can pass? PTAL, and /ok to test 93dfbf112e6e07d2c522f645b14e781348e846a5 if it looks good. Thank you!

This branch has not been deployed

No deployments
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.

bug(sdk/go): edge (Cloudflare Access) token is cached for the client lifetime and never reloaded

1 participant