Skip to content

Instantly share code, notes, and snippets.

@soichisumi
Created July 15, 2019 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soichisumi/04334d453c0e4e1afbc46223a16fcb56 to your computer and use it in GitHub Desktop.
Save soichisumi/04334d453c0e4e1afbc46223a16fcb56 to your computer and use it in GitHub Desktop.
an example of gcp service account

GCP Service Account Example

this is an example of gcp service account. Clearly, service account has a private key and a certificate.

So GCP uses public-key cryptography (+ certificate to validate wheather public key is falsificated) to authenticate the service account.

{
"type": "service_account",
"project_id": "xxxxxxxxxxxxx",
"private_key_id": "xxxxxxxxxxxxx",
"private_key": "-----BEGIN PRIVATE KEY-----\nxxxxxxxxxxxxx\n-----END PRIVATE KEY-----\n",
"client_email": "xxxxxxxxxxxxx@xxxxxxxxxxxxx.iam.gserviceaccount.com",
"client_id": "xxxxxxxxxxxxx",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/xxxxxxxxxxxxx%40xxxxxxxxxxxxx.iam.gserviceaccount.com"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment