Better support for cloud authentication via tokens, service accounts, etc.
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- google-cloud, python
- 領域
- authentication, cloud
調査の方向性
エントリポイント pins.board_gcs と pins.board から始め、それらを gcsfs.GCSFileSystem および動作する storage_options の例と比較します。GCS board における意図された token の動作と、他の cloud board に同等の認証サポートが必要かどうかを確認します。認証済みの pins.board_gcs の使用が、以前にキャッシュされた読み取りに依存せずに動作し、スコープが文書化またはテストされていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
In writing up the blog post for pins 1.1.0 in R, I ran into some challenges around authenticating for GCS in Python. I have a service account JSON file google-pins.json for a project "pins-dev" in my working directory.
I kind of expected that this might work, given what the docs for gcsfs and pins say (use a cached gcsfs token), but it does not:
import pins
import gcsfs
fs = gcsfs.GCSFileSystem(project="pins-dev", token="google-pins.json")
board = pins.board_gcs("pins-testing")
board.pin_read("small-numbers")
The pins functions don't work, even though fs.ls("pins-testing/") does.
This does work:
import pins
opts = {"cache_timeout": 0, "token": "google-pins.json"}
path = "pins-testing"
board = pins.board("gcs", path, storage_options=opts)
board.pin_read("nice-numbers")
Once I successfully read the pin this way, I can re-declare the board via pins.board_gcs("pins-testing") and still read the pin (which is cached locally), even though the board object is different.
🎯 Can/should we add a token argument to the GCS board? Should we do something similar for the other cloud boards? FWIW in R, we decided authentication was specific enough to these platforms that we needed to add individualized support in each board.
Also FWIW with GCS specifically, I'm still fuzzy on how the CLI authentication interacts with what I can do from Python. I did try authenticating via the CLI with gcloud auth application-default login and I'm not sure whether that was important.
- 主要言語
- Python
- スター
- 59
- フォーク
- 11
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rstudio/pins-python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rstudio/pins-python#367 ·
-
.maint
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
rstudio/pins-python#280 ·
-
testing
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
rstudio/pins-python#196 ·
-
.enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
rstudio/pins-python#363 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
rstudio/pins-python#354 ·
rstudio/pins-python の issue をすべて見る
似ている issue
-
docs(contributing): the two things that silently block a PR対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンavailable documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 95/100
Nixitov/Riptide-Native#944 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
JTHCode/secretguard#24 ·
メンテナーはふだん 1 日以内に返信
-
area: middleware documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
omarelshamy25x/shamy-hijri#63 ·
メンテナーはふだん 1 日以内に返信