Skip to content

refactor!: keep API-key upstreams only - #64

Merged
KnowSky404 merged 1 commit into
mainfrom
refactor/remove-fingerprint
Nov 9, 2026
Merged

KnowSky404 merged 1 commit into
mainfrom
refactor/remove-fingerprint

Conversation

@KnowSky404

Copy link
Copy Markdown
Owner

Change

N2API now accepts API-key upstreams only. Remove OAuth authorization, callback,
refresh, Codex catalog and gateway transformations, fingerprint management and
bindings, synthetic Codex identity headers, and uTLS. Preserve normal API
routing, proxy transports, streaming, model sync, and response affinity.

Historical OAuth accounts and fingerprint data remain in PostgreSQL and
redacted configuration exports. They cannot be selected, edited, deleted,
probed, or exposed as active models. Existing installations must replace their
OAuth routing-pool memberships with API-key upstreams. No production operation
or credential deletion is included.

Validation

  • cd backend && go test ./... passed.
  • cd backend && go mod tidy -diff and go vet ./... passed.
  • Pinned Staticcheck v0.7.0 passed (task-local cache and GOFLAGS=-buildvcs=false for the sandboxed NFS worktree).
  • cd frontend && bun test: 216 passed.
  • cd frontend && bun run --bun check: zero errors and warnings.
  • N2API_FRONTEND_BUILD_DIR="$TMPDIR/frontend-dist" bun node_modules/vite/bin/vite.js build passed.
  • Playwright: desktop 1440x1000 and mobile 390x844 API creation; no OAuth/fingerprint requests or console errors (mock admin API).
  • Managed isolated PostgreSQL: go test -count=1 -run 'TestProviderRepositoryListExposedModelsForRoutingPools|TestListExposedModelsForRoutingPoolFiltersUnschedulableAccounts|TestAllMigrationsRoundTrip|TestOpsAccountHealthExcludesRetiredOAuthAccounts' ./internal/store passed.
  • make test-e2e passed against the isolated PostgreSQL and mock upstream stack.
  • make dev-check: no-cache rebuild, live/readiness/version/page probes, and teardown passed; deploy_n2api-postgres preserved.

Real-provider and production acceptance were not run.

Local review

codex review --base origin/main completed on the published diff with no
explicit actionable regression findings. Earlier findings about retired OAuth
callback fallback, test fixtures, and current account-health statistics were
fixed and verified before this final review. The task worktree is clean at
35ae1ad09290957bc93290df8edf9ab373af4244.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-11-09T07:04:45.374985Z 35ae1ad PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@KnowSky404
KnowSky404 merged commit 1a29efc into main Nov 9, 2026
17 checks passed
@KnowSky404
KnowSky404 deleted the refactor/remove-fingerprint branch November 9, 2026 07:06
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