Repository navigation
Free domain check: hero, /check/<domain> links and the Deck first run - #136
Merged
Merged
Conversation
… the Deck first run Landing hero (signed out): a "Check your domain" field runs a live check in the browser and shows an A-F grade with every check, its weight and its points. Email (SPF, DMARC, DKIM, MX) and DNS (DNSSEC via the AD flag, CAA) come from public DoH; HTTPS, the HTTP to HTTPS redirect, the five security headers and security.txt come through the existing /api/fetch proxy (net.js dnFetch). It reuses email-auth.js, the posture engine's header grader, domainguard-engine DNS helpers and security-txt.js. A source that fails is shown as not checked and left out of the grade, never counted as a pass or a zero; under half of the applicable points graded gives N/A. SPF and DMARC fixes name the change for the record that exists instead of telling you to publish a new one. After a result: "Fix in the Deck" (stores dn_first_domain and opens sign-up) and "Copy link". /check/<domain> re-runs the check when opened, with nothing stored; it is an app path, served no-cache with X-Robots-Tag noindex, and is not in the sitemap. Hero copy: the air-gapped and "no data leaving your estate" claims are gone (offline is true of the CLI and desktop app with Ollama), the Built with row is removed, and Star on GitHub becomes See the Deck. Deck: while no scan has run, the overview opens with the same check. A hand-off domain or a /check link runs at once and the key is cleared; the sign-up email's work domain is offered as a chip, never typed in, and never for free mail or a Test Mode / guest session. The result is saved as a Personal run (ticks "Run your first scan") and as findings through the sink kit, and each failing check links the free Deck tool that fixes it. Domain-check findings count as external exposure in coverage and playbooks. Docs: FAQ entry with every check and weight, changelog line, JSON-LD feature. Tests: grading, normalisation, injected-resolver runs and the findings map.
renderPending/renderResult (check-view.js) escape every interpolated value, including DNS and header text from the checked domain, and the domain is validated by normalizeDomain first. The scanner does not follow the escaping across the module boundary.
# Conflicts: # public/js/landing.js
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.
What
A free, real domain check as the landing hero's main action, a shareable
/check/<domain>page, and the same check as the first block of a new Deck.Landing hero (signed out)
example.com, with a helper line). It runs live in the browser in a few seconds and shows an A-F grade with every check, its weight and the points it earned.dn_first_domainand opens sign-up./check/<domain>./?app=1). "Scan your first repo" is now "Create a free account" (ghost style), so the domain check is the primary action./check/<domain>routes.jsisAppPath.firebase.jsonserves the SPA for it withCache-Control: no-cacheandX-Robots-Tag: noindex. The page also sets a noindex meta tag. It is not in the sitemap.Deck first run
dn_first_domainhand-off or a/checklink supplies a domain, the check runs at once and the key is then cleared.recordRun), which ticks off "Run your first scan";publishFindings("domaincheck", …)).Checks and weights (total 100)
email-auth.jsanalyzeSPF_dmarc(falls back to the organisational domain), analyzeDMARCv=spf1 -all)/api/fetchproxy (net.jsdnFetch)gradeHeaderscd=1= broken (fail); unsigned = warningsecurity-txt.jsvalidateSecurityTxt~allto-all, or quarantine to reject). The "publish a record" advice appears only when the record is missing.Files
public/js/check/domain-check.js(engine + grading)check-view.js(shared result HTML)landing-check.js(hero +/checkpage)first-run.js(Deck block)public/css/domain-check.csstest/check/domain-check.test.mjs(32 tests)public/js/landing.js(hero block only + import)public/js/deck-ui.js(overview slot,check/<d>route)public/js/deck/routes.js+test/deck/routes.test.mjsfirebase.json(/check/**headers, both sites)public/index.html(stylesheet, JSON-LD feature)public/js/docs.js(FAQ with every weight, changelog)core/coverage.js+core/playbooks.js(domaincheck counts as external exposure)Verification
npm test: 5087 passed, 0 failed.npm run release:check: READY (build d9ce927a40a8).node scripts/build.mjsversions the new imports.dist/withfirebase serveon port 5061 and checked in Chromium at 1440x900 and 390x844. There were 0 console errors or warnings on every page:~all, DMARC quarantine and unsigned DNSSEC are warnings)./check/darknode.aiopened directly: graded B. The title, the noindex meta tag and the canonical path were all set./?app=1guest, ink/invert dark scheme):/emailauth;For the owner to decide
Not merged and not deployed.