Files
openclaw/src/plugin-sdk/ssrf-runtime.ts
T
Peter Steinberger 577a0642fa fix(plugin-sdk): classify loopback hosts consistently (#114832)
* fix(plugin-sdk): expose loopback host classifier

* fix(ollama): remove stale host normalizer import

* chore: keep release notes in PR context
2026-07-27 22:55:44 -04:00

33 lines
1.1 KiB
TypeScript

// Narrow SSRF helpers for extensions that need pinned-dispatcher and policy
// utilities without loading the full infra-runtime surface.
export {
closeDispatcher,
createPinnedDispatcher,
SsrFBlockedError,
isBlockedHostnameOrIp,
isPrivateIpAddress,
resolvePinnedHostname,
resolvePinnedHostnameWithPolicy,
resolveSsrFPolicyForUrl,
ssrfPolicyFromHttpBaseUrlAllowedHostname,
ssrfPolicyFromHttpBaseUrlAllowedOrigin,
type LookupFn,
type SsrFPolicy,
} from "../infra/net/ssrf.js";
export { formatErrorMessage } from "../infra/errors.js";
export { fetchWithSsrFGuard } from "../infra/net/fetch-guard.js";
export {
assertHttpUrlTargetsPrivateNetwork,
buildHostnameAllowlistPolicyFromSuffixAllowlist,
createLegacyPrivateNetworkDoctorContract,
hasLegacyFlatAllowPrivateNetworkAlias,
isPrivateNetworkOptInEnabled,
mergeSsrFPolicies,
migrateLegacyFlatAllowPrivateNetworkAlias,
ssrfPolicyFromDangerouslyAllowPrivateNetwork,
ssrfPolicyFromPrivateNetworkOptIn,
ssrfPolicyFromAllowPrivateNetwork,
} from "./ssrf-policy.js";
export { isLoopbackHost, isPrivateOrLoopbackHost } from "../gateway/net.js";