Better support for cloud authentication via tokens, service accounts, etc.
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 30/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- google-cloud, python
- Domaine
- authentication, cloud
Piste de recherche
Commencez par les points d’entrée pins.board_gcs et pins.board, en les comparant à gcsfs.GCSFileSystem et à l’exemple fonctionnel de storage_options. Déterminez le comportement attendu du token pour le board GCS et si une prise en charge équivalente de l’authentification est nécessaire pour les autres boards cloud. C’est terminé lorsque l’utilisation authentifiée de pins.board_gcs fonctionne sans dépendre d’une lecture mise en cache préalable et que le périmètre est documenté ou testé.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Python
- Étoiles
- 59
- Forks
- 11
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de rstudio/pins-python
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
rstudio/pins-python#367 ·
-
.maint
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
rstudio/pins-python#280 ·
-
Test board github with a tokenOuvertetesting
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
rstudio/pins-python#196 ·
-
.enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
rstudio/pins-python#363 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 55/100
rstudio/pins-python#354 ·
Toutes les issues de rstudio/pins-python
Issues similaires
-
docs(contributing): the two things that silently block a PRPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverteavailable documentation good first issue
Difficulté 1/5 1-3 heures Accessibilité débutants 95/100
Nixitov/Riptide-Native#944 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
JTHCode/secretguard#24 ·
Les mainteneurs répondent en général sous 1 jour
-
area: middleware documentation good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
good first issue
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
omarelshamy25x/shamy-hijri#63 ·
Les mainteneurs répondent en général sous 1 jour