Repository navigation
fix(#512): Location field: address autocomplete and map preview (opt-in, no own server need - #618
Conversation
548b412 to
598fb5e
Compare
Opt-in address autocomplete and map preview: off by default and nothing leaves the shard; the shard proxies Photon or Google Places and OSM tiles with a User-Agent, rate limits and caches, and a chosen place is saved as LOCATION plus GEO. The #348 CI failure came from concurrent first GET /api/calendars racing on MKCALENDAR, which returned an empty list; the default calendars are now created once per principal and errors are no longer swallowed. The #512 e2e uses a different place each run so the shard's caches cannot make it fail; merge conflicts with #513/#517 were resolved keeping both sides. Refs #512 Co-Authored-By: Claude Opus 5.5 <[email protected]>
598fb5e to
f2b673a
Compare
|
Security review (claude-fable-5-1): no blocking finding. Opt-in gate, auth/CSRF, SSRF surface, ICS/XSS injection, secret handling and error sanitizing all hold; tests have teeth (loopback upstream records hits, browser foreign-request assertion). Non-blocking: lookup cache shared across users is a guess-confirmation oracle (geo.js:219, key by user); plain fetch follows redirects from operator-configured upstreams (geo.js:141/257, prefer redirect:'error' or guarded dispatcher); shard-wide rate budgets let one member starve others; settings endpoint discloses configured upstream hostnames; non-security: geo_provider column has no migration in utils/migrations.js and the SPA boot now awaits /api/geo/settings, so existing DBs could fail to load; GEO line uses JS number formatting (exponent notation possible). |
Refs #512
Opt-in address autocomplete and map preview: off by default and nothing leaves the shard; the shard proxies Photon or Google Places and OSM tiles with a User-Agent, rate limits and caches, and a chosen place is saved as LOCATION plus GEO. The #348 CI failure came from concurrent first GET /api/calendars racing on MKCALENDAR, which returned an empty list; the default calendars are now created once per principal and errors are no longer swallowed. The #512 e2e uses a different place each run so the shard's caches cannot make it fail; merge conflicts with #513/#517 were resolved keeping both sides.
Driver gates (measured, not claimed)
red/green output
🤖 Generated with Claude Code