Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The public study assistant accepted lookalike origins, parsed unbounded JSON, and relied on per-isolate counters to protect the Gemini quota. This change requires a fresh Turnstile token, verifies its hostname/action server-side, and reserves an attempt from one durable global daily budget before calling Gemini. Invalid configuration or service failures fail closed. The default cap is 200 attempts per UTC day; only an aggregate date/count is persisted.
_headers; preserve AI challenges, embedded fonts, audio and PDF export. Inline script allowances remain for the current VitePress/standalone implementation. HTTP-only framing/nosniff controls still require a compatible serving edge and are not claimed fixed.Required before merge
No Turnstile widget exists yet. Create a managed widget for
notes.gobinath.com, then add repository variableTURNSTILE_SITE_KEYand repository secretTURNSTILE_SECRET_KEY. Keep the existing Gemini Worker secret. The deployment workflows check the keys and upload the private Turnstile secret. Deploy the site and Worker together; the old client cannot satisfy the new verification. See worker/SECURITY.md.This PR is intentionally a draft. No production deployment or real provider challenge has been performed.
Validation
The local machine was short on disk space; the final local build reused large worktree media as hard-linked disposable build output. CI uses the normal build. Existing edits in the original checkout were not included.