Skip to content

MapViewer3D Addon 0.4.1

Choose a tag to compare

@github-actions github-actions released this 21 Oct 16:07
· 53 commits to main since this release

MapViewer3D addon 0.4.1 – fixes from the review of 0.4.0

Thanks to yacketrj for the careful review of 0.4.0 in the catalog pull request. Everything he reported is fixed, each with a test.

Security

  • The key label in the connection panel is a hash. It used to be a segment of the key (split at _), which for a key with few underscores could be most of the secret. It is now an 8-digit hash of the whole key and never a piece of it.
  • The administrator's key goes only to a share gateway. The addon used to send the key to each guessed gateway address (https://<console>:8798 …) in the very first probe. It now first asks the address who it is without any credential (GET /mvshare, no Authorization, no cookies, no redirects); only an address that answers as the share gateway gets the key.
  • Full 256-bit digests for terrain tiles and building models. The data release data-v1 listed only the first 64 bits of each digest and the addon compared by prefix. data-v2 (same tiles, new index files) lists full digests, compared in full; data-v1 is still accepted by prefix. The addon is pinned to data-v2.
  • Package checks are stricter: the set of scripts is fixed (a new file must be reviewed), browser storage APIs are allowed only in the files that mean to use them and only the intended ones, and dynamic code or computed access to globals is refused anywhere. tests/verify-package.mjs proves each rule catches its violation.

Fixes

  • tools/pin-data.mjs really pins the catalog checksum now (it silently skipped let) and fails when a declaration is missing.
  • Realtime Data: a replaced connection can no longer mark the new one as disconnected or cancel its watchdog.
  • A transient console error (5xx, timeout, 429) keeps the last good data and is retried within seconds, instead of emptying the layer.
  • Error messages in the live status are translated; "key refused by the console" is told apart from "position agent not running".
  • A base that failed to load is retried with growing pauses instead of never.
  • Clicking in open space no longer selects an object behind the camera.
  • Removed dead code (player interpolation that could never run).

Notes

  • Permissions unchanged (files:addon-data). Share links and everything else as in 0.4.0.
  • Gateway (branch ddp): GET /mvshare is answered cross-origin for this identification.

Package: mapviewer3d-0.4.1.zip, SHA-256 68acdaba23b37b97255e9dc7a112c1673759dda1c3867eaa900af888a511c2dc