惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recent Announcements
Recent Announcements
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
MongoDB | Blog
MongoDB | Blog
H
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The GitHub Blog
The GitHub Blog
V
V2EX
Microsoft Security Blog
Microsoft Security Blog
V
Visual Studio Blog
A
About on SuperTechFans
博客园_首页
L
LangChain Blog
量子位
雷峰网
雷峰网
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Jina AI
Jina AI
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
M
MIT News - Artificial intelligence
N
Netflix TechBlog - Medium

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(nextcloud-talk): ignore signed non-message webhook ev...
arkyu2077 · 2026-06-24 · via Recent Commits to openclaw:main

@@ -182,6 +182,77 @@ describe("createNextcloudTalkWebhookServer replay handling", () => {

182182

});

183183184184

describe("createNextcloudTalkWebhookServer payload validation", () => {

185+

it("acknowledges signed non-message Create events instead of rejecting them", async () => {

186+

const payload = {

187+

type: "Create",

188+

actor: { type: "Person", id: "alice", name: "Alice" },

189+

object: {

190+

type: "Document",

191+

id: "file-1",

192+

name: "report.pdf",

193+

content: "",

194+

mediaType: "application/pdf",

195+

},

196+

target: { type: "Collection", id: "room-1", name: "Room 1" },

197+

};

198+

const body = JSON.stringify(payload);

199+

const { random, signature } = generateNextcloudTalkSignature({

200+

body,

201+

secret: "nextcloud-secret", // pragma: allowlist secret

202+

});

203+

const onMessage = vi.fn();

204+

const harness = await startWebhookServer({

205+

path: "/nextcloud-non-message-event",

206+

onMessage,

207+

});

208+209+

const response = await fetch(harness.webhookUrl, {

210+

method: "POST",

211+

headers: {

212+

"content-type": "application/json",

213+

"x-nextcloud-talk-random": random,

214+

"x-nextcloud-talk-signature": signature,

215+

"x-nextcloud-talk-backend": "https://nextcloud.example",

216+

},

217+

body,

218+

});

219+220+

expect(response.status).toBe(200);

221+

expect(onMessage).not.toHaveBeenCalled();

222+

});

223+224+

it("acknowledges signed non-Create Talk events instead of rejecting them", async () => {

225+

const payload = {

226+

type: "Join",

227+

actor: { type: "Application", id: "bots/bot-1", name: "Bot" },

228+

object: { type: "Collection", id: "room-1", name: "Room 1" },

229+

};

230+

const body = JSON.stringify(payload);

231+

const { random, signature } = generateNextcloudTalkSignature({

232+

body,

233+

secret: "nextcloud-secret", // pragma: allowlist secret

234+

});

235+

const onMessage = vi.fn();

236+

const harness = await startWebhookServer({

237+

path: "/nextcloud-lifecycle-event",

238+

onMessage,

239+

});

240+241+

const response = await fetch(harness.webhookUrl, {

242+

method: "POST",

243+

headers: {

244+

"content-type": "application/json",

245+

"x-nextcloud-talk-random": random,

246+

"x-nextcloud-talk-signature": signature,

247+

"x-nextcloud-talk-backend": "https://nextcloud.example",

248+

},

249+

body,

250+

});

251+252+

expect(response.status).toBe(200);

253+

expect(onMessage).not.toHaveBeenCalled();

254+

});

255+185256

it("rejects malformed webhook payloads after signature verification", async () => {

186257

const payload = {

187258

type: "Create",