Skip to content

Using Google Cloud Storage gives Invalid setting 'GS_IAM_SIGN_BLOB' for GoogleCloudStorage #183

@nilsheuer

Description

@nilsheuer

I am trying to use Google Cloud Storage for presenting user specific image and video files in my Django app. Thus, I cannot make the underlying bucket public.

When configuring the suggested options from the documentation (I cannot use a local credentials file, as key generation is blocked in my org) I get the following error message when trying to access the URL of an uploaded image file: Invalid setting 'GS_IAM_SIGN_BLOB' for GoogleCloudStorage
My setting.py looks like this
STORAGES = {

"default": {

    "BACKEND": "storages.backends.gcloud.GoogleCloudStorage",

    "OPTIONS": {
      "bucket_name": "123456789",
        "GS_IAM_SIGN_BLOB": True,
        "GS_SA_EMAIL":"[email protected]"

    },
},
"staticfiles": {
    "BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
},

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions