Enterprise
Security and data handling
A geocoding request carries an address, and an address usually belongs to a person, so what a provider keeps matters more here than for most APIs. oslew’s query log has no field for an IP address, a key or the text of a query, keeps positions only as coarse cells and never records a request body. Keys are stored as hashes, read from one header only and refused about a second after revocation. The one place raw addresses persist is a batch job, and only until you delete it.
Last reviewed
A security review of a location API usually comes down to two questions: what does the provider keep about each request, and who can make requests in your name? This page answers both from what the code does today rather than from policy. Where something cannot happen, it is because there is no field to hold it or no route to do it. The related question of where each record physically sits is answered on the data residency page.
What the query log keeps
Every answered request can be written to the query log as one structured event. The log exists for two jobs: showing how close each customer runs to the rate it bought, and finding what people search for that the data does not hold. Neither job needs to know who asked, so the event is shaped not to carry it.
- Each event keeps the minute and second, the route, the tenant (a customer, never a person), the product, the status, the latency, a relative weight and the outcome.
- A query is kept only as normalised tokens, and every token that contains a digit is replaced by “#”.
- The text after a query’s last comma is kept normalised but not masked, so a postcode sent as context is recorded as sent.
- Positions are kept only as the level-12 cell they fall in, about 2 km across.
Take a geocode for Calle Madero 1, 06000. The event holds the tokens calle, madero and #: the house number is masked, as is every token with a digit in it, whether it was a street number, a flat, a phone number or a vehicle registration someone pasted into a search box. The context, 06000, is kept as sent, because contexts that resolve to nothing are how gaps in the data are found. If a postcode is more than you want recorded, the only way to keep it out is not to send it, and that has a cost: the accuracy page shows how much a postcode is worth to the answer.
What the log has no way to hold
Most logging policies are promises about what will not be looked at. This one is a property of the event’s shape: a field that does not exist cannot be filled by a bug, a debug flag or a curious engineer.
- The query log’s event has no field for an IP address, an API key, the text of a query or a precise coordinate, so none of them can be written.
- Request bodies are not logged: not the Wi-Fi and cell ids a device saw, not a map-matching trace, not a batch file’s rows.
- An MCP request is logged as one bare event for the endpoint mcp, without the tool’s name or its arguments.
The body rule matters most for three kinds of request. A device-location request carries the Wi-Fi and cell identifiers a phone could see, which can reveal more than an address. A map-matching trace is a record of where a vehicle went. A batch file is a table of customers. None of them reaches the log. Agents are treated the same way: calls through the MCP server are counted, but what an agent asked is never written to the log.
How the log is read
The log is analysed in aggregate: traffic, errors and latency per route, the busiest second each customer reached, the words most often searched and how often they found nothing. Two rules keep that analysis from turning into a record of one customer’s activity, and keep recording from ever costing a caller anything:
- Analytics leave out any token string, context or cell seen from fewer than five distinct accounts.
- Logging never blocks or fails a request: an event that cannot be queued is dropped and counted, and /v1/health reports the count.
The first means a street name or a postcode that only one customer ever sends never appears in an analysis, however often it is sent. The second makes the log best-effort by design: no request is slowed or refused because recording it failed, and the dropped count makes a gap visible instead of silent. In a deployment you run yourself, the log stays off until you give it somewhere to write.
How API keys are stored and checked
- An API key is stored only as a SHA-256 of the whole key, beside its visible prefix; the secret is shown once, when it is minted, and no route can return it.
- A key’s secret is 32 characters drawn from 62 letters and digits by the operating system’s CSPRNG: about 190 bits.
- A key is read only from the Authorization header; a key in the query string is ignored, including on the compatibility routes.
- A revoked key is refused within about a second: every pod polls for revocations once a second, and a database notification shortcuts the poll.
- A pod that has not reached its control plane for fifteen minutes refuses keys with a 503 rather than trust an old snapshot.
- A pod that has never loaded its keys admits nobody.
Two design choices sit behind that list. The hash is a fast one, deliberately: a slow password hash protects a secret a person chose and an attacker can guess, while a random secret of that length cannot be guessed at any hashing speed, so a slow hash would only let anyone burn server time by sending nonsense keys. And the pods fail closed. A pod that loses touch with its control plane keeps checking keys against the snapshot it holds for a bounded time and then refuses them, rather than trusting a list that may include revoked keys. The authentication guide covers rotating a key without downtime.
What a key cannot be limited to
These are the limits a reviewer should know before approving an integration, stated as plainly as the rest:
- A key grants every product its plan includes: there are no per-key scopes, IP allowlists or referrer restrictions.
- The service sends no CORS headers, so a page on another origin cannot call it from a browser.
Together they make a key a server-side secret and nothing else. It belongs in a backend’s configuration, never in a browser bundle or a mobile app, and a leaked key works from anywhere until it is revoked. The controls that remain are organisational: one key per service or environment, so revoking one leaves the others running; separate keys for bulk jobs and for AI agents, so their traffic cannot crowd out a checkout and a misbehaving agent can be cut off alone; and the console’s rotate action, which mints the replacement and revokes the old key in one step.
A stolen key spends its plan’s rate and reads what its plan includes, and an Enterprise key with the operator product can also apply feeds. Any of the account’s keys can list, collect and delete its batch jobs, because jobs belong to the account rather than to the key that submitted them — one more reason to delete a job once its results are in. The migration checker is careful with other providers’ secrets as well: /v1/migrate never echoes a credential from a pasted URL: key, access_token, apiKey, api_key and token come back as «redacted».
Console sign-in and the audit trail
- The console has no passwords: sign-in is a single-use emailed link that expires after fifteen minutes and is stored only as its SHA-256.
- A console session lasts twelve hours.
- Every administrative change, including an administrator acting for a customer, writes a row to an audit log.
With no passwords there is no password table to leak and nothing reused from another site to try; a console account is exactly as safe as the mailbox its links go to. Any member of an account can mint keys, so membership is the control worth reviewing. Administrative changes land in the audit log, including those an oslew administrator makes on a customer’s behalf.
Batch files: where addresses do persist
- A batch job keeps the uploaded file and every result part until the job is deleted; there is no expiry.
- Deleting a batch job deletes its input and its result parts; the job’s record — id, state, counts and times — stays in the list.
A batch job has to keep its input. The file is stored before the job is accepted, so that another pod can finish the work if the first one goes away, and the results have to wait somewhere until you collect them. That makes a batch job the one place a customer’s addresses sit in full, alongside every id column you sent with them. Collect the results, then delete the job; batch geocoding describes the lifecycle.
What is not claimed
- oslew has not been audited against any security standard, and no certificate or attestation report exists to send.
- The serving binary speaks plain HTTP. The hosted API is reached over HTTPS, and in a deployment you run, terminating TLS is the job of your ingress or load balancer.
- Encryption at rest is a property of the disk or object store the index and batch files are kept in, not of the service itself.
- An API key cannot mint another key. Keys are minted from the console, with a signed-in session, and any account member can do it.
Anything a procurement process needs beyond this — a questionnaire, contractual terms on data handling — is part of an Enterprise conversation, described on the procurement page.
Bottom line
oslew’s data handling is narrow by construction: the query log cannot hold an IP address, a key, a query’s text or a precise position, and keys cannot be recovered from what is stored. Its access control is narrow too, and that is the part to plan around — a key is its whole plan, usable from anywhere, so keep it on a server, split keys by purpose, and delete batch jobs once their results are collected.
Questions
Does oslew keep the addresses I geocode?
Not as text. The query log keeps a query as normalised words with every word that contains a digit masked, so house and flat numbers are gone, while the context after the last comma, such as a postcode, is kept as sent. The exception is a batch job, which holds the uploaded file in full until the job is deleted.
Can an oslew API key be restricted to certain products, IP addresses or domains?
No. A key grants every product its plan includes, and there are no per-key scopes, IP allowlists or referrer restrictions. Keep keys on your servers, use a separate key for each service or environment so that one can be revoked without touching the rest, and give bulk jobs and AI agents keys of their own.
How quickly does a revoked key stop working?
In about a second. Every serving pod checks for revocations once a second, and a database notification usually arrives sooner than the poll. From then on the key is refused with a 401, exactly as if it had never been issued, and a batch job it was pacing fails with an error that says why.
Can I call the oslew API directly from a web page?
No. The service sends no CORS headers, so a browser refuses the cross-origin call, and a key in page code could be read by anyone who opened the developer tools. Call the API from your backend and let your frontend talk to that. The key is read only from the Authorization header, never from the URL.
Is oslew certified to a security standard?
No. oslew holds no SOC 2 report, no ISO 27001 certificate and no other third-party attestation. What a reviewer gets instead is a precise account of what the code records and what it has no way to record, set out on this page and in the documentation it is drawn from.