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

Aberta
#751 0 comentários 1 reação 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
42/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
python
Domínio
cli, cloud

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Python
Estrelas
638
Forks
138
Merge médio
8h 27min
PRs com merge (30d)
8

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de Backblaze/B2_Command_Line_Tool

Todas as issues de Backblaze/B2_Command_Line_Tool

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.