security: harden gateway proxy, custom runtime proxy, and media routes (#95)

* security hardening pass 1 - otel removed

* hardening pass #2

* feat security hardening pass

* chore: trim unrelated docs from security hardening pr

* fix: address security hardening review findings

* address findings
This commit is contained in:
gsknnft
2026-04-03 18:02:06 -04:00
committed by GitHub
parent 083c146aac
commit 051d0ce469
14 changed files with 572 additions and 30 deletions
+2 -2
View File
@@ -69,7 +69,7 @@ describe("studio settings route", () => {
process.env.OPENCLAW_STATE_DIR = tempDir;
const response = await PUT({
json: async () => "nope",
text: async () => JSON.stringify("nope"),
} as unknown as Request);
const body = (await response.json()) as { error?: string };
@@ -92,7 +92,7 @@ describe("studio settings route", () => {
};
const putResponse = await PUT({
json: async () => patch,
text: async () => JSON.stringify(patch),
} as unknown as Request);
expect(putResponse.status).toBe(200);