Skip to content

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

fix veria comment

adilson1e22818a13d1
diff --git a/backend/src/services/secret-sync/cloud66/cloud66-sync-fns.ts b/backend/src/services/secret-sync/cloud66/cloud66-sync-fns.ts
index 27ca9f5077..f881434edf 100644
--- a/backend/src/services/secret-sync/cloud66/cloud66-sync-fns.ts
+++ b/backend/src/services/secret-sync/cloud66/cloud66-sync-fns.ts
@@ -14,26 +14,29 @@ import { TCloud66EnvVar, TCloud66SyncWithCredentials } from "./cloud66-sync-type
const isModifiable = (envVar: TCloud66EnvVar) => !envVar.readonly && !envVar.is_generated;
const listCloud66EnvVars = (accessToken: string, stackId: string): Promise<TCloud66EnvVar[]> =>
- paginateCloud66<TCloud66EnvVar>(accessToken, `/3/stacks/${stackId}/environments`);
+ paginateCloud66<TCloud66EnvVar>(accessToken, `/3/stacks/${encodeURIComponent(stackId)}/environments`);
const createCloud66EnvVar = (accessToken: string, stackId: string, key: string, value: string) =>
request.post(
- `${CLOUD_66_API_BASE_URL}/3/stacks/${stackId}/environments`,
+ `${CLOUD_66_API_BASE_URL}/3/stacks/${encodeURIComponent(stackId)}/environments`,
{ key, value },
{ headers: getCloud66Headers(accessToken) }
);
const updateCloud66EnvVar = (accessToken: string, stackId: string, key: string, value: string) =>
request.put(
- `${CLOUD_66_API_BASE_URL}/3/stacks/${stackId}/environments/${encodeURIComponent(key)}`,
+ `${CLOUD_66_API_BASE_URL}/3/stacks/${encodeURIComponent(stackId)}/environments/${encodeURIComponent(key)}`,
{ value },
{ headers: getCloud66Headers(accessToken) }
);
const deleteCloud66EnvVar = (accessToken: string, stackId: string, key: string) =>
- request.delete(`${CLOUD_66_API_BASE_URL}/3/stacks/${stackId}/environments/${encodeURIComponent(key)}`, {
- headers: getCloud66Headers(accessToken)
- });
+ request.delete(
+ `${CLOUD_66_API_BASE_URL}/3/stacks/${encodeURIComponent(stackId)}/environments/${encodeURIComponent(key)}`,
+ {
+ headers: getCloud66Headers(accessToken)
+ }
+ );
export const Cloud66SyncFns = {
async syncSecrets(secretSync: TCloud66SyncWithCredentials, secretMap: TSecretMap) {