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

Đang mở
#751 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
cli, cloud

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
638
Fork
138
Merge trung bình
8 giờ 27 phút
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Backblaze/B2_Command_Line_Tool

Tất cả issue của Backblaze/B2_Command_Line_Tool

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.