Skip to content

Fix reversed credential precedence in Bedrock hook docstring - #71826

Open
Lee-W wants to merge 1 commit into
apache:mainfrom
astronomer:docs-common-ai-vendor-connections
Open

Fix reversed credential precedence in Bedrock hook docstring#71826
Lee-W wants to merge 1 commit into
apache:mainfrom
astronomer:docs-common-ai-vendor-connections

Conversation

@Lee-W

@Lee-W Lee-W commented Aug 19, 2026

Copy link
Copy Markdown
Member

The PydanticAIBedrockHook docstring listed IAM keys before the bearer token, but BedrockProvider.__init__ in pydantic-ai checks api_key / AWS_BEARER_TOKEN_BEDROCK first and never passes the IAM key args to boto3 when it is set, so the bearer token actually wins when both are configured.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: [Claude] following the guidelines


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

The PydanticAIBedrockHook docstring listed IAM keys before the bearer
token, but BedrockProvider.__init__ in pydantic-ai checks api_key /
AWS_BEARER_TOKEN_BEDROCK first and never passes the IAM key args to
boto3 when it is set, so the bearer token actually wins when both are
configured. Caught during review of apache#71774, which already documents
the correct precedence on the connection docs page.
@Lee-W

Lee-W commented Aug 19, 2026

Copy link
Copy Markdown
Member Author

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants