Skip to content
oslew
Get a free key

Enterprise

Air-gapped deployment, on request

An air-gapped oslew deployment answers geocoding, routing and map requests on a network with no route to the internet. Answering needs only segment files on local disk and keys held inside the network, so nothing on the request path has to call out. Building data is the part that cannot happen inside, so releases are built outside and carried in. Three optional features that do reach out — a device-location vendor, map label fonts and emailed console sign-in — are switched off or replaced. It is arranged on request.

Last reviewed

Some networks are isolated by design: a classified environment, a control network for critical infrastructure, a clinical system that must never touch the public internet. Location services are usually missing from them, because a geocoder or router has meant either a call to a provider outside or a heavy database with a specialist to maintain it. oslew fits inside because its serving path is a single process reading prebuilt files. The sovereign hosting page covers the connected options; this one covers the case with no connection at all.

With no outside network on request

A resident deployment that makes no outbound call on the request path, with data carried in.

  • The MapLibre style names demotiles.maplibre.org for fonts and the URL is fixed in code, so labelled vector maps need the glyphs hosted inside the network and the style’s glyphs rewritten by the client.
  • Data cannot be refreshed from inside: the refresh pipeline downloads from public internet sources, so releases are built outside and carried in.
  • GEO_LOCATE_UPSTREAM must stay unset, or /v1/locate sends beacon ids to a vendor.
  • Wi-Fi and cell location answers only from a beacon feed loaded into the store.
  • The file-based key source currently expires fifteen minutes after the pod starts; an isolated network uses one shared bearer token, or a control plane inside it, until that changes.

What runs inside the boundary

  • The HTTP API is one binary, geo-serve, started with a store root, a bind address (127.0.0.1:8080 by default) and a release name.
  • geo-serve listens on plain HTTP; nothing in it terminates TLS.
  • /healthz depends on nothing but the process; /readyz fails while draining or before the pod holds entitlements to check keys against; /metrics serves object-store request rates in Prometheus text format. None of the three needs a key.
  • With none of those, GEO_API_TOKEN is one shared bearer secret for every keyed route; with no token either, every route is open.

The store is a directory of segment files, read from disk when the process starts and served from memory after that, so the machine needs enough memory for every layer delivered and nothing else to run. Keys are a JSON file listing each key and its rates, which means no database is required; a single shared bearer token is the simpler alternative for one internal consumer. Leaving both out opens every route, which on an isolated network may look harmless and is still worth avoiding. Terminating TLS, if your network requires it internally, is the job of whatever proxy sits in front.

Several pods behind an internal load balancer share one key’s rate only if they can reach a Redis inside the network to exchange what each spent; without one, each pod enforces the whole rate by itself. The query log is off unless you give it a local directory to write to, and what it records — never an IP address, a key or a query’s text — is set out on the security page.

How a release crosses the boundary

The refresh pipeline downloads its inputs from public sources on the internet: Overture’s public bucket, GeoNames, Wikidata and Wikipedia, the Mobility Database catalogue, transit operators’ GTFS feeds, AirNow, aviationweather.gov and ECMWF open data. None of that is reachable from inside, so the build runs on a connected machine outside and only its output crosses.

What crosses is ordinary files: immutable segments and the numbered manifest that says which segments make up the release. A later release rewrites only the partitions whose content changed, into new segments that supersede the old ones, so an update can be much smaller than the first delivery. Because they are plain files, they pass through whatever inspection your boundary applies to incoming media.

  • A serving pod reads the newest manifest once, at start-up; serving a new release means starting new pods.
  • On SIGTERM, geo-serve fails /readyz at once and keeps serving for GEO_DRAIN_S seconds (8 by default) before finishing the requests in flight.

In practice an update is a rollout you schedule: place the new segments and manifest in the store directory, then restart pods one at a time. Each stops taking new work, finishes what it is serving, and comes back reading the new manifest. No cadence is committed from outside. The network decides when data moves, and a release can stay in service for as long as it remains useful.

A store holds only the layers delivered to it, drawn from this set:

  • A store can hold places, addresses, postcodes, divisions (land, maritime and time zones), roads, elevation and named rasters, forecast grids, vessel tracks and traffic cubes, satellite-scene catalogues, transit timetables, place attributes, beacons, station readings and a PMTiles basemap.

Deliver what your applications use. A route that depends on a layer that was not delivered refuses with an error naming it instead of returning an empty result, so that gap is visible the first time anyone calls it. Combined lookups such as /v1/here and /v1/admin are quieter: they omit the missing layer or answer empty, so check them against the layers you delivered.

Features that reach out, and what to do with each

Feature What it would contact Inside an air gap
Device location fallback A commercial Wi-Fi and cell location vendor Leave the vendor unset. Location answers come only from a beacon feed built into the store, and devices whose beacons it lacks get no answer.
Vector map labels MapLibre’s public demo font server Host the glyph files inside the network and rewrite the style’s glyphs address in the map client.
Console sign-in An SMTP server, for sign-in links Use a shared token and no console at all, or point SMTP at an internal relay.

The details, from the code:

  • POST /v1/locate sends a device’s beacon ids to Unwired Labs or Combain only when GEO_LOCATE_UPSTREAM and GEO_LOCATE_KEY are set and no loaded feed knows any of them; with them unset, nothing is sent.
  • The MapLibre style at /v1/style.json points its glyphs at MapLibre’s public demo font server, demotiles.maplibre.org, and that URL is fixed in code; a map client drawing labels fetches fonts from there unless the style is rewritten.
  • PNG tiles and static maps are drawn by the server itself and carry no text, so they need no font server.
  • Console sign-in links go out over SMTP only when GEO_SMTP_URL and GEO_MAIL_FROM are set; otherwise they are printed to standard error.

Operator feeds need no change. Traffic and GTFS-Realtime feeds are pushed to a pod by whoever operates it, never fetched, so a traffic system on the same isolated network can feed the router directly; the operator feeds page describes how.

Agents inside the network

An AI agent on the isolated network can use the same tools as one on the internet. For an agent that starts its tool servers as local subprocesses, a stdio server reads the same store directory and offers the same read-only tools, with no network hop at all. For agents that connect over HTTP, the MCP endpoint works behind an internal ingress with one setting:

  • Behind an ingress, /mcp refuses requests with a 400 unless its public host name is listed in GEO_MCP_ALLOWED_HOSTS, because the transport’s DNS-rebinding guard admits only localhost by default.

Nothing an agent can call writes to the index or applies a feed, so an agent on a sensitive network can read locations and routes but cannot change what anyone else is told. The MCP page lists the tools.

Limits stated plainly

  • Every segment is held in memory, so the hardware has to fit every layer delivered, and adding layers means adding memory.
  • Data cannot be refreshed from inside. Freshness is whatever the last carried-in release contains, and oslew commits to no release cadence.
  • There is no packaged installer or container image today; an installation is worked out with a person.
  • Labelled vector maps depend on glyph files you host. PNG tiles and static maps need none.
  • Where the data is strong is a property of the release delivered, not of the deployment; test it on your own addresses.

How to start

Write to the enterprise address on the contact page. Say how data may cross your boundary and how often, which products and layers you need, the hardware available and its memory, whether agents or operator feeds are involved, and whether the console is wanted inside at all. Data residency describes what an installation keeps and where, which usually answers the first questions from a security team.

Bottom line

An air-gapped oslew is a serving process, a directory of segments and a way to check keys that lives inside the network. Everything that would reach out is optional and named here, and the one thing the network cannot do for itself — build a release from public sources — happens outside, with the result carried in as files.

Questions

Can oslew run on a network with no internet connection?

Yes, as an installation arranged on request. The serving process reads its store from a local directory and its keys from a shared token or a control plane on the same network, and needs nothing outside to answer. The device-location vendor fallback, the map style’s font server and emailed sign-in links are the only parts that reach out, and each can be left off or pointed inside.

How does an air-gapped installation get new data?

A release is built outside the network, because the build downloads its inputs from public sources, and crosses the boundary as segment files and a manifest. Serving pods read the manifest when they start, so the update takes effect when you restart them, on a schedule you choose.

Do we need a database or an object store?

Not necessarily. A single shared token needs no database, and the store can be a local directory. Per-key rates need a key source that stays fresh: a JSON key file is read at start-up, but today the server treats its keys as stale fifteen minutes later, so a long-running installation with several keys runs a Postgres control plane inside the network, which also brings accounts, members and an audit trail.

Can AI agents use oslew inside the isolated network?

Yes. The same MCP tools are available over stdio, from a local process reading the same store, for an agent that launches its servers as subprocesses. The HTTP endpoint works too, behind an internal ingress, once its host name is on the allowed list.

What happens if a data layer is not delivered?

A route that cannot answer without it — routing, transit, elevation and the like — refuses with an error naming the missing layer, so the gap is not mistaken for no match. Lookups that combine several layers, such as everything at a point, leave the missing one out. A deployment only needs the layers its applications use, which also keeps the memory the machine needs down.

Browse every page →