Skip to content

feat(oidc-provider): make OidcCredentialProvider cheaply cloneable (shareable warm cache)#69

Open
alukach wants to merge 1 commit into
mainfrom
feat/shareable-credential-cache
Open

feat(oidc-provider): make OidcCredentialProvider cheaply cloneable (shareable warm cache)#69
alukach wants to merge 1 commit into
mainfrom
feat/shareable-credential-cache

Conversation

@alukach
Copy link
Copy Markdown
Member

@alukach alukach commented Jun 5, 2026

Adds Clone to OidcCredentialProvider and CredentialCache (entries behind an Arc), so a runtime that rebuilds its dispatch chain per request (e.g. a Cloudflare Worker) can hold one provider in a shared/static slot and reuse it — keeping the credential cache warm instead of re-minting + re-running AssumeRoleWithWebIdentity on every call. No behavior change for single-instance use. Consumed by source-cooperative/data.source.coop#147.

🤖 Generated with Claude Code

…ply cloneable

Put the cache's entries map behind an Arc and derive Clone on CredentialCache and
OidcCredentialProvider. Cloning a provider now shares the same cache, so a runtime
that rebuilds its dispatch chain per request (e.g. a Cloudflare Worker) can hold
one provider in a shared/static slot and reuse it across requests — keeping the
credential cache warm instead of re-minting a JWT and re-running
AssumeRoleWithWebIdentity on every call.

No behavior change for existing single-instance use.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@alukach alukach deployed to preview June 5, 2026 06:21 — with GitHub Actions Active
@github-actions github-actions Bot added the feat label Jun 5, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

🚀 Latest commit deployed to https://multistore-proxy-pr-69.development-seed.workers.dev

  • Date: 2026-06-05T06:21:37Z
  • Commit: 7a4de6c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant