-
Notifications
You must be signed in to change notification settings - Fork 79
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
Prepare CircleCI config to run GCP Acceptance tests #937
Conversation
@@ -224,6 +224,10 @@ jobs: | |||
name: Acceptance Tests | |||
no_output_timeout: 20m | |||
command: | | |||
if [ -n "$GCP_SERVICE_KEY" ]; then | |||
echo "$GCP_SERVICE_KEY" | base64 --decode > $HOME/gcp_service_key.json | |||
export GOOGLE_APPLICATION_CREDENTIALS=$HOME/gcp_service_key.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this just for our ATs with how they work or will users also have to set the GOOGLE_APPLICATION_CREDENTIALS
environment variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could just have the AT use the GCP_SERVICE_KEY env variable instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
End users, as well as web3signer developers, have to use "Application Default Credentials ADC) to setup authentication. We are using service user approach which uses service user key and GOOGLE_APPLICATION_CREDENTIALS environment variable. https://cloud.google.com/docs/authentication/provide-credentials-adc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not nice. It means we can't use our typical config and env variable approach. And google becomes a special case that is more difficult to use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For our ATs it's fine though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: think it would be clearer if GCP_SERVICE_KEY was called GCP_SERVICE_KEY_BASE64
PR Description
Prepare CircleCI config to run GCP Acceptance tests
Fixed Issue(s)
Documentation
doc-change-required
label to this PR if updates are required.Changelog
Testing