Skip to content

Commit 908ecf3

Browse files
committed
option to always use proxy
1 parent e6d627c commit 908ecf3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/config-yaml/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@continuedev/config-yaml",
3-
"version": "1.0.71",
3+
"version": "1.0.72",
44
"description": "",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

packages/config-yaml/src/load/unroll.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ function extractFQSNMap(
146146
async function extractRenderedSecretsMap(
147147
rawContent: string,
148148
platformClient: PlatformClient,
149+
alwaysUseProxy: boolean = false,
149150
): Promise<Record<string, string>> {
150151
// Get all template variables
151152
const templateVars = getTemplateVariables(rawContent);
@@ -165,7 +166,7 @@ async function extractRenderedSecretsMap(
165166
}
166167

167168
// User secrets are rendered
168-
if ("value" in secretResult) {
169+
if ("value" in secretResult && !alwaysUseProxy) {
169170
map[encodeFQSN(secretResult.fqsn)] = secretResult.value;
170171
} else {
171172
// Other secrets are rendered as secret locations and then converted to proxy types later
@@ -187,6 +188,7 @@ export interface RenderSecretsUnrollAssistantOptions {
187188
currentUserSlug: string;
188189
platformClient: PlatformClient;
189190
onPremProxyUrl: string | null;
191+
alwaysUseProxy?: boolean;
190192
}
191193

192194
export type UnrollAssistantOptions =
@@ -256,6 +258,7 @@ export async function unrollAssistantFromContent(
256258
const secrets = await extractRenderedSecretsMap(
257259
templatedYaml,
258260
options.platformClient,
261+
options.alwaysUseProxy,
259262
);
260263
const renderedYaml = renderTemplateData(templatedYaml, {
261264
secrets,

0 commit comments

Comments
 (0)