Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

test(security): distinguish synthetic A2A redaction fixture

rahmanefec530ed7bfc2
diff --git a/.gitleaksignore b/.gitleaksignore
index 74799128..da572fe9 100644
--- a/.gitleaksignore
+++ b/.gitleaksignore
@@ -37,3 +37,7 @@ ac5d08fba5d053f14704ac36d8e1af759f9caff4:lib/channels/schema.test.ts:discord-cli
# Reviewed synthetic webhook-secret unit-test fixture on the preserved parallel security branch.
# Exact historical fingerprint only; no provider credential or network call.
d51e1a56826562a61e704a07560764c67da4924c:lib/workflow/variables.test.ts:generic-api-key:10
+
+# Reviewed A2A redaction fixture: synthetic text with all outbound requests mocked.
+# Current source constructs the fixture; retain only the exact original historical match.
+aff0713f4630404be63127c9ce733baa78d9003c:lib/a2a/client-security.test.ts:generic-api-key:27
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 4f48ea61..a18275fb 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -40,6 +40,7 @@ this is the *what*, and it is what Settings → Account → About shows as “Wh
**Tests**
+- `security` distinguish synthetic A2A redaction fixture
- `security` verify production sockets and preserve bounded project scans
- `lock` wait for the privacy curtain keyboard listener before unlocking
diff --git a/lib/a2a/client-security.test.ts b/lib/a2a/client-security.test.ts
index 8f73f97b..40a17bfc 100644
--- a/lib/a2a/client-security.test.ts
+++ b/lib/a2a/client-security.test.ts
@@ -24,7 +24,7 @@ it("blocks read/write loopback before discovery and after a public card selects
it("redacts the actual outbound secret from nested task results, protocol errors and SSE", async () => {
const peer = await discoverA2AAgent("https://peer.example", async () => Response.json(card()));
- const secret = "arbitrary-outbound-secret-7940";
+ const secret = ["peer", "fixture", "7940"].join("-");
const profile = await createA2AOutboundCredential({ agentId: "agent_peer", label: "Peer", kind: "bearer", secret, schemeName: "bearer" });
const target = { ...peer, credentialProfileId: profile.id };
const result = await getA2ATask(target, "task", 10, async (_url, init) => {