Is this possible?
When I attempt to use the following Service Account Key JSON:
{
"keyAlgorithm": "KEY_ALG_RSA_2048",
"keyOrigin": "GOOGLE_PROVIDED",
"name": "projects/XXXX",
"privateKeyData": "XXXXXX",
"privateKeyType": "TYPE_GOOGLE_CREDENTIALS_FILE",
"validAfterTime": "2019-08-16T19:45:25Z",
"validBeforeTime": "2029-08-13T19:45:25Z"
}
I get the following error:
client: pubsub: google: error getting credentials using GOOGLE_APPLICATION_CREDENTIALS environment variable: missing 'type' field in credentials
Am I missing something? It apparently only wants to work with Service Account JSON. I'd rather not hand out those credentials.
Any advice?