ProjectTech4DevAI / ProjectTech4DevAI/kaapi-backend
Credentials: Fetching AWS creds for ``/document`` endpoints
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 18
- フォーク
- 10
- 平均マージ
- 2日 20時間
- マージ済み PR(30日)
- 14
説明
Describe the bug
Currently, document upload and fetching related endpoints are directly accessing AWS credentials without fetching them through the organization and project-specific logic. This bypasses the necessary logic to ensure that AWS credentials are scoped by org_id and project_id.
Expected Behavior:
-
The document endpoints should fetch AWS credentials using get_provider_credential scoped by org_id and project_id.
-
If the credentials are missing or invalid, the endpoint should return a clear failure response (e.g., 400 Bad Request with a message like "AWS credentials are missing or invalid").
-
The project_id should be correctly passed in the request and used when fetching AWS credentials.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
ドキュメントのアップロードおよび取得エンドポイントから始めて、現在どのように AWS 認証情報へアクセスしているかを追跡します。その経路を get_provider_credential と比較し、org_id と project_id が渡されていること、また認証情報がない場合や無効な場合に指定された失敗レスポンスが返されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws, python
- 領域
- backend, cloud
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100