FeatureFuel
0

GCP Secrets Manager external secrets provider lists and reads every secret in the project, with no way to scope it

Source: n8n-io/n8n#45398 · opened by @Lesha17
Bug Description The GCP Secrets Manager external secrets provider enumerates every secret in the GCP project and then tries to read the latest version of each of them, regardless of whether the secret is meant for n8n. There is no way to tell the provider which secrets it should use. In GcpSecretsManager.update() (packages/cli/src/modules/external-secrets.ee/providers/gcp-secrets-manager/gcp-secrets-manager.ts): This has several consequences for anyone following least privilege: 1. n8n needs secretmanager.secrets.list on the whole project. secrets.list is checked at project level; it cannot be granted on a single secret. A service account that is only supposed to see one secret has to be given project-wide listing, which exposes the names and labels of all other secrets in the project. 2. Every secret the service account cannot read produces a PERMISSION_DENIED on secretmanager.versions.access. The error is swallowed and logged at debug level, but the denial is recorded in Cloud…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests