Skip to content

AgentPrismEgressOptions

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

Shared rules for the target address of outbound network requests.

public sealed class AgentPrismEgressOptions

objectAgentPrismEgressOptions

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Read from the AgentPrism:Egress configuration section. AgentPrism sends outbound requests from three surfaces — webhook delivery, MCP server connections and model provider calls — and this option governs all three, so an operator reasons about one setting instead of three.

AgentPrismEgressOptions.AllowPrivateNetworkTargets is a security boundary, not a convenience default — the same reason as AgentPrismTenantProviderOptions.AllowedConfigurationPrefix. Without it, an administrator could point an MCP server or a tenant’s provider endpoint at the cloud metadata address (169.254.169.254), which often hands out unauthenticated temporary credentials.

public AgentPrismEgressOptions()

Gets the configuration section name.

public const string SectionName = "AgentPrism:Egress"

string

Gets or sets whether outbound requests to private network addresses are allowed. Disabled by default.

public bool AllowPrivateNetworkTargets { get; set; }

bool

Enabling this opens an SSRF surface: the server becomes able to reach any service on the internal network, including the cloud metadata endpoint. Enable it only deliberately, on a closed network — for example when the MCP servers really do run inside the private network.