Skip to content

Conversation

@PauiC
Copy link

@PauiC PauiC commented Dec 3, 2025

Description

Fixed SecurityException when executing Bedrock streaming requests by wrapping the BedrockRuntimeAsyncClient creation with AccessController.doPrivileged(), allowing the AWS SDK to read credentials from ~/.aws/credentials despite OpenSearch's security manager restrictions.

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Jiaru Jiang <jiaruj@amazon.com>
@coderabbitai
Copy link

coderabbitai bot commented Dec 3, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

Signed-off-by: Jiaru Jiang <jiaruj@amazon.com>
@PauiC PauiC requested a deployment to ml-commons-cicd-env-require-approval December 3, 2025 10:26 — with GitHub Actions Waiting
@PauiC PauiC requested a deployment to ml-commons-cicd-env-require-approval December 3, 2025 10:26 — with GitHub Actions Waiting
@PauiC PauiC requested a deployment to ml-commons-cicd-env-require-approval December 3, 2025 10:26 — with GitHub Actions Waiting
@PauiC PauiC requested a deployment to ml-commons-cicd-env-require-approval December 3, 2025 10:26 — with GitHub Actions Waiting
Copy link
Contributor

@Hailong-am Hailong-am left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, 👍

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.

2 participants