Skip to content

Commit dae159a

Browse files
carderneTrigger.dev RepoOps
authored andcommitted
fix(webapp,docs): rename Agent Vault to Secret Proxy
Mono-RevId: 80e78e13bf34f4ff30b356fb6e3803ee699aaf75
1 parent 4f00955 commit dae159a

14 files changed

Lines changed: 108 additions & 101 deletions

File tree

‎apps/docs/components/dashboard-figures/environment-variables-new.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export function EnvironmentVariablesNewFigure() {
9595
</div>
9696
</div>
9797
))}
98-
{/* The dashboard lays out the hidden Agent Vault domain field in the same cell, so the row is its height. */}
98+
{/* The dashboard lays out the hidden Secret Proxy domain field in the same cell, so the row is its height. */}
9999
<div className="grid">
100100
<div className="col-start-1 row-start-1 flex items-start justify-between gap-4">
101101
<div className={`${hint} pt-2`}>

‎apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.environment-variables.key.$keyParam/route.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ export default function Page() {
577577
)}
578578

579579
{vaultRows.length > 0 && (
580-
<Section title="Agent Vault">
580+
<Section title="Secret Proxy">
581581
<Property.Table className="px-3">
582582
{vaultRows.map((variable) => (
583583
<Property.Item key={variable.environment.id}>

‎apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.environment-variables.new/route.tsx‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -225,19 +225,19 @@ export const action = dashboardAction(
225225
if (vault) {
226226
if (!project.secretProxyEnabled) {
227227
return json(
228-
submission.reply({ formErrors: ["Agent Vault isn't enabled for this project."] })
228+
submission.reply({ formErrors: ["Secret Proxy isn't enabled for this project."] })
229229
);
230230
}
231231
if (targetEnvironments.some((env) => env.type === "DEVELOPMENT")) {
232232
return json(
233233
submission.reply({
234-
fieldErrors: { environmentIds: ["Agent Vault isn't available in Development."] },
234+
fieldErrors: { environmentIds: ["Secret Proxy isn't available in Development."] },
235235
})
236236
);
237237
}
238238
if (createOptions.variables.length !== 1) {
239239
return json(
240-
submission.reply({ formErrors: ["Add one variable at a time to Agent Vault."] })
240+
submission.reply({ formErrors: ["Add one variable at a time to Secret Proxy."] })
241241
);
242242
}
243243
vaultHosts = proxyConfigHosts({
@@ -703,11 +703,11 @@ export default function Page() {
703703
onCheckedChange={setVault}
704704
disabled={!vault && hasSeveralRows}
705705
className="-ml-2 inline-flex w-fit"
706-
label={<span className="text-text-bright">Agent Vault</span>}
706+
label={<span className="text-text-bright">Secret Proxy</span>}
707707
/>
708708
<Hint className="-mt-1">
709709
{!vault && hasSeveralRows
710-
? "Agent Vault adds one variable at a time. Remove the other rows to use it."
710+
? "Secret Proxy adds one variable at a time. Remove the other rows to use it."
711711
: "This makes the value secret, only inserted into configured requests, and unavailable at build time."}
712712
</Hint>
713713
</InputGroup>
@@ -822,9 +822,9 @@ function VariableFields({
822822
formId?: string;
823823
variablesFields: FieldMetadata<Variable[]>;
824824
form: FormMetadata<any>;
825-
/** Agent Vault values are added one at a time. */
825+
/** Secret Proxy values are added one at a time. */
826826
vault: boolean;
827-
/** Shown in place of the paste tip and Add another while Agent Vault is on. */
827+
/** Shown in place of the paste tip and Add another while Secret Proxy is on. */
828828
vaultFields: React.ReactNode;
829829
}) {
830830
const {
@@ -886,7 +886,7 @@ function VariableFields({
886886
/>
887887
);
888888
})}
889-
{/* Both stay laid out in one cell, so toggling Agent Vault doesn't resize the dialog. */}
889+
{/* Both stay laid out in one cell, so toggling Secret Proxy doesn't resize the dialog. */}
890890
<div className="grid">
891891
<div
892892
className={cn(

‎apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.environment-variables/Vault.tsx‎

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function VaultBanner({
3939
enabled: boolean;
4040
disable?: { blocked: boolean } | null;
4141
}) {
42-
const vaultDocs = useDocsLink()("vault");
42+
const secretProxyDocs = useDocsLink()("secret-proxy");
4343
return (
4444
<Callout
4545
variant="docs"
@@ -54,10 +54,10 @@ export function VaultBanner({
5454
}
5555
>
5656
<div className="text-sm">
57-
<strong>Agent Vault{enabled && " is enabled"}</strong>
57+
<strong>Secret Proxy{enabled && " is enabled"}</strong>
5858
<p className="text-text-dimmed">
5959
Restrict secrets to specific domains at runtime.{" "}
60-
<TextLink {...vaultDocs} target="_blank" rel="noreferrer">
60+
<TextLink {...secretProxyDocs} target="_blank" rel="noreferrer">
6161
Read the docs
6262
</TextLink>
6363
</p>
@@ -82,22 +82,22 @@ function EnableVaultButton() {
8282
<Dialog open={isOpen} onOpenChange={setIsOpen}>
8383
<DialogTrigger asChild>
8484
<Button variant="secondary/small" className="shrink-0">
85-
Enable Agent Vault
85+
Enable Secret Proxy
8686
</Button>
8787
</DialogTrigger>
8888
<DialogContent>
89-
<DialogHeader>Enable Agent Vault</DialogHeader>
89+
<DialogHeader>Enable Secret Proxy</DialogHeader>
9090
<div className="mt-3 grid gap-3 text-sm">
91-
<Paragraph variant="small">Enabling Agent Vault for this project means:</Paragraph>
91+
<Paragraph variant="small">Enabling Secret Proxy for this project means:</Paragraph>
9292
<ul className="list-disc space-y-1 pl-5 text-text-dimmed">
9393
<li>
9494
All new runs in this project's deployed environments will run on our Firecracker
9595
infrastructure.
9696
</li>
97-
<li>Those runs will be connected to the new Agent Vault system.</li>
97+
<li>Those runs can use Secret Proxy.</li>
9898
<li>
99-
Only secrets you explicitly add to the Vault change behavior. Other environment
100-
variables work as before.
99+
Only secrets you add to Secret Proxy change behavior. Other environment variables work
100+
as before.
101101
</li>
102102
</ul>
103103
</div>
@@ -113,7 +113,7 @@ function EnableVaultButton() {
113113
variant="primary/small"
114114
disabled={fetcher.state !== "idle"}
115115
>
116-
Enable Agent Vault
116+
Enable Secret Proxy
117117
</Button>
118118
</fetcher.Form>
119119
</DialogFooter>
@@ -165,7 +165,7 @@ export function SealedInVault() {
165165
return (
166166
<div className="flex items-center gap-x-1">
167167
<AgentVaultIcon className="size-3 shrink-0 text-indigo-500" />
168-
<span className="text-xs text-text-dimmed">Sealed in Agent Vault</span>
168+
<span className="text-xs text-text-dimmed">Protected by Secret Proxy</span>
169169
</div>
170170
);
171171
}
@@ -295,11 +295,11 @@ function DisableVaultButton({ blocked }: { blocked: boolean }) {
295295
tooltip={
296296
fetcher.data?.error ??
297297
(blocked
298-
? "Delete this project's Agent Vault values before disabling Agent Vault."
299-
: "Admin only. Turns Agent Vault off for this project.")
298+
? "Delete this project's Secret Proxy values before disabling Secret Proxy."
299+
: "Admin only. Turns Secret Proxy off for this project.")
300300
}
301301
>
302-
Disable Agent Vault
302+
Disable Secret Proxy
303303
</Button>
304304
</fetcher.Form>
305305
);
@@ -315,7 +315,7 @@ export function EditVaultValueButton({ variable }: { variable: MaskedEnvironment
315315
LeadingIcon={PencilSquareIcon}
316316
fullWidth
317317
textAlignLeft
318-
aria-label={`Edit ${variable.key} in Agent Vault`}
318+
aria-label={`Edit ${variable.key} in Secret Proxy`}
319319
/>
320320
}
321321
/>
@@ -349,11 +349,11 @@ function RemoveFromVaultButton({
349349
<Dialog open={isOpen} onOpenChange={setIsOpen}>
350350
<DialogTrigger asChild>
351351
<Button type="button" variant="tertiary/small">
352-
Remove from Agent Vault
352+
Remove from Secret Proxy
353353
</Button>
354354
</DialogTrigger>
355355
<DialogContent>
356-
<DialogHeader>Remove {variable.key} from Agent Vault?</DialogHeader>
356+
<DialogHeader>Remove {variable.key} from Secret Proxy?</DialogHeader>
357357
<div className="mt-3 grid gap-3 text-sm">
358358
<Callout variant="error">
359359
<Paragraph variant="small" className="font-normal text-callout-error-text">
@@ -376,7 +376,7 @@ function RemoveFromVaultButton({
376376
</div>
377377
<DialogFooter>
378378
<DialogClose asChild>
379-
<Button variant="primary/small">Keep in Agent Vault</Button>
379+
<Button variant="primary/small">Keep in Secret Proxy</Button>
380380
</DialogClose>
381381
<Button
382382
variant="danger/small"
@@ -392,15 +392,15 @@ function RemoveFromVaultButton({
392392
)
393393
}
394394
>
395-
Remove from Agent Vault
395+
Remove from Secret Proxy
396396
</Button>
397397
</DialogFooter>
398398
</DialogContent>
399399
</Dialog>
400400
);
401401
}
402402

403-
/** Moves a value into Agent Vault, or edits a Vault value's domains and value. */
403+
/** Moves a value into Secret Proxy, or edits a proxied value and its domains. */
404404
export function VaultValueDialog({
405405
variable,
406406
trigger,
@@ -431,7 +431,7 @@ export function VaultValueDialog({
431431
>
432432
<DialogTrigger asChild>{trigger}</DialogTrigger>
433433
<DialogContent closeOnOutsideClick={false}>
434-
<DialogHeader>{isVault ? "Edit Agent Vault value" : "Move to Agent Vault"}</DialogHeader>
434+
<DialogHeader>{isVault ? "Edit Secret Proxy value" : "Move to Secret Proxy"}</DialogHeader>
435435
<fetcher.Form className="mt-3 grid gap-4 text-sm" method="post" action={actionPath}>
436436
<input type="hidden" name="action" value="save-vault" />
437437
<input type="hidden" name="id" value={variable.id} />
@@ -450,8 +450,8 @@ export function VaultValueDialog({
450450
</div>
451451
) : (
452452
<p>
453-
From now on, <strong>{variable.key}</strong> will only be available via Agent Vault
454-
requests to the domains below.
453+
Secret Proxy will only send <strong>{variable.key}</strong> in requests to the domains
454+
below.
455455
</p>
456456
)}
457457
<DomainInput domains={domains} onChange={setDomains} />
@@ -489,7 +489,7 @@ export function VaultValueDialog({
489489
variant={isVault ? "primary/small" : "primary/medium"}
490490
disabled={!domains.length || fetcher.state !== "idle"}
491491
>
492-
{isVault ? "Save" : "Move to Agent Vault"}
492+
{isVault ? "Save" : "Move to Secret Proxy"}
493493
</Button>
494494
</DialogFooter>
495495
</fetcher.Form>

‎apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.environment-variables/route.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ export const action = dashboardAction(
425425
!ability.can("write", { type: "envvars", envType: env.type }) ||
426426
!ability.can("read", { type: "envvars", envType: env.type })
427427
) {
428-
return json({ error: "You can't use Agent Vault for this value." }, { status: 403 });
428+
return json({ error: "You can't use Secret Proxy for this value." }, { status: 403 });
429429
}
430430
const hosts = proxyConfigHosts({
431431
allowedHosts: String(formData.get("domains") ?? "")
@@ -1115,7 +1115,7 @@ function EnvironmentVariablesListPage({
11151115
}
11161116
side="bottom"
11171117
className="max-w-sm p-3"
1118-
content="Agent Vault is a secure way to keep sensitive secrets out of task runs. Instead of inserting them as environment variables, they are inserted at request-time to configured destinations. This lets your tasks and agents reach configured services without having direct access to credentials."
1118+
content="Secret Proxy keeps secrets out of task code. It adds the real values only to outbound requests to allowed domains."
11191119
/>
11201120
) : undefined
11211121
}
@@ -1725,7 +1725,7 @@ function EnvironmentVariableTableRow({
17251725
{variable.selectable && variable.canSeal && (
17261726
<VaultValueDialog
17271727
variable={variable}
1728-
trigger={<Button variant="secondary/small">To Agent Vault…</Button>}
1728+
trigger={<Button variant="secondary/small">To Secret Proxy…</Button>}
17291729
/>
17301730
)}
17311731
<EditEnvironmentVariablePanel variable={variable} revealAll={revealAll} />

‎apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs._index/route.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ function RunsHelpTooltip() {
552552
</div>
553553
{project.secretProxyEnabled && (
554554
<div>
555-
<Paragraph variant="small/bright">Agent Vault</Paragraph>
555+
<Paragraph variant="small/bright">Secret Proxy</Paragraph>
556556
<Paragraph variant="small" className="mt-1">
557557
For sealed variables, task code gets a placeholder instead of the secret. Only
558558
runtime requests to allowed domains receive the real value.

‎apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam.spans.$spanParam/route.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ function networkDescription(policy: RunExecutionPolicy): string {
14951495
const network = restrictedNetwork(policy);
14961496
if (!network) return "Unrestricted";
14971497
const allowed = network.allow.length ? `, plus HTTPS to ${network.allow.join(", ")}` : "";
1498-
return `Restricted: Trigger.dev and Vault variable domains only${allowed}`;
1498+
return `Restricted: Trigger.dev and Secret Proxy domains only${allowed}`;
14991499
}
15001500

15011501
function ExternalDeploymentIdValue({

‎apps/webapp/app/services/secretProxy/projectVault.server.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ export async function assertProjectVaultEnabled(
3434
const [project] = await db.$queryRaw<Array<{ secretProxyEnabled: boolean }>>`
3535
SELECT "secretProxyEnabled" FROM "Project" WHERE id = ${projectId} FOR KEY SHARE`;
3636
if (!project?.secretProxyEnabled) {
37-
throw new Error("Agent Vault isn't enabled for this project.");
37+
throw new Error("Secret Proxy isn't enabled for this project.");
3838
}
3939
const development = await db.runtimeEnvironment.count({
4040
where: { projectId, id: { in: boundedIn(environmentIds) }, type: "DEVELOPMENT" },
4141
});
4242
if (development > 0) {
43-
throw new Error("Agent Vault isn't available in Development.");
43+
throw new Error("Secret Proxy isn't available in Development.");
4444
}
4545
}
4646

@@ -65,7 +65,7 @@ export async function disableProjectVault(
6565
const result = await $transaction(db, "disable project vault", async (tx) => {
6666
await tx.$queryRaw`SELECT id FROM "Project" WHERE id = ${projectId} FOR UPDATE`;
6767
if (await projectHasVaultValues(tx, projectId)) {
68-
return { success: false as const, error: "Delete this project's Agent Vault values first." };
68+
return { success: false as const, error: "Delete this project's Secret Proxy values first." };
6969
}
7070
await tx.project.update({ where: { id: projectId }, data: { secretProxyEnabled: false } });
7171
return { success: true as const };

‎apps/webapp/app/services/secretProxy/variables.server.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export async function assertVaultPoliciesValid(
209209
env.parentEnvironmentId
210210
).filter((value) => value.isProxyOnly);
211211
if (values.length > MAX_PROXY_VARIABLES) {
212-
throw new Error("Too many Agent Vault values in one environment.");
212+
throw new Error("Too many Secret Proxy values in one environment.");
213213
}
214214
const empty = values.find((value) => value.proxyAllowedHosts.length === 0);
215215
if (empty) {
@@ -247,7 +247,7 @@ export async function isInVault(
247247
/** The proxy refuses larger credentials, so a Vault value over the limit could never be sent. */
248248
export function assertVaultValueSize(value: string) {
249249
if (Buffer.byteLength(value) > SECRET_PROXY_MAX_CREDENTIAL_BYTES) {
250-
throw new Error("This value is too large for Agent Vault.");
250+
throw new Error("This value is too large for Secret Proxy.");
251251
}
252252
}
253253

‎apps/webapp/app/v3/environmentVariables/environmentVariablesRepository.server.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,11 +1366,11 @@ export class EnvironmentVariablesRepository implements Repository {
13661366
(await isInVault(tx, projectId, variable.id, [environment.parentEnvironmentId]))
13671367
) {
13681368
throw new Error(
1369-
"This value is in Agent Vault through its Preview value. Remove that one first."
1369+
"This value inherits Secret Proxy settings from its Preview value. Remove that value from Secret Proxy first."
13701370
);
13711371
}
13721372
if (!value?.isProxyOnly) {
1373-
throw new Error("This value isn't in Agent Vault.");
1373+
throw new Error("Secret Proxy isn't enabled for this value.");
13741374
}
13751375
const affected = await keepBranchVaultPolicies(tx, projectId, [
13761376
{ variableId: variable.id, environmentId: environment.id },

0 commit comments

Comments
 (0)