Skip to content

fix: skip credential validation for Bedrock backend - #1011

Merged
ilblackdragon merged 3 commits into
nearai:stagingfrom
rajulbhatnagar:fix/bedrock-startup-validation
Mar 20, 2026
Merged

ilblackdragon merged 3 commits into
nearai:stagingfrom
rajulbhatnagar:fix/bedrock-startup-validation

Conversation

@rajulbhatnagar

Copy link
Copy Markdown
Contributor

Summary

  • Bedrock uses IAM credentials (instance roles, env vars, SSO) resolved by the AWS SDK at call time, so provider is never populated during startup
  • The post-init validation in AppBuilder::build() incorrectly rejects Bedrock as missing credentials
  • This adds a backend != "bedrock" exclusion to the check, matching the existing nearai exclusion

Closes #1009

Test plan

  • cargo check — compiles cleanly
  • cargo clippy — no warnings
  • cargo fmt --check — formatted
  • cargo test --lib — 157 tests pass
  • cargo test --test config_round_trip — 6 tests pass
  • Manual: set LLM_BACKEND=bedrock with AWS API keys, verify startup succeeds
  • Manual: set LLM_BACKEND=bedrock with AWS profiles, verify startup succeeds

Bedrock uses IAM credentials (instance roles, env vars, SSO) resolved
by the AWS SDK at call time, so `provider` is never set during startup.
Exclude it from the post-init validation that checks for missing API keys.

Closes nearai#1009
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot added size: XS < 10 changed lines (excluding docs) risk: low Changes to docs, tests, or low-risk modules contributor: new First-time contributor labels Mar 14, 2026
@ilblackdragon
ilblackdragon merged commit c176261 into nearai:staging Mar 20, 2026
14 checks passed
zmanian pushed a commit that referenced this pull request Mar 21, 2026
Bedrock uses IAM credentials (instance roles, env vars, SSO) resolved
by the AWS SDK at call time, so `provider` is never set during startup.
Exclude it from the post-init validation that checks for missing API keys.

Closes #1009

Co-authored-by: brajul <brajul@amazon.com>
Co-authored-by: Illia Polosukhin <ilblackdragon@gmail.com>
zmanian pushed a commit that referenced this pull request Mar 21, 2026
Bedrock uses IAM credentials (instance roles, env vars, SSO) resolved
by the AWS SDK at call time, so `provider` is never set during startup.
Exclude it from the post-init validation that checks for missing API keys.

Closes #1009

Co-authored-by: brajul <brajul@amazon.com>
Co-authored-by: Illia Polosukhin <ilblackdragon@gmail.com>
bkutasi pushed a commit to bkutasi/ironclaw that referenced this pull request Mar 28, 2026
Bedrock uses IAM credentials (instance roles, env vars, SSO) resolved
by the AWS SDK at call time, so `provider` is never set during startup.
Exclude it from the post-init validation that checks for missing API keys.

Closes nearai#1009

Co-authored-by: brajul <brajul@amazon.com>
Co-authored-by: Illia Polosukhin <ilblackdragon@gmail.com>
drchirag1991 pushed a commit to drchirag1991/ironclaw that referenced this pull request Apr 8, 2026
Bedrock uses IAM credentials (instance roles, env vars, SSO) resolved
by the AWS SDK at call time, so `provider` is never set during startup.
Exclude it from the post-init validation that checks for missing API keys.

Closes nearai#1009

Co-authored-by: brajul <brajul@amazon.com>
Co-authored-by: Illia Polosukhin <ilblackdragon@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor: new First-time contributor risk: low Changes to docs, tests, or low-risk modules size: XS < 10 changed lines (excluding docs)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Bedrock backend fails startup validation due to missing provider check

2 participants