mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 18:27:19 +00:00
chore: add log on empty value being pushed to gcp
This commit is contained in:
@@ -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(
|
await request.post(
|
||||||
`${IntegrationUrls.GCP_SECRET_MANAGER_URL}/v1/projects/${integration.appId}/secrets/${key}:addVersion`,
|
`${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]) {
|
} 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(
|
await request.post(
|
||||||
`${IntegrationUrls.GCP_SECRET_MANAGER_URL}/v1/projects/${integration.appId}/secrets/${key}:addVersion`,
|
`${IntegrationUrls.GCP_SECRET_MANAGER_URL}/v1/projects/${integration.appId}/secrets/${key}:addVersion`,
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user