Red-team hardening: CSP, SEO/OG, a11y, esc() quotes, doc reconciliation - #101
Merged
Conversation
- CSP meta tag (blocks inline/external/eval script; allows self+ipapi) - SEO: meta description, Open Graph/Twitter cards, canonical, theme-color - Add robots.txt, sitemap.xml, and a redirecting 404.html - Loading state in #root before React hydrates - a11y: raise sub-11px labels and lift muted contrast off failing #5e7180 - Escape quotes in report esc() (report.js, myForest.js, RunBuilder.jsx) - Disclose ipapi.co IP fallback on the Forest-near-me control - SECURITY.md/CONTRIBUTING.md: reflect continuous deploy; retire v1.3 desync - CI: run check_api_integrity.py --strict as a build gate
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.
Implements the actionable items from the 2 July 2026 red-team review (docs/active-projects handoff).
Security
ipapi.cofor the geolocation fallback. Verified the built bundle has no inline scripts, noeval/Function, and onlyipapi.coas a cross-originconnect.esc()in report.js, myForest.js, RunBuilder.jsx to also escape " and ' (defense-in-depth for thedocument.writereport path).ipapi.coIP fallback in the 'Forest near me' control tooltip.Docs (M2: reconcile with reality)
main.Website
Accessibility
CI
check_api_integrity.py --strictas a gate (passes on current data) and sets up Python.Verified:
npm run buildsucceeds; strict integrity check passes (50 states, 46 metrics, 0 structural issues).