Skip to content

MapViewer3D Addon 0.4.2

Latest

Choose a tag to compare

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

MapViewer3D addon 0.4.2 – fixes from a code review of 0.4.1

Before this release the whole change set (addon and share gateway) went through a /code-review high pass; 10 findings, all fixed, each with a test.

Security

  • Only administrators manage share links. The gateway used to accept any console key with maps: Read (a bot, a monitor): such a key could publish links, delete everybody's links or take over the gateway's key. A key must now also hold Addons: Read (read-only; it marks an administrator). The addon tells you when a key lacks it.
  • A remembered gateway address is confirmed before the key is sent to it. The address lives in addon storage that every user of the addon can change; it is shown to you and has to be confirmed. Addresses derived from the console's own address need no question.
  • The package check cannot be bypassed by a URL on the same line. A real comment scanner replaces the sed stripping ('https://x'; localStorage.setItem(...) used to pass).

Fixes

  • The Realtime Data health check sees a stopped agent (HTTP 503) again; 0.4.1 served the last good answer instead.
  • A key the console refused is reported as such (also after the layers were closed), not as "agent not reachable".
  • Behind a reverse proxy on the same host every visitor no longer shares one rate limit and one ban (the address the proxy appends in X-Forwarded-For is used).
  • The gateway no longer probes its own key (4 requests) on every admin call.
  • A double click on Create link creates one link.
  • Visitors get a sanitised Realtime snapshot for the polling fallback instead of a 404.
  • Dead code removed.

Notes

  • Permissions unchanged (files:addon-data). Gateway changes are in branch ddp.
  • Your API key for the addon now needs one more read-only scope for share links: Addons: Read (Settings → API Keys).

Package: mapviewer3d-0.4.2.zip, SHA-256 81e2a42b07ea64675d8c6045faadabc9c3b2524f15d11480317309b61f644c9d