Storage and privacy
Where lookups are saved, MySQL/MariaDB setup, what is sent to providers and bStats, and how long data is kept.
Tables
OriginGate creates its own table for lookups, origingate_ip_cache, on start:
| Column | Type | Notes |
|---|---|---|
ip | VARCHAR(45) primary key | Canonical text form, for example 2001:db8:0:0:0:0:0:1. One row per address, also for IPv6 |
provider, organisation, operator_name, city, region, country | VARCHAR(255) | NULL when unknown |
country_code | CHAR(2) | |
asn | VARCHAR(32) | |
vpn, proxy | BOOLEAN | |
type | VARCHAR(64) | Network type from proxycheck.io, or Hosting from ip-api's hosting flag |
checked_at | BIGINT | Unix seconds, indexed |
Saves replace the previous row for the same IP in one step, in both SQLite and MySQL, so several proxies can share one table. Long values are shortened to fit.
List entries (names, IPs, notes, and who added them) are kept until they are removed or expire. origingate cache clear does not touch them.
The allow and deny lists use a second table, origingate_list, in the same database. It is created together with the first one:
| Column | Type | Notes |
|---|---|---|
target | VARCHAR(64) primary key | A lowercase player name, a UUID, an IP address, or a CIDR range. One row per target, so adding it to one list replaces it on the other (only for staff with both list permissions) |
kind | VARCHAR(5) | allow or deny |
expires_at | BIGINT | Unix seconds, NULL when the entry never expires |
note | VARCHAR(255) | NULL when there is none |
added_by | VARCHAR(64) | Who added the entry |
added_at | BIGINT | Unix seconds |
SQLite
The default. The file is plugins/origingate/data/origingate.db. Nothing to set up. SQLite runs on the systems listed under compatibility; elsewhere, lookups are kept in memory only until you switch to MySQL or MariaDB. The same happens when the file cannot be opened (damaged, locked by another program, or a folder that cannot be written): connections are still checked, an error is logged, and origingate reload tries the file again.
MySQL and MariaDB
- Create a database (utf8mb4) and a user with
CREATE,SELECT,INSERT, andDELETEon it.DELETEis needed for replacing and expiring rows. - Fill in
storage.mysqland setstorage.type: mysql. - Run
origingate reload. The table is created automatically.
storage:
type: mysql
mysql:
host: db.example.com
port: 3306
database: origingate
username: origingate
password: "your-password"
ssl-mode: verify-full # verify-full, verify-ca, or disable
connect-timeout-millis: 3000
socket-timeout-millis: 5000
The password is used as written; environment variables are not expanded. The driver (MariaDB Connector/J) is bundled. It opens one connection per operation, and the 4 lookup workers limit how many run at once.
If the database cannot be reached when OriginGate starts or reloads, OriginGate still starts, logs a warning, and checks connections without saved lookups. The table is created as soon as the database answers. A database that answers but refuses the setup (for example, missing permissions) stops the load instead, since that needs a config fix.
While the database is down, each failed attempt makes OriginGate skip storage for 60 seconds, so logins are not slowed down by connection timeouts.
Privacy
IP addresses and their lookup data are personal data.
- Each provider in
country-fromandvpn-fromreceives the player's IP address and your key or token when it is asked. The free ip-api.com service receives them over plain HTTP. MaxMind receives only your account ID and license key when the file is downloaded, never player IPs. Apart from these, the Discord webhook, and bStats, nothing is sent anywhere. - Stored lookups older than
keep-daysare deleted every hour (first run one minute after start). Daily log files older thanlog-file-keep-daysare deleted at the same time. A value of0turns off that deletion. - Each IP has one row holding its latest lookup, so a new lookup replaces the old one.
origingate cache clear <ip|all>deletes lookups from memory and from OriginGate's table right away.- The console lines and log files contain IP addresses. Velocity's own proxy log is separate and follows its own settings.
Discord webhook
The webhook is off until discord.webhook-url is set. When it is on, OriginGate sends Discord a message for each kick and bypass (not with dry-run: true) and for lookup problems. A message can contain:
- the player's name
- the rule that matched, and the note (for example
flagged as VPN) - the lookup provider, the organisation, and the country
- a caution, when a name or permission bypass was used on a server that does not check names
- the player's IP address, only when
discord.show-ipistrue
Anything posted to a Discord channel is kept by Discord and visible to everyone who can read the channel. Anyone with the webhook URL can post to the channel, so keep it secret: OriginGate never logs it. Posts go out over https.
bStats
OriginGate uses bStats to count how many servers run it. It is on by default. The data is anonymous: no player names, UUIDs, or IP addresses are sent.
About every 30 minutes, OriginGate sends bStats:
- A random server ID, made by bStats the first time it runs
- The server or proxy software and its version
- Online mode and the number of players online, plus the number of backend servers on a proxy
- The Java version, operating system, and number of CPU cores
- The OriginGate version
bStats also records the server's country. It says IP addresses are used only for rate limiting and are never linked to the data. See bStats' notes for server owners.
Turn off bStats
Set enabled to false in the bStats file, then restart the server or proxy:
| Platform | File | Setting |
|---|---|---|
| Bukkit, Spigot, Paper, BungeeCord, Waterfall | plugins/bStats/config.yml | enabled: false |
| Velocity | plugins/bStats/config.txt | enabled=false |
This file is shared, so it turns off bStats for every plugin on that server, and for the server software too if it uses bStats.
On Velocity, keep the server-uuid line. bStats replaces a config.txt without it, and turns bStats back on.