You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ui/src/components/egress-policy-form/egressPolicyCopy.ts
+25-5Lines changed: 25 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,26 @@
1
1
/** Every user-facing string for the egress policy pages, in one place. */
2
2
exportconstegressCopy={
3
-
nav: "Egress Policies",
3
+
page: {
4
+
title: "Policies",
5
+
tab: "Egress Policies",
6
+
createButton: "Create egress policy",
7
+
notFoundHint: "which hosts agents can reach",
8
+
},
9
+
concepts: {
10
+
title: "Overview",
11
+
what: "A policy lists extra HTTP(S) hosts that agents and sandbox templates can reach.",
12
+
credential: "The gateway can add a credential to requests. The agent never sees it.",
13
+
noPolicyNeeded: "Model and MCP server hosts work without a policy.",
14
+
diagramLabel: "An agent or sandbox template lists a policy, and the policy lets it reach HTTP(S) hosts.",
15
+
boxes: {
16
+
agent: {kind: "Agent",detail: "Lists the policies it needs."},
17
+
sandboxTemplate: {kind: "SandboxTemplate",detail: "Lists the policies its sandboxes need."},
18
+
policy: {kind: "EgressPolicy",detail: "Origins it allows, and any credential."},
19
+
hosts: {kind: "HTTP(S) hosts",detail: "What the agent can now reach."},
20
+
},
21
+
},
4
22
list: {
5
23
title: "Egress policies",
6
-
intro:
7
-
"A policy lets the agents and sandbox templates that list it reach more HTTP(S) hosts. You don't need one for models or MCP servers. Those are reachable already.",
8
-
newButton: "New policy",
9
24
search: "Search by name or origin",
10
25
loadError: "Could not load egress policies",
11
26
empty: "No egress policies yet.",
@@ -27,7 +42,7 @@ export const egressCopy = {
27
42
actorJwt: "Actor JWT",
28
43
},
29
44
details: {
30
-
description: (namespace: string)=>`Extra hosts that agents and sandboxes in ${namespace} can reach.`,
45
+
description: (namespace: string)=>`Egress policy in ${namespace}.`,
31
46
back: "Back to policies",
32
47
edit: "Edit",
33
48
destinations: "Destinations",
@@ -64,6 +79,11 @@ export const egressCopy = {
64
79
name: "Name",
65
80
namespace: "Namespace",
66
81
identityLocked: "Fixed once the policy exists.",
82
+
nameRequired: "Enter a name.",
83
+
nameInvalid: "Use lowercase letters, numbers, hyphens and dots. Start and end each part with a letter or number.",
84
+
nameTooLong: (max: number)=>`Keep the name to ${max} characters or fewer.`,
85
+
namespaceRequired: "Choose a namespace.",
86
+
namespaceInvalid: "Choose a namespace made of lowercase letters, numbers and hyphens.",
67
87
destinations: "Destinations",
68
88
destinationsHelp: (max: number)=>`Each destination allows one origin and all its paths. You can add up to ${max}.`,
0 commit comments