Where your data is stored
Everything about a project lives in the workspace folder: collections, environments, mocks and notes as text files, and recorded traffic and send history in a local SQLite database in the .microkoi service folder.
The app data folder (~/Library/) holds only settings, the list of recent workspaces and the root certificate. Logs are written to ~/Library/.
Settings for this machine — the selected environment, running mock servers and their network access, breakpoints, workspace trust — are stored there too, not in the project folder, so nobody can plant them through a repository.
Request chain sign-in tokens are not kept in the workspace folder but in the system password store: the macOS keychain, Windows Credential Manager or the Linux desktop password store. They never reach git or a monitor archive.
The app does not send us your traffic, requests, mocks or notes. They go out to the network only to addresses you set, through the proxy, the request client and monitors.
Checking for a new version
On its own, Bench contacts our website for one thing only: the beta version description. A minute after launch and then every six hours while the app is open, and when you click “Check now”, it makes a single request to https://microkoi.com/.
The request carries none of your data. It has only the User- header with the app version and platform, for example MicrokoiBench/, and the website sees your IP address.
The website responds with a signed version description: the number, the date and the release notes. Bench verifies the signature and, if the version is newer than the installed one, shows the “Update” badge in the window title bar, which opens the download page. Bench itself downloads and installs nothing.
To stop Bench from contacting the website on its own, turn off “Settings” → “Updates” → “Check automatically”. After that, the version is checked only when you click “Check now”.
The root certificate
The certificate is generated the first time the proxy is used and is unique to your installation. All Bench users cannot be compromised at once, because there is no shared key.
The certificate becomes trusted only through your action and only after the confirmation your system asks for: a password, a confirmation dialog or administrator rights. You can remove it at any time with the “Remove” button in Bench settings, under “Root certificate”. The certificate and key files stay on disk until you delete them yourself.
The private key is stored in a file that only your user account can read. That is the usual level of protection for a desktop app, but it is worth knowing: a program running as you can read the key. A compromised user account therefore means a compromised certificate. In that case, remove the certificate from the system store and delete the files from the app data folder.
What Bench does not do
- Install the certificate without your action and confirmation
- Run hidden: you start the proxy, and its state is always visible in the interface
- Accept connections from other devices until you turn that on with a switch
- Bypass certificate pinning or other protections of third-party apps
- Turn off certificate verification of real servers for all requests at once
- Send your traffic, requests or workspace contents to us or to third parties
Connections from the local network
To analyze a phone’s traffic, the proxy has to be opened to the local network. Only an explicit switch does that. While connections are allowed, the “Device” button in the Traffic header is green, and the device setup dialog shows the addresses of connected devices.
The proxy has no authentication, so any device on the network can use it. Turn connections on only on a trusted network and only while debugging. Devices on the network cannot use the proxy to reach the computer’s own addresses — localhost, 127.0.0.0/ and the addresses of its network interfaces — so development services running on the computer stay out of their reach.
The certificate page for phones serves only the certificate itself and its fingerprint for comparison. The private key never leaves your computer.
The bench-mocks console program
The program runs the proxy with mock responses without a window, for automated tests and continuous integration. Its control API listens only on 127.0.0.1 and requires a session token generated at every launch. A request with a foreign Host header or with any Origin header is rejected, so a page in a browser cannot control the program.
By default, the proxy also listens only on 127.0.0.1. The --listen option opens it to the whole network without authentication: use it only on an isolated test network. The session token is a secret: do not print it in full to the build log.
The program does not write to the workspace. The only exception is the root certificate, which it generates if there is none yet.
Workspaces from someone else’s repository
Anything in a workspace from a repository may have been prepared by someone else. So a folder that has never been opened on this computer opens as new: its mock servers, monitors and proxy do not start on their own until you click “Trust workspace”.
- Workspace files replaced with symbolic links are neither read nor overwritten, so the app never goes outside the folder
- Files are read with a size limit, so a planted huge file cannot exhaust memory
- The app shows a mock’s body but never opens or runs it
- A note does not load images from external addresses, or opening it would send a request wherever its author chose
Mock servers
A mock server grants CORS only to local origins — localhost, *.local and private network addresses — so a web app in development can work with it. Websites on the internet get no permission: otherwise any page open in the browser could read the server’s responses, which often contain data from recorded traffic.
While a server is running, any program on this computer can read its responses. Do not leave real tokens or personal data in endpoints.
Secrets in environments
Environment variables are stored as plain text in workspace files. The “secret” flag hides a value in the interface but does not encrypt it on disk, and the environment editor warns you about that.
A secret value is replaced with dots in send history, chain runs, monitoring reports and send error text. If a variable becomes secret later, Bench hides it in the “Requests” history already recorded too. Secret values are not included in a monitor archive: you fill them in again after import.
If the workspace is in a repository, keep tokens and passwords in a separate environment and add its file to your project’s .gitignore. Shared URLs and non-secret settings can live in environments that go to git.
Acceptable use
Bench is a debugging tool. Analyze only traffic from your own devices and apps, or traffic you have the owner’s permission to process. If recorded traffic contains other people’s personal data, the user is responsible for processing it lawfully.