Google Cloud credentials
Seqera uses Google credentials to access your Google Cloud project for Google Cloud compute environments. The service account in the credentials must have the Google Cloud IAM roles.
You can authenticate in two ways:
- Workload Identity Federation (recommended): Seqera generates short-lived OpenID Connect (OIDC) tokens. No service account key is stored.
- Service account key: Seqera stores a JSON key for the service account. Use it only if you cannot use Workload Identity Federation.
You need the following:
- A service account with the IAM roles for this setup option. See Google Cloud IAM roles.
Workload Identity Federation
This compute environment supports workload identity federation, which authenticates Seqera Platform to Google Cloud with short-lived OIDC tokens instead of a long-lived service account key. Before you create the credential, configure the workload identity pool, provider, attribute mapping, and service account impersonation in Google Cloud. See Workload identity federation for the setup steps, the subject model, and cloud audit attribution.
Service account keys
To authenticate using a service account key, create a service account JSON key file:
- In the Google Cloud navigation menu, select IAM & Admin > Service Accounts.
- Select the email address of the service account.
- Select Keys > Add key > Create new key.
- Select JSON as the key type.
- Select Create.
Google Cloud downloads a JSON file to your computer. It contains the credential you need to configure the compute environment in Seqera.
If the credential uses a key rather than workload identity federation, the key must be a Google service account JSON key ("type": "service_account"). From Seqera Platform Enterprise 26.2.2, Seqera rejects other Google credential files, keys whose token_uri is not a Google OAuth2 endpoint, and keys whose universe_domain is not googleapis.com. See Authentication methods.
Add the service account key in Seqera
- In your workspace, go to Credentials and add new credentials. You can also select + next to the Credentials drop-down when you create a compute environment.
- Enter a name for the credentials, for example, Google Cloud Credentials, and for Provider, select Google.
- Paste the contents of the JSON file in the Service account key field.
- Select Add.
Validation
Seqera validates credentials against Google Cloud on a recurring schedule and marks credentials that fail as INVALID. Seqera blocks launches on compute environments whose credentials are INVALID. See Pre-flight checks.