Hono / Bun (TypeScript / Bun) · CWE-798

Hono / Bun: Secret Exposure & CI Compromise (Code Remediation)

Implement fail-closed guards and safe data filters. Stop private keys, API secrets, and write tokens from leaking into client bundles or CI runs. Tailored for Hono / Bun: Bind Zod validator middleware and timing-safe token comparisons per route.

Primary AegisSec skill
secrets-deps-scanner-pipeline ->
Companion: cloud-containers-cicd-audit
Coverage ledger tracking key
surface:hono-bun::boundary:secret-leak-ci::angle:remediation
ZAP 10027 / 10034 passive disclosure audit
Risk boundary
// Unverified Hono / Bun path (CWE-798 · Code Remediation)
// Handler accepts input without validating c.get('jwtPayload').
Hardened guard
// Hardened Hono / Bun (CWE-798 · Code Remediation)
// 1. Bind Zod validator middleware and timing-safe token comparisons per route
// 2. Rotate compromised keys prior to history rewrite and pin third-party CI steps to SHAs.

Verification steps

  1. 01Seed coverage-ledger.json for every Hono / Bun handler touching Secret Exposure & CI Compromise.
  2. 02Trace request parameters through c.get('jwtPayload') validation down to the sink.
  3. 03Verify with paired positive/negative evidence via cloud-containers-cicd-audit.