Penv Cloud
Start free
Docs
Reference

Google Secret Manager

Move secrets to and from a Secret Manager name prefix.

Move secrets to and from a Secret Manager name prefix.

Connection

WhatThis provider
VendorGoogle Cloud
Keygcp-secret-manager
Availabilityavailable. You can connect it today.
Credential we holdgcp-service-account
Values read backyes
Activationimmediate

Directions

DirectionWhat it does
importWe read names and values out of the store into your environment.
exportWe write names and values from your environment into the store.

Activation

immediate. The running app sees a new value at once.

Conflict policies

DirectionPolicies you can pick
importskip_existing, new_version, fail
exportcreate_only, overwrite, overwrite_and_prune

How syncs work says what each one does.

Connect

Paste a credential from the vendor. We seal it and never show it again.

FieldLabelKindRequiredWhat it is
serviceAccountKeyService account keysecret; we mask it here and seal ityesThe JSON key file for a service account with access to this project's secrets.

Connection fields

You set these when you connect. Every mapping on the connection shares them.

FieldLabelKindRequiredAdvancedWhat it is
projectIdProjecttextyesnoThe project holding the secrets. One connection covers one project.
basePrefixBase prefixtextyesnoThe widest secret name prefix this connection may touch. Every sync scope will sit under it.

Mapping fields

You answer these once per environment you map.

FieldLabelKindRequiredAdvancedWhat it is
namePrefixSecret name prefixtextyesnoMaps onto this environment. Pruning deletes the secret outright, and Google keeps no recovery window.

Required permissions

We probe for these when we verify the connection.

PermissionDirectionsBlockingWithout it
secretmanager.secrets.listevery directionyesPreview cannot list what is under this prefix.
secretmanager.versions.accessimportyesImport cannot read any value, because roles/secretmanager.editor does not include it.
secretmanager.secrets.createexportyesExport cannot add a key that is not there yet.
secretmanager.versions.addexportyesExport cannot write a value.
secretmanager.versions.destroyexportnoSuperseded versions stay, and keep billing.
secretmanager.secrets.deleteexportnoThe overwrite_and_prune policy cannot remove remote keys.