Skip to content
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

minor documentation requests #188

Open
wlandau opened this issue Mar 15, 2022 · 5 comments
Open

minor documentation requests #188

wlandau opened this issue Mar 15, 2022 · 5 comments

Comments

@wlandau
Copy link

wlandau commented Mar 15, 2022

I am setting up a second GCP account (another 90-day free trial) and I ran into some setup snags.

> cr_setup_test()
ℹ Perform deployments to test your setup is working. Takes around 5mins.  ESC or 0 to skip.Successfully auto-authenticated via /home/landau/.gcp/CENSORED.jsonValidated authentication in GCE_AUTH_FILE
Select which deployments to test 

1: All tests
2: Cloud Build - Docker
3: Cloud Run - plumber API with Pub/Sub
4: Cloud Build - R script
5: Cloud Scheduler - R script

Selection: 5

── Testing scheduling R script deployments via cr_deploy_r(schedule = '* * * * *') ──

ℹ 2022-03-15 12:55:28 > Deploy R script cr_rscript_CENSORED to Cloud Build2022-03-15 12:55:28 > Scheduling R script on cron schedule: * * * * *2022-03-15 12:55:28 > Creating PubSub topic: cr_rscript_CENSORED-topicprojects/CENSORED/topics/cr_rscript_CENSORED-topic succesfully created2022-03-15 12:55:31 > Request Status Code:  403
Error: http_403 User not authorized to perform this action.
@MarkEdmondson1234
Copy link
Owner

Thanks! These startup bumps are my priority for smoothing out. It sounds like I forgot to put the new googlePubsubR integration scopes in the setup script.

@wlandau
Copy link
Author

wlandau commented Mar 16, 2022

Thanks so much Mark! You have already done a lot to make this process easier for new users, and the video and cr_setup() are super helpful.

Would it also be possible to mention GCS_AUTH_FILE somewhere? I believe the setup docs refer to GCE_AUTH_FILE instead.

@MarkEdmondson1234
Copy link
Owner

The GCS_AUTH_FILE is only googleCloudStorageR specific, when using Cloud Storage with googleCloudRunner it uses the GCE_AUTH_FILE as that contains auth for all the related services (Cloud Run, Storage, Cloud Build etc)

@wlandau
Copy link
Author

wlandau commented Mar 16, 2022

So these environment variables are different for security reasons (bare minimum permissions)?

@MarkEdmondson1234
Copy link
Owner

That was the thinking, although wasn't followed for googleCloudRunner that reused googleComputeEngineR's GCE_AUTH_FILE, potentially a CR_AUTH_FILE would be more consistent but with the recent Google auth changes in general I would like to use the more agnostic application defaults, supported by gargle, that reuse what gcloud and other SDKs look at.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants