-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup service accounts programmatically #178
Comments
library(googleAuthR)
gar_set_client(scopes = "https://www.googleapis.com/auth/cloud-platform")
gar_auth()
gar_service_create("test12345678", "my-project")
gar_service_grant_roles("[email protected]",
role = "roles/editor",
projectId = "my-project")
gar_service_key("test12345678", "my-project", "my-auth.json")
gar_service_key_list("test12345678", "my-project") |
MarkEdmondson1234
added a commit
that referenced
this issue
Apr 22, 2020
All wrapped up in gar_service_provision("my-service-account",
c("roles/viewer", "roles/bigquery.jobUser"))
# 2020-04-23 12:20:09> Writing secret auth JSON key to my-service-account-auth-key.json |
Don't use this yet in production, testing |
MarkEdmondson1234
added a commit
that referenced
this issue
Apr 26, 2020
Its ok now, in CRAN version 1.2.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be helpful for a user OAuth2 token to be able to setup service emails. That way for setups a user can login the "easy" way with high permissions, and those permissions can be used to create a service email with locked-down permissions.
https://cloud.google.com/iam/docs/creating-managing-service-accounts#iam-service-accounts-create-rest
https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource
The text was updated successfully, but these errors were encountered: