'Is there a way to grant access to gcloud using only information in the JSON key file but not the JSON file itself (on Colab)?
To grant access to Google cloud services without google account, a json key file is needed in the following way:
!gcloud auth activate-service-account --key-file xxx.json
But if the user do not have the json file, what information in the json file could I provide for the user to access the cloud service? Is this even possible? I am using google colab.
Many Thanks!
Solution 1:[1]
Posting @John Hanley's answer in the comment section as a Community wiki answer:
To use a service account, the user needs a service account JSON key file. Advanced methods such as using a user identity
that impersonates a service account. If your goal is to keep some information private by just providing part of the JSON key file, you can't. The CLI (gcloud) needs that information to use a service account.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |