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
fix(secret-sync): truncate description to 512 chars for Terraform Cloud API
Devin AI23a541e35299
diff --git a/backend/src/services/secret-sync/terraform-cloud/terraform-cloud-sync-fns.ts b/backend/src/services/secret-sync/terraform-cloud/terraform-cloud-sync-fns.tsindex cb546ba633..45c439a5a3 100644--- a/backend/src/services/secret-sync/terraform-cloud/terraform-cloud-sync-fns.ts+++ b/backend/src/services/secret-sync/terraform-cloud/terraform-cloud-sync-fns.ts@@ -16,6 +16,8 @@ import {TTerraformCloudSyncWithCredentials} from "./terraform-cloud-sync-types";+const TERRAFORM_CLOUD_MAX_DESCRIPTION_LENGTH = 512;+const getTerraformCloudVariables = async (secretSync: TTerraformCloudSyncWithCredentials): Promise<TerraformCloudVariable[]> => {@@ -141,7 +143,7 @@ const createVariable = async (attributes: {key,value: secretMap[key].value,- description: secretMap[key].comment || "",+ description: (secretMap[key].comment || "").substring(0, TERRAFORM_CLOUD_MAX_DESCRIPTION_LENGTH),category: secretSync.destinationConfig.category,sensitive: true}@@ -191,7 +193,7 @@ const updateVariable = async (id: variable.id,attributes: {value: secretMap[variable.key].value,- description: secretMap[variable.key].comment || "",+ description: (secretMap[variable.key].comment || "").substring(0, TERRAFORM_CLOUD_MAX_DESCRIPTION_LENGTH),category: secretSync.destinationConfig.category}}