Skip to content

Harden optional proxy request boundaries - #3

Draft
pH-7 wants to merge 9 commits into
mainfrom
codex/audit-proxy-boundaries
Draft

Harden optional proxy request boundaries#3
pH-7 wants to merge 9 commits into
mainfrom
codex/audit-proxy-boundaries

Conversation

@pH-7

@pH-7 pH-7 commented Sep 12, 2026

Copy link
Copy Markdown
Member

Malformed query bodies could reject the Express handler before its error boundary, and valid license responses were read from the wrong JSON:API envelope. This change rejects invalid input, correctly checks active license resources, keeps private request data out of logs, bounds Axios calls, and makes proxy trust explicit.

The unused public JWT issuer now returns 410 because its tokens were never accepted by the actual shared-token authentication middleware. Current native SucceedAI apps use on-device models; this proxy remains optional. Review the token endpoint retirement and deployed reverse-proxy hop count before rollout.

Validation: 15 offline tests pass, including real localhost HTTP routes; TypeScript and Prettier pass; npm audit reports zero vulnerabilities after compatible dependency patches and a scoped qs override. Production startup returns health 200 and unauthenticated query 401. Gitleaks finds no secrets in source or the nine commits.

Provider/license calls are mocked. No Railway deployment, credential rotation, store submission or live provider acceptance is claimed.

The existing Netlify preview integration fails before deployment: its dashboard uses Node 20.20.2 with npm install && npm run prod, which cannot load this Node >=22.18 TypeScript entry point. It also treats a long-running server as a static-site build and publishes a nonexistent public directory. The verified preview log marks deploying skipped. Resolving the hosting target requires a separate deployment decision; this branch does not change dashboard settings or introduce a serverless migration.

@netlify

netlify Bot commented Sep 12, 2026

Copy link
Copy Markdown

Deploy Preview for succeedai failed.

Name Link
🔨 Latest commit da2121c
🔍 Latest deploy log https://app.netlify.com/projects/succeedai/deploys/6aa55b823d9e950008f7e631

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant