Security
To read your car, Runsten needs a way into its data at the maker: tokens, a credential or a key. This page says how they and the car's data are protected on my.runsten.app, what is left to you when you run Runsten yourself, and how to report a flaw. The privacy policy lists everything Runsten keeps.
What Runsten keeps to read your car
| Make | What Runsten keeps |
|---|---|
| Volvo | the tokens of your Volvo ID, and the API key of the application you create on Volvo's developer portal |
| Polestar | the client ID, secret and Account ID you create on Polestar's Data Portal |
| Tesla | the access and refresh tokens of your sign-in with Tesla |
| BMW and MINI | the client ID you create in the MyBMW or MyMINI portal, and the tokens BMW gives for it |
| Hyundai, Kia and Genesis (beta) | the client ID and secret of the key you create in the Pleos Playground |
Never the password of your account at the maker. Each of these is encrypted in the database with AES-256-GCM, under a key that is not in the database. Once given, it is never shown back whole: only the last four characters of a key or a client ID.
On my.runsten.app
- Everything runs at Scaleway, in the Paris region: the database, its backups, the maps' tiles, the emails. You sign in at auth.runsten.app, on Runsten's own servers.
- Each account's data is kept apart from the others' in the database.
- Every connection is encrypted (https). The mobile app keeps its session in the phone's Keychain or Keystore.
- The logs hold no position, VIN or token.
- A personal access token, for a script or an assistant, is shown once; Runsten keeps only its SHA-256 fingerprint, so a copy of the database gives no usable token. An assistant reads only, and never receives the coordinates of a position.
- If the data is ever breached, I notify the Belgian Data Protection Authority within 72 hours, and you too if the risk to you is high.
Cutting Runsten off from your car
You can remove the access at the maker's end, without going through Runsten:
- Volvo: delete the application you created on Volvo's developer portal; its key stops working.
- Polestar: delete the credential on the Data Portal.
- Tesla: in the Tesla app, Profile > Security & Privacy > Third-party apps, or remove the virtual key in the car (Controls > Locks).
- BMW and MINI: delete the client ID in the MyBMW or MyMINI portal.
- Hyundai, Kia and Genesis: revoke the key in the Pleos Playground.
Deleting a car or your account in Runsten deletes its data. The full export is in the settings, on every plan.
When you run Runsten yourself
The code is the same, and so is the encryption, but the server is yours, and so is its security:
- The stack listens on the host's loopback only: put it behind an https reverse proxy, or reach it through an SSH tunnel (Reverse proxy). The database has no port open.
RUNSTEN_TOKEN_KEYencrypts the makers' tokens and keys. Keep a copy in a password manager, apart from the backups.- Only the latest release gets security fixes: Updating. Each release's images come with their SBOM and provenance, and its notes give their digests.
- Backups are yours to run and to keep safe: Backup and restore.
- A password for a self-hosted account is at least 15 characters, and is stored hashed with argon2id.
Reporting a flaw
Please don't open a public issue. For a flaw in the code, use GitHub's private Report a vulnerability form; for one in my.runsten.app, write to support@runsten.app. Say what an attacker could do and how to reproduce it, without real VINs, tokens or keys. You get an answer within a week, and credit in the advisory unless you would rather not be named. The policy is in the repository: SECURITY.md.