I have created a bucket on Google Cloud which contains one JSON file. I wish to access this JSON via some BASIC form of authentication, such as an API key
I have created an API key on google cloud with no restrictions
When I attempt a GET request using my API key, in the documented format, for example:
https://storage.googleapis.com/BUCKETNAME/JSONNAME?API_KEY=APIKEYNAME
It returns the following
"Anonymous caller does not have storage.objects.get access to bucket"
I am not sure why, since I am sending the API key
As an alternative, if I make the bucket/JSON file "public", I can access the JSON easily, via the following URL:
https://storage.googleapis.com/BUCKETNAME/JSONNAME
I don't really want to leave it completely open though..
Is there anything I can do here? I would like a basic key to be required (either on header or URL) to access the JSON
Thanks!