feat(egress): Docker task containers reach allowed hosts through the egress proxy (#1967)
The task session carries containers.egress_hosts and the profile's remote MCP hosts, and the container gets ProxyEnv with the relay exempt from the proxy so the State Store and NATS dials bypass it. A host the session lists exactly may resolve to a private address; wildcard and any-host matches may not. egress_hosts moves from openshell to containers, as it applies to both runtimes.
This commit is contained in:
16 files changed
+188
-94
No files matched your search
@@ -55,8 +55,8 @@ interface ContainerRuntime {
|
||||
cert_file: string;
|
||||
key_file: string;
|
||||
services_host: string;
|
||||
egress_hosts: string[];
|
||||
};
|
||||
egress_hosts: string[];
|
||||
}
|
||||
|
||||
const store = useSettingsStore();
|
||||
@@ -242,27 +242,6 @@ function formatHours(seconds: number): string {
|
||||
</div>
|
||||
</Field>
|
||||
</form.Field>
|
||||
|
||||
<form.Field v-slot="{ field }" name="openshell.egress_hosts">
|
||||
<Field orientation="responsive">
|
||||
<FieldContent><FieldLabel>Egress hosts</FieldLabel></FieldContent>
|
||||
<div class="flex min-w-0 flex-wrap items-center gap-3 @md/field-group:flex-1">
|
||||
<TagsInput
|
||||
:model-value="field.state.value ?? []"
|
||||
class="font-mono"
|
||||
aria-label="Egress hosts"
|
||||
@update:model-value="(v) => field.handleChange(v as string[])"
|
||||
>
|
||||
<TagsInputItem v-for="h in field.state.value ?? []" :key="h" :value="h">
|
||||
<TagsInputItemText />
|
||||
<TagsInputItemDelete />
|
||||
</TagsInputItem>
|
||||
<TagsInputInput placeholder="*.example.com:443" />
|
||||
</TagsInput>
|
||||
<DraftHint :kind="KIND" path="openshell.egress_hosts" />
|
||||
</div>
|
||||
</Field>
|
||||
</form.Field>
|
||||
</FieldGroup>
|
||||
|
||||
<FieldGroup v-if="form" class="@container/field-group">
|
||||
@@ -372,6 +351,27 @@ function formatHours(seconds: number): string {
|
||||
</div>
|
||||
</Field>
|
||||
</form.Field>
|
||||
|
||||
<form.Field v-slot="{ field }" name="egress_hosts">
|
||||
<Field orientation="responsive">
|
||||
<FieldContent><FieldLabel>Egress hosts</FieldLabel></FieldContent>
|
||||
<div class="flex min-w-0 flex-wrap items-center gap-3 @md/field-group:flex-1">
|
||||
<TagsInput
|
||||
:model-value="field.state.value ?? []"
|
||||
class="font-mono"
|
||||
aria-label="Egress hosts"
|
||||
@update:model-value="(v) => field.handleChange(v as string[])"
|
||||
>
|
||||
<TagsInputItem v-for="h in field.state.value ?? []" :key="h" :value="h">
|
||||
<TagsInputItemText />
|
||||
<TagsInputItemDelete />
|
||||
</TagsInputItem>
|
||||
<TagsInputInput placeholder="*.example.com:443" />
|
||||
</TagsInput>
|
||||
<DraftHint :kind="KIND" path="egress_hosts" />
|
||||
</div>
|
||||
</Field>
|
||||
</form.Field>
|
||||
</FieldGroup>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user