ProjectTech4DevAI / ProjectTech4DevAI/kaapi-backend

Credentials: Fetching AWS creds for ``/document`` endpoints

オープン
#227 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

enhancement
主要言語
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:

  1. The document endpoints should fetch AWS credentials using get_provider_credential scoped by org_id and project_id.

  2. 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").

  3. The project_id should be correctly passed in the request and used when fetching AWS credentials.

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

ドキュメントのアップロードおよび取得エンドポイントから始めて、現在どのように AWS 認証情報へアクセスしているかを追跡します。その経路を get_provider_credential と比較し、org_id と project_id が渡されていること、また認証情報がない場合や無効な場合に指定された失敗レスポンスが返されることを確認します。

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

評価

技術スタック
aws, python
領域
backend, cloud
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

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

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