b2cli should not require listBuckets perm for keys limited to a single bucket

Aperta
#751 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli, cloud

Direzione di ricerca

The issue names no files or tests. Start by reproducing the failure: authorize with a key that only has writeFiles for one bucket, then run an upload and note where the CLI calls listBuckets. Read the account-authorization code where the bucket-name-to-id cache is filled, and check whether the B2 authorize response can seed it for a single bucket. Done means upload, download and ls work with that restricted key and the existing tests still pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement up-for-grabs

https://www.backblaze.com/b2/docs/b2_authorize_account.html lets us partially fill the local bucket-name-to-id cache and that should be enough to upload/download/list files.

Currently keys with just writeFiles are not usable in cli and it would be nice if this would work fine. Not a huge change to the codebase, might be a nice addition.

Lingua principale
Python
Stelle
638
Fork
138
Merge medio
8h 27m
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Backblaze/B2_Command_Line_Tool

Tutte le issue di Backblaze/B2_Command_Line_Tool

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.