Can I use a service account outside of GCP on other platforms

0 votes
Can I use a service account outside of GCP on other platforms? How is this possible?
Oct 30, 2019 in GCP by anonymous
• 6,260 points
2,903 views

1 answer to this question.

0 votes

To use a service account outside of GCP, such as on other platforms or on-premises, you must first establish the identity of the service account. Public/private key pairs provide a secure way of accomplishing this goal.

You can create a service account key using the GCP Console, the gcloud tool, the serviceAccounts.keys.create() method, or one of the client libraries.

In the examples below, [SA-NAME] is the name of your service account, and [PROJECT-ID] is the ID of your Google Cloud Platform project. You can retrieve the [SA-NAME]@[PROJECT-ID].iam.gserviceaccount.com string from the Service Accounts page in the GCP Console.

  1. Open the IAM & Admin page in the GCP Console.

  2. Select your project and click Continue.

  3. In the left nav, click Service accounts.

  4. Look for the service account for which you wish to create a key, click the More more_vert button in that row, and then click Create key.

  5. Select a Key type and click Create.

Note that the privateKeyData returned is a base64-encoded string representation of the TYPE_GOOGLE_CREDENTIALS_FILE value (JSON or P12 key/credentials).

When you create a key, your new public/private key pair is generated and downloaded to your machine; it serves as the only copy of the private key. You are responsible for storing the private key securely. Take note of its location and ensure the key is accessible to your application; it needs the key to make authenticated API calls.

Check this for further details https://cloud.google.com/iam/docs/creating-managing-service-account-keys#iam-service-account-keys-create-console

answered Oct 30, 2019 by Sirajul
• 59,230 points
How do I ensure that my service account keys are not compromised?

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

Can I give a user access to cloud storage who doesn't have a GCP account?

Yes, you could certainly do this.  You can ...READ MORE

answered Nov 5, 2019 in GCP by Sirajul
• 59,230 points
1,033 views
0 votes
1 answer

I am closing my billing account on GCP but have unused credits. Will I be eligible for a refund?

If you cancel your billing account and ...READ MORE

answered Nov 5, 2019 in GCP by anonymous
• 59,230 points
4,114 views
0 votes
1 answer
0 votes
1 answer

create a service account on Gcloud.

To create a service account, at minimum ...READ MORE

answered Oct 30, 2019 in GCP by Sirajul
• 59,230 points
726 views
0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP