{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/vault-plugin-secrets-gcp/issues/7","repository_url":"https://api.github.com/repos/hashicorp/vault-plugin-secrets-gcp","labels_url":"https://api.github.com/repos/hashicorp/vault-plugin-secrets-gcp/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/vault-plugin-secrets-gcp/issues/7/comments","events_url":"https://api.github.com/repos/hashicorp/vault-plugin-secrets-gcp/issues/7/events","html_url":"https://github.com/hashicorp/vault-plugin-secrets-gcp/issues/7","id":317410146,"number":7,"title":"Generating service account JSON file","user":{"login":"nodesocket","id":523312,"avatar_url":"https://avatars2.githubusercontent.com/u/523312?v=4","gravatar_id":"","url":"https://api.github.com/users/nodesocket","html_url":"https://github.com/nodesocket","followers_url":"https://api.github.com/users/nodesocket/followers","following_url":"https://api.github.com/users/nodesocket/following{/other_user}","gists_url":"https://api.github.com/users/nodesocket/gists{/gist_id}","starred_url":"https://api.github.com/users/nodesocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodesocket/subscriptions","organizations_url":"https://api.github.com/users/nodesocket/orgs","repos_url":"https://api.github.com/users/nodesocket/repos","events_url":"https://api.github.com/users/nodesocket/events{/privacy}","received_events_url":"https://api.github.com/users/nodesocket/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-24T21:57:51Z","updated_at":"2018-04-24T23:13:39Z","closed_at":"2018-04-24T23:13:39Z","author_association":"NONE","body":"After calling `vault read gcp/key/roleset-here` it outputs the raw private key only. How do we turn that into a valid service account JSON file like what the GCP IAM interface generates?\r\n\r\nFor example:\r\n\r\n```\r\n{\r\n  \"type\": \"service_account\",\r\n  \"project_id\": \"...\",\r\n  \"private_key_id\": \"...\",\r\n  \"private_key\": \"...\",\r\n  \"client_email\": \"...\",\r\n  \"client_id\": \"...\",\r\n  \"auth_uri\": \"...\",\r\n  \"token_uri\": \"...\",\r\n  \"auth_provider_x509_cert_url\": \"...\",\r\n  \"client_x509_cert_url\": \"...\"\r\n}\r\n```"}}
{"actor":{"display_login":"nodesocket"}}