aws / aws/amazon-redshift-python-driver

Caching access token during BrowserIdcAuthPlugin authentication for subsequent/parallel session requests

オープン
#265 コメント 1 件 リアクション 4 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
220
フォーク
86
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently, running SQL queries via `BrowserIdcAuthPlugin` is done on a per-session basis. This can be tiresome when running queries across different sessions in parallel (e..g, dbt), where multiple browser pop-ups are triggered throughout the run duration. I would like to add a feature to cache the access token received during the token exchange process, so that future sessions will reuse the cached token instead of re-initializing a new session.

As the proposal involves storing the access token locally (whether it be via file/memory, plain-text/encrypted, etc.), would this be a security issue? Not sure if it would be a hard blocker before I open a PR for this feature proposal.

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

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

調査の方向性

まず、トークン交換とセッション初期化のパスを通じて BrowserIdcAuthPlugin の認証を追跡します。キャッシュのスコープとストレージのセキュリティ要件を定義し、その後のセッションおよび並列セッションが有効なトークンを再利用し、ブラウザーのポップアップが繰り返し表示されないことを確認します。

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

評価

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

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

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