aws / aws/bedrock-agentcore-sdk-python

Support passing workload identity name to `require_access_token`

オープン
#237 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
761
フォーク
147
平均マージ
1日 23時間
マージ済み PR(30日)
7

説明

**Is your feature request related to a problem? Please describe.**
I want to use the 3LO flow with Identity outside of Runtime. As of now, this SDK falls back to the local auth settings expecting the `".agentcore.json"` which is not set by us. Hence, the SDK falls back to creating an Identity Workload but the agent's execution roles correctly gets an exception denied.

**Describe the solution you'd like**
I would like to use the decorator and pass the workload identity name. I would expect the decorator to get the workload access token and continue as is.

**Describe alternatives you've considered**
- Placing the `".agentcore.json"`
- Setting the `BedrockAgentCoreContext`

**Additional context**
Agent runs on Amazon ECS

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、`require_access_token` の Python 実装と、デコレーターによる `.agentcore.json` および `BedrockAgentCoreContext` の処理を見つけます。ECS/3LO のユースケースでワークロードアクセストークンがどのように選択されるかを追跡します。完了条件は、デコレーターがワークロード ID 名を受け取り、ローカルの認証設定を必要とせずにそのトークンを使用することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, python
領域
authentication, cloud
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。