Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

add label managed by infisical

Serion Jeon33adbc0f242b
diff --git a/backend/src/integrations/sync.ts b/backend/src/integrations/sync.ts
index 34cb67a222..797d83f9a7 100644
--- a/backend/src/integrations/sync.ts
+++ b/backend/src/integrations/sync.ts
@@ -336,7 +336,7 @@ const syncSecretsGCPSecretManager = async ({
});
const res: GCPSMListSecretsRes = (await standardRequest.get(
- `${INTEGRATION_GCP_SECRET_MANAGER_URL}/v1beta1/projects/${integration.appId}/secrets`,
+ `${INTEGRATION_GCP_SECRET_MANAGER_URL}/v1/projects/${integration.appId}/secrets?filter=labels.managed-by=infisical`,
{
params,
headers: {
@@ -391,6 +391,9 @@ const syncSecretsGCPSecretManager = async ({
{
replication: {
automatic: {}
+ },
+ labels: {
+ "managed-by": "infisical"
}
},
{