I am trying to mount a GCP storage bucket using gcsfuse and service account authentication. Everything mount OK but i only have read permission, see below;
hannel@gcpxxxxxxd1:~$ gcsfuse --dir-mode 777 --file-mode 777 test /testing
Using mount point: /testing
Opening GCS connection...
Opening bucket...
Mounting file system...
File system has been successfully mounted.
hannel@gcpxxxxxxd1:~$ ls /testing/
Huh...
hannel@gcpxxxxxd1:~$ echo "test" | sudo tee -a /testing/test.log
tee: /testing/test.log: Permission denied
I have confirm the service account has full Storage Admin permission to write to storage service.
I have confirm that the instance metadata service is picking up service account
The only issue i see is that the call for scopes
from the instance metadata service seems to returning 'weird' information https://www.googleapis.com/auth/cloud-platform
curl http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/xxxxx-768@xxxx-246521.iam.gserviceaccount.com/scopes -H "Metadata-Flavor: Google"
I really do not want to use the Key JSON workaround
Questions:
Is this a know issue?
Am i doing something wrong?
Any help is greatly appreciated