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

mantle/kola: optionally attach GCP service account/AWS instance profile to instances #2851

Merged
merged 3 commits into from
May 16, 2022

Conversation

bgilbert
Copy link
Contributor

In order to test authenticated GCS fetches from instances, we need to attach some service account with GCS read access to each instance. Use the project's default service account unless the command line specifies otherwise.

Also allow tests to disable service account attachment in GCE and instance profile attachment in EC2, so that we can verify that anonymous fetches S3 -> EC2 and GCS -> GCE work without credentials. (This has been a problem in the past.)

This change requires kola's GCP service account to have Service Account User permission for the instance service account. Otherwise, the GCP SDK will fail with a helpful error message.

…ails

op.Error.Errors is a slice of pointers, which isn't helpful.  Extract
the underlying error messages.
In order to test authenticated GCS fetches from instances, we need to
attach some service account with GCS read access to each instance.  Use
the project's default service account unless the command line specifies
otherwise.

Note that this requires kola's service account to have Service Account
User permission for the instance service account.  Otherwise, the GCP SDK
will fail with a helpful error message.
We want to be able to test that anonymous fetches S3 -> EC2 and
GCS -> GCE work without instance credentials.  This has been a
problem in the past: coreos/ignition#1363
@bgilbert bgilbert merged commit 4a464b6 into coreos:main May 16, 2022
@bgilbert bgilbert deleted the gcp branch May 16, 2022 08:50
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.

None yet

2 participants