add label managed by infisical

This commit is contained in:
Serion Jeon
2023-09-12 09:57:03 +01:00
parent 6bca7dcc58
commit 33adbc0f24

View File

@@ -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"
}
},
{