Skip to content

docs: GCP secrets resource locations - #1717

Open
christopher-hakkaart wants to merge 4 commits into
masterfrom
docs/EDU-1307-gcp-secrets-resource-locations
Open

docs: GCP secrets resource locations#1717
christopher-hakkaart wants to merge 4 commits into
masterfrom
docs/EDU-1307-gcp-secrets-resource-locations

Conversation

@christopher-hakkaart

@christopher-hakkaart christopher-hakkaart commented Aug 9, 2026

Copy link
Copy Markdown
Member

christopher-hakkaart and others added 2 commits August 10, 2026 10:27
…policy (EDU-1307)

Cloud: document regional user-managed replication shipped in
v26.2.0-cycle67 (COMP-2186, platform#11954). Enterprise current + 26.1:
known-limitation caution and troubleshooting entry for the
FAILED_PRECONDITION error under constraints/gcp.resourceLocations.
Includes review edits trimming forward-looking release statements.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Aug 9, 2026

Copy link
Copy Markdown

Deploy Preview for seqera-docs ready!

Name Link
🔨 Latest commit a80039d
🔍 Latest deploy log https://app.netlify.com/projects/seqera-docs/deploys/6a7e3dfa4a8a640008142e10
😎 Deploy Preview https://deploy-preview-1717--seqera-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@justinegeffen justinegeffen added the 1. Dev/PM/SME Needs a review by a Dev/PM/SME label Aug 11, 2026
@justinegeffen
justinegeffen requested review from stefanoboriero and removed request for jonmarti August 11, 2026 09:37
Comment on lines +235 to +245
## Pipeline secret creation fails under a Google Cloud resource location policy

In Google Cloud projects that enforce a resource location policy, launching a pipeline with a pipeline secret attached fails before any task starts. This affects Google Batch and Google Cloud compute environments. The error is similar to:

```
Unable to store pipeline secret 'my_secret' - Reason: io.grpc.StatusRuntimeException:
FAILED_PRECONDITION: Constraint constraints/gcp.resourceLocations violated for
[orgpolicy:projects/123456789012] attempting to create a secret in [global].
```

This issue occurs because Seqera Platform creates pipeline secrets in Google Secret Manager with automatic replication, which stores the secret in the `global` location. If the [`constraints/gcp.resourceLocations`](https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations) organization policy does not permit the `global` location, Google rejects the secret and the run cannot launch. The compute environment's location setting has no effect on where the secret is stored.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a mention of this behaviour being fixed in an upcoming version v26.2? Or say this was the behaviour until version v26.1, like in the above item was say a given behaviour was true until Nextflow version 24.10?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I would alter this to say something like 'until Platform verison 26.1, this issue occurs...'. and finish the paragraph by saying 'This issue is resolved in Platform v26.2'

@christopher-hakkaart christopher-hakkaart Aug 13, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Pipeline secret creation fails under a Google Cloud resource location policy
In Google Cloud projects that enforce a resource location policy, launching a pipeline with a pipeline secret attached fails before any task starts. This affects Google Batch and Google Cloud compute environments. The error is similar to:
```
Unable to store pipeline secret 'my_secret' - Reason: io.grpc.StatusRuntimeException:
FAILED_PRECONDITION: Constraint constraints/gcp.resourceLocations violated for
[orgpolicy:projects/123456789012] attempting to create a secret in [global].
```
This issue occurs because Seqera Platform creates pipeline secrets in Google Secret Manager with automatic replication, which stores the secret in the `global` location. If the [`constraints/gcp.resourceLocations`](https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations) organization policy does not permit the `global` location, Google rejects the secret and the run cannot launch. The compute environment's location setting has no effect on where the secret is stored.
## Pipeline secret creation fails under a Google Cloud resource location policy
In Platform v26.1 and earlier, launching a pipeline with a pipeline secret attached fails before any task starts in Google Cloud projects that enforce a resource location policy. This affects Google Batch and Google Cloud compute environments. The error is similar to:
```
Unable to store pipeline secret 'my_secret' - Reason: io.grpc.StatusRuntimeException:
FAILED_PRECONDITION: Constraint constraints/gcp.resourceLocations violated for
[orgpolicy:projects/123456789012] attempting to create a secret in [global].
```
This issue occurs because Platform v26.1 and earlier create pipeline secrets in Google Secret Manager with automatic replication, which stores the secret in the `global` location. If the [`constraints/gcp.resourceLocations`](https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations) organization policy does not permit the `global` location, Google rejects the secret and the run cannot launch. The compute environment's location setting has no effect on where the secret is stored.
This issue is resolved in Platform v26.2, which creates pipeline secrets with user-managed regional replication instead of automatic replication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. Dev/PM/SME Needs a review by a Dev/PM/SME

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants