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

Prepare CircleCI config to run GCP Acceptance tests #937

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

usmansaleem
Copy link
Contributor

PR Description

Prepare CircleCI config to run GCP Acceptance tests

Fixed Issue(s)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Testing

  • I thought about testing these changes in a realistic/non-local environment.

@@ -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
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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.

Copy link
Contributor

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

Copy link
Contributor

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

@usmansaleem usmansaleem merged commit 00afd48 into Consensys:master Nov 3, 2023
2 checks passed
@usmansaleem usmansaleem deleted the circleci_gcp_at branch November 3, 2023 08:06
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

Successfully merging this pull request may close these issues.

3 participants