Repository navigation
Conversation
One squirrelscan shell for the success, expired, already-used and waiting pages: inline mark and wordmark, brand palette and type with system fallbacks, light and dark, phone width, AA contrast. A CSP meta allows nothing to load and runs only the page's own copy script by hash. Only the escaped email is interpolated. Signed-off-by: Nik Cubrilovic <[email protected]>
…ests (#1286) Signed-off-by: Nik Cubrilovic <[email protected]>
…ish the pages (#1286) Content-Type with charset, a CSP header with frame-ancestors none, X-Frame-Options DENY, nosniff, no-referrer and no-store on 200, 410, 404 and 500, plus a referrer meta. Darker mascot tile in dark mode, balanced headings, link styled as the button's sibling, a pixel glyph per state, design-system grid. Tests hash the emitted script and assert each header over real HTTP. Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
…1286) Signed-off-by: Nik Cubrilovic <[email protected]>
Contributor
Author
|
Landed in v0.0.143 as nik |
7 tasks done
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.
Closes #1286.
The page
squirrel auth loginshows after sign-in was a white card with a green heading. It now carries the squirrelscan brand.What changed
apps/cli/src/controllers/auth/callback-page.ts: one shell for every loopback page (inline pixel squirrel mark on a cream tile, lowercase wordmark, design-system cream and muted green, monospace brand stack with system fallbacks, subtle pixel grid). Light and dark viaprefers-color-scheme, phone width, focus-visible outlines, reduced motion.aria-livestatus) restyled. Ids, script and behaviour are unchanged.Content-Security-Policymeta (default-src 'none',style-src 'unsafe-inline',img-src data:,base-uri 'none',form-action 'none') allows the one inline script only by its sha256 hash (computed from the exact script constant the tests drive), andscript-src 'none'on pages without a script. Only the escaped email is interpolated;escapeHtmlnow also escapes'.docs/cli/auth.mdxand CHANGELOG (### Changedunder## [Unreleased]) updated.Tests
apps/cli/tests/controllers/auth-login.test.ts: per page (success, expired, consumed, pending): shell, viewport and dark scheme present, nothing loads (no link, src, img, import,url(, only the setup URLs and the SVG namespace), the CSP and its script hash, copy rules; plus a hostile email (</strong><script>,<img onerror>, quotes) that injects nothing, "the email is the only interpolated value", and the reload only on the waiting page. The existing copy-prompt behaviour tests pass unchanged; the two heading assertions changed to the new sentence-case copy.Local gates
tsgo, lint, format:check, docs
make validate, the auth-login test file by path. Screenshots (light, dark, phone, all four pages) are rendered from the real function output with headless Chrome; they are in the lane scratchpad and listed in the lead's report, since images cannot be attached from the CLI.