From 7b80dc7650dc392cd8e37427a260665924a04dfe Mon Sep 17 00:00:00 2001 From: Kevin James Date: Fri, 29 Aug 2025 16:33:37 +0100 Subject: [PATCH] fix(storage): fix default scope for metadata patches Ensure default scope can include running patch_metadata commands. Note: this is not a security issue, since the permissions are still limited down to the subset granted on the SA in use. Fixes #928 --- storage/gcloud/aio/storage/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/gcloud/aio/storage/storage.py b/storage/gcloud/aio/storage/storage.py index 4a6aec255..4bdf0c556 100644 --- a/storage/gcloud/aio/storage/storage.py +++ b/storage/gcloud/aio/storage/storage.py @@ -41,7 +41,7 @@ MAX_CONTENT_LENGTH_SIMPLE_UPLOAD = 5 * 1024 * 1024 # 5 MB SCOPES = [ - 'https://www.googleapis.com/auth/devstorage.read_write', + 'https://www.googleapis.com/auth/devstorage.full_control', ] log = logging.getLogger(__name__)