mirror of https://github.com/openclaw/openclaw.git
perf(msteams): narrow secret and ssrf runtime seams
This commit is contained in:
parent
8a58a18a0a
commit
1bba19decb
|
|
@ -5,8 +5,8 @@ import {
|
|||
isHttpsUrlAllowedByHostnameSuffixAllowlist,
|
||||
isPrivateIpAddress,
|
||||
normalizeHostnameSuffixAllowlist,
|
||||
} from "../../runtime-api.js";
|
||||
import type { SsrFPolicy } from "../../runtime-api.js";
|
||||
type SsrFPolicy,
|
||||
} from "openclaw/plugin-sdk/ssrf-policy";
|
||||
import type { MSTeamsAttachmentLike } from "./types.js";
|
||||
|
||||
type InlineImageCandidate =
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@ import {
|
|||
hasConfiguredSecretInput,
|
||||
normalizeResolvedSecretInputString,
|
||||
normalizeSecretInputString,
|
||||
} from "../runtime-api.js";
|
||||
} from "openclaw/plugin-sdk/secret-input";
|
||||
|
||||
export { hasConfiguredSecretInput, normalizeResolvedSecretInputString, normalizeSecretInputString };
|
||||
|
|
|
|||
|
|
@ -151,6 +151,10 @@
|
|||
"types": "./dist/plugin-sdk/runtime-group-policy.d.ts",
|
||||
"default": "./dist/plugin-sdk/runtime-group-policy.js"
|
||||
},
|
||||
"./plugin-sdk/ssrf-policy": {
|
||||
"types": "./dist/plugin-sdk/ssrf-policy.d.ts",
|
||||
"default": "./dist/plugin-sdk/ssrf-policy.js"
|
||||
},
|
||||
"./plugin-sdk/ssrf-runtime": {
|
||||
"types": "./dist/plugin-sdk/ssrf-runtime.d.ts",
|
||||
"default": "./dist/plugin-sdk/ssrf-runtime.js"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
"infra-runtime",
|
||||
"runtime-config-snapshot",
|
||||
"runtime-group-policy",
|
||||
"ssrf-policy",
|
||||
"ssrf-runtime",
|
||||
"media-runtime",
|
||||
"media-understanding-runtime",
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ import {
|
|||
type SsrFPolicy,
|
||||
} from "../infra/net/ssrf.js";
|
||||
|
||||
export { isPrivateIpAddress };
|
||||
|
||||
export function ssrfPolicyFromAllowPrivateNetwork(
|
||||
allowPrivateNetwork: boolean | null | undefined,
|
||||
): SsrFPolicy | undefined {
|
||||
|
|
|
|||
Loading…
Reference in New Issue