Skip to content

Verify AI access code before enabling analysis - #14

Merged
zardol merged 1 commit into
mainfrom
codex/verify-ai-access-code
Oct 6, 2026
Merged

zardol merged 1 commit into
mainfrom
codex/verify-ai-access-code

Conversation

@zardol

@zardol zardol commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

The connection check previously confirmed only that OpenAI was configured, so an incorrect access code could still produce a success message and enable analysis. The status endpoint now validates a supplied code without calling OpenAI, and the interface enables analysis only after explicit authorization for the current code and URL.

Wrong codes receive a specific error. Pasted whitespace and invisible formatting characters are normalized, while OpenAI API keys and instruction text are rejected before transmission. Editing the code or server address invalidates readiness. Provider authentication failures reopen the connection form.

Validation: npm run check passed, with 192 tests and both production builds. Regression coverage checks unauthenticated, incorrect, and accepted codes; no paid call or budget reservation during connection checks; old-server responses; and pasted-key rejection. The issued local access code was also confirmed against the live Render server without a paid analysis.

Public verification: deployed commit a6b5e72 to Render and GitHub Pages. The browser rejected an incorrect code, confirmed the issued code, and completed a real OpenAI analysis. Changing a verified code immediately disabled analysis in the browser regression check.

@zardol
zardol merged commit a6b5e72 into main Oct 6, 2026
1 check passed
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