Skip to content

Commit c11d9ca

Browse files
committed
chore(worker): remove dead GitHub-App sink after ingest-API cutover (013)
The hot path POSTs to the dahaejo ingest API (Phase 4), so the GitHub-App issue-creation code is dead: delete github-app.ts + routes.ts and their tests, drop GH_APP_ID/GH_APP_PRIVATE_KEY/PRODUCT_ROUTES from env + wrangler vars, refresh the pipeline docstring. Also fix the pre-existing schema.test drift (curate-ai/prompt-ops removed from the products SSOT). tsc clean, 38 tests green.
1 parent f15ec9a commit c11d9ca

8 files changed

Lines changed: 5 additions & 496 deletions

File tree

worker/src/env.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,10 @@ export interface Env {
88
// dahaejo platform ingest endpoint (design 013 Phase 4). Sink for contact
99
// inquiries — the API owns the authoritative row + best-effort GitHub issue.
1010
INGEST_API_URL: string;
11-
// GitHub App vars retained only for the dead-letter ops-alert email context
12-
// and legacy typing; the hot path no longer creates issues here.
13-
GH_APP_ID: string;
14-
PRODUCT_ROUTES: string;
1511

1612
// secrets
1713
// Dedicated secret for the API's X-Internal-Secret gate (design 013 Phase 4).
1814
SUPPORT_INGEST_SECRET: string;
19-
GH_APP_PRIVATE_KEY: string;
2015
RESEND_API_KEY: string;
2116
TURNSTILE_SECRET_KEY?: string;
2217

worker/src/github-app.ts

Lines changed: 0 additions & 165 deletions
This file was deleted.

worker/src/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@
99
* 5. Honeypot drop
1010
* 6. Turnstile verification
1111
* 7. Rate-limit check
12-
* 8. PRODUCT_ROUTES parse
13-
* 9. Route resolution
14-
* 10. GitHub Issue creation (3 attempts, exp backoff) + KV dead-letter fallback
12+
* 8. POST to the dahaejo ingest API (3 attempts, exp backoff) + KV
13+
* dead-letter fallback (design 013 Phase 4 — the API owns the
14+
* authoritative row + best-effort GitHub issue; this Worker only does
15+
* edge defense + the retry net).
1516
*
1617
* PII policy (D9): logs contain ONLY sha256-12 of email and message length.
17-
* Issue body sanitisation (D8): user message wrapped in ```text fence;
18-
* backtick sequences escaped with ZWSP.
1918
*/
2019

2120
import type { Env } from "./env";

worker/src/routes.ts

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)