Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
chore: add log on empty value being pushed to gcp
Meeta55d64e430c5
diff --git a/backend/src/services/integration-auth/integration-sync-secret.ts b/backend/src/services/integration-auth/integration-sync-secret.tsindex 97525b0325..2db6f20a20 100644--- a/backend/src/services/integration-auth/integration-sync-secret.ts+++ b/backend/src/services/integration-auth/integration-sync-secret.ts@@ -207,6 +207,12 @@ const syncSecretsGCPSecretManager = async ({});+ if (!secrets[key].value) {+ logger.warn(+ `[GCP_SECRET_SYNC_1]: Empty secret value for key: ${key} and integration appId: ${integration.appId}`+ );+ }+await request.post(`${IntegrationUrls.GCP_SECRET_MANAGER_URL}/v1/projects/${integration.appId}/secrets/${key}:addVersion`,{@@ -237,6 +243,12 @@ const syncSecretsGCPSecretManager = async ({});} else if (secrets[key].value !== res[key]) {+ if (!secrets[key].value) {+ logger.warn(+ `[GCP_SECRET_SYNC_2]: Empty secret value for key: ${key} and integration appId: ${integration.appId}`+ );+ }+await request.post(`${IntegrationUrls.GCP_SECRET_MANAGER_URL}/v1/projects/${integration.appId}/secrets/${key}:addVersion`,{