Repository navigation
mapterm 0.1.1
Security fixes for memory use and API keys.
Security
- A small vector tile can no longer decode to gigabytes: each feature gets its own copy of
the dictionary strings it references, so one long string shared by many features (a
1 MiB tile, 5 KiB gzipped) took 2 GiB. A tile's feature properties are now limited to
64 MB decoded (mvt::MAX_PROP_BYTES); real tiles stay far below it. - API keys no longer follow redirects to other hosts. Requests that carry a key (in a
header such asmaxar-api-key, or in the URL) follow a redirect only to the same scheme,
host and port; reqwest droppedAuthorizationon a cross-origin redirect but kept custom
key headers. No request sends aRefererany more, which carried the previous URL,
including a key in its query, to the next host. - The raster tile store is limited to 512 MB (
raster::RASTER_STORE_BUDGET) as well as 256
tiles: 4096 px tiles that compress to a few hundred KB each could fill about 16 GB.
Decoding also moves the pixels instead of copying them, halving the peak per tile.
Binaries
| platform | file |
|---|---|
| Linux, x86-64 (glibc) | mapterm-0.1.1-x86_64-unknown-linux-gnu.tar.gz |
SHA256SUMS lists every archive's checksum, and SHA256SUMS.sig is the maintainer's SSH
signature of it. The trusted key comes from the signing keys on the maintainer's GitHub
account, not from this repository (fingerprint
SHA256:LiOY0+3e/eOQFeUsG7iMovOBJui3yCAXXHlWz48c4uk). To download and check with
gh:
gh release download v0.1.1 --repo tlpinney/mapterm
gh api users/tlpinney/ssh_signing_keys --jq '.[].key | "tlpinney namespaces=\"mapterm-release\" " + .' > allowed_signers
ssh-keygen -Y verify -f allowed_signers -I tlpinney -n mapterm-release -s SHA256SUMS.sig < SHA256SUMS
shasum -a 256 -c SHA256SUMS --ignore-missing
tar xzf mapterm-0.1.1-*.tar.gzOr build it with Cargo (Rust 1.89 or newer):
cargo install --git https://github.com/tlpinney/mapterm --tag v0.1.1macOS: install with Cargo (above) until there are notarized macOS binaries.