gstack/design/test
Garry Tan a2ae26d44c
fix(design): create the OpenAI key file owner-only, closing the write-then-chmod race
saveApiKey wrote ~/.gstack/openai.json at the default umask and tightened to
0600 afterwards, leaving the API key briefly world-readable between write and
chmod (CWE-377/367). Pass mode 0o600 at create; the trailing chmodSync stays
as a backstop to tighten a pre-existing loose file.

Contributed by @bunlongheng (PR #2468).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-14 20:20:58 -07:00
..
auth.test.ts fix(design): create the OpenAI key file owner-only, closing the write-then-chmod race 2026-08-14 20:20:58 -07:00
daemon-discovery.test.ts v1.45.0.0 feat(design): persistent board daemon — 24h boards, one tab, board history (#1710) 2026-05-25 20:45:12 -07:00
daemon-tests-fixtures.ts v1.45.0.0 feat(design): persistent board daemon — 24h boards, one tab, board history (#1710) 2026-05-25 20:45:12 -07:00
daemon.test.ts fix(test): remove all 8 delayed process.exit teardown bombs — the tier-1 gate can finally fail 2026-08-14 20:20:51 -07:00
feedback-roundtrip-daemon.test.ts v1.45.0.0 feat(design): persistent board daemon — 24h boards, one tab, board history (#1710) 2026-05-25 20:45:12 -07:00
feedback-roundtrip.test.ts fix(test): remove all 8 delayed process.exit teardown bombs — the tier-1 gate can finally fail 2026-08-14 20:20:51 -07:00
gallery.test.ts feat: design binary — real UI mockup generation for gstack skills (v0.13.0.0) (#551) 2026-03-27 20:32:59 -06:00
image-gen-pairing.test.ts fix(design): drop gpt-image-2 tool model that 400s under the gpt-4o orchestrator 2026-08-14 20:20:51 -07:00
receipted-fetch.test.ts v1.63.0.0 feat: GStack 2 fork port wave — egress receipts, context-bill, sharded gate, /health fix (#2541) 2026-08-14 09:28:56 -07:00
serve.test.ts v1.45.0.0 feat(design): persistent board daemon — 24h boards, one tab, board history (#1710) 2026-05-25 20:45:12 -07:00
variants-retry-after.test.ts fix(design): variants AbortError message reports the real 240s timeout 2026-08-14 20:20:52 -07:00