Skip to content

CORE-1801: Support Bedrock authentication in CodeLayer - #74

Open
K-Mistele wants to merge 1 commit into
mainfrom
core-1801-support-bedrock-token-refresh-for-codex
Open

CORE-1801: Support Bedrock authentication in CodeLayer#74
K-Mistele wants to merge 1 commit into
mainfrom
core-1801-support-bedrock-token-refresh-for-codex

Conversation

@K-Mistele

Copy link
Copy Markdown
Contributor

Summary

  • add a separate codex_bedrock AWS-profile auth record while preserving existing Codex OAuth/API records
  • resolve CodeLayer Codex connections from explicit options, HumanLayer auth selection, legacy overrides, or Codex config.toml
  • generate and cache Bedrock bearer keys in memory with expiry-aware, single-flight refresh
  • authenticate the existing custom Responses request path against regional Bedrock Mantle endpoints and retry once after recognized auth failures
  • preserve current ChatGPT transports and static custom Responses behavior
  • add coverage for auth compatibility, selection precedence, request replay, refresh races, redaction, and model/endpoint mapping

Testing

  • bun run typecheck
  • bun run test
  • bun run --cwd packages/agentlayer-provider-auth build
  • bun run --cwd agents/codelayer build
  • bun run biome:check
  • git diff --check

Part of CORE-1801.

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Docs Agent Review

Agent finished with reason: error


To apply these recommendations, comment: @docs-agent apply

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​smithy/​node-config-provider@​4.6.21001005197100
Added@​smithy/​config-resolver@​4.7.21001005897100
Added@​aws/​bedrock-token-generator@​1.1.09810010081100
Addedsmol-toml@​1.8.010010010091100
Added@​smithy/​types@​4.18.010010010095100
Added@​aws-sdk/​credential-providers@​3.1126.09910010098100

View full report

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