Sanctions data and geofencing
Spanway's sanctions controls rest on two pieces of data. The jurisdiction policy is the list of jurisdictions under comprehensive United States sanctions that Spanway restricts, and every gateway image carries it. The list snapshot is a verified copy of the OFAC Specially Designated Nationals (SDN) list and the Consolidated (non-SDN) list, which Spanway uses to screen licensees and Spanway Cloud tenants. The self-hosted gateway's optional geofence and Spanway Cloud screening both read the same policy, so every surface restricts the same places.
This is compliance tooling and not legal advice. Have your counsel review the enforced jurisdictions, the candidates that are listed but not enforced, and the geofence settings before you rely on them. IP geolocation is best-effort. VPNs, proxies and Tor defeat it, and region data for Crimea and eastern Ukraine is often wrong, so screening customers at sign-up, billing and license issuance is the primary control and the geofence only adds to it.
A real-world scenario
A compliance officer wants to confirm which jurisdictions the gateway restricts and whether counsel has approved the policy version it runs. They open the Sanctions tab of the Compliance page, read the enforced rules and the approval badge, and keep the API answer as evidence for the review.
Steps
-
In the Admin UI open Settings, then Compliance, and select the Sanctions tab. The jurisdiction policy shows its version and whether the geofence is on.
-
Read the same policy with the API.
curl http://localhost:4000/sanctions/geofence -H "Authorization: Bearer $SPANWAY_MASTER_KEY" -
Check the Policy not yet approved by counsel warning. It must be gone before launch.
Expected result
The tab and the API list each rule with enforced and in_scope, the policy version and the readiness state, with no configuration problem reported.
The jurisdiction policy
Each rule in the policy has an id, a display label, a kind of country or subdivision, an ISO 3166-1 country code, and for subdivision rules the ISO 3166-2 subdivisions codes without the country prefix. Every rule also cites its legal_basis, the source_url it was checked against and the retrieved_on date. scopes names the surfaces the rule applies to (website, cloud, gateway and license), and enforced turns it on.
Rules with enforced: false are candidates. They are shown to counsel and on the Sanctions tab of the Admin UI's compliance page, but nothing enforces them, so turning one on is a one-line reviewed change. Subdivision rules can carry aliases that match a country plus provider subdivision codes, region names or city names. They exist because geolocation and billing data often label Crimea and the so-called DNR and LNR regions as RU. Region and city names are compared after removing accents, case and punctuation. Each alias lists the citations that support it, with the URL, the retrieval date and what the source shows.
approval.state is draft until counsel signs off, then approved with approved_by and approved_on. A draft policy is enforced as written, and the Sanctions tab shows a warning while it stays a draft.
The gateway refuses a policy with unknown keys, lowercase or malformed codes, duplicate rule ids, subdivision rules without codes, aliases on country rules or repeated scopes, and reports the problem on the Sanctions tab instead of starting with a broken policy.
The list snapshot
The snapshot records, for each list, the source URL, when it was fetched, OFAC's publish date and record count, and the SHA-256 of the download and of the normalized file. Each entry keeps its list, type, names, aliases, addresses, programs, dates and places of birth, nationalities, citizenships and identity documents. Every file is checked against its recorded SHA-256 when the snapshot is loaded, and a snapshot that was changed is refused. Spanway refreshes the snapshot every week from OFAC and checks each download against the digest OFAC publishes. OFAC changes the SDN list on most weekdays, so Spanway Cloud refreshes its own copy at runtime and license issuance refuses a snapshot older than ten days, see Sanctions screening on Spanway Cloud. The self-hosted gateway does not screen against the lists, its geofence only uses the jurisdiction policy.
Where the restrictions apply
| Surface | Control |
|---|---|
| A self-hosted gateway | The optional geofence, off by default. It answers requests from restricted places with 451 Unavailable For Legal Reasons. |
| Spanway Cloud | The geofence on every request including sign-up and login, plus tenant screening at sign-up, billing and every list change. |
| Licenses for the self-hosted product | Spanway screens every licensee against the lists before it issues a license, see license issuance. |
| The Spanway website | Visitors from restricted places get a 451 notice that lists the restricted places and the contact address. |
Limits
- IP geolocation can be evaded with a VPN, a proxy or Tor. The geofence is a supporting control.
- A country-only lookup cannot enforce subdivision rules.
decide()inspanway.sanctions.geofencereturnsUnresolved(subdivision_unknown)when a country has enforced subdivision rules but no region was resolved, so the surfaces that use it can count those cases. The website allows them. - SDN screening does not cover entities owned 50% or more by listed persons that are not listed themselves, or other parties that are not on any list.
- Blocking the website is a business choice and is not, on its own, what makes Spanway compliant with sanctions law.
Errors
| What you see | What it means | Fix |
|---|---|---|
403 Only proxy admins can read the sanctions policy on /sanctions/geofence | The caller is not a proxy admin or admin viewer. | Use an admin key. |
| Geofence configuration problem | The gateway found a problem in the geofence settings. | Fix the setting the message names, see sanctions geofence. |
| Policy not yet approved by counsel | The policy is a draft. | Have counsel approve the version before launch. |
| Sanctions lists are stale | The runtime list refresh has not succeeded recently. | Check the reason the last refresh was rejected on the Sanctions tab. |
Logs
This page's policy and list snapshot write no log lines of their own. The geofence logs each refusal and any configuration problem, as the geofence logs list, and Cloud screening logs list and settings problems, as the Cloud screening logs list.