Skip to content

Privacy and Security

jayjay181818 edited this page Nov 17, 2026 · 2 revisions

Privacy and Security

Stockbar keeps your portfolio on your Mac. There is no account, no telemetry and no analytics.

What is stored, and where

Data Location
Holdings and preferences UserDefaults (com.stockbar) and Core Data
Price and portfolio history ~/Library/Application Support/Stockbar/StockbarDataModel.sqlite
Daily backups ~/Library/Application Support/Stockbar/Backups/portfolio_backup_*.json
Provider order ~/Library/Application Support/com.stockbar/.stockbar_config.json (readable only by your account)
Stockbar's Python environment ~/Library/Application Support/Stockbar/python-env
Market-data API keys, Trading 212 credentials, Folync token The macOS Keychain, in one item labelled "Stockbar credentials"
Quote cache ~/Library/Caches/stockbar-cache/quote_cache.json
Logs ~/Library/Logs/com.stockbar/stockbar.log (and two older files)

Folync supplemental data is cached in separate files in Application Support. A bearer token is never cached.

What is sent over the network

Connection When What is sent
Market data (Yahoo Finance through yfinance; FMP and Twelve Data if you configure them) Each refresh Ticker symbols, and your API key for FMP or Twelve Data
Exchange rates (exchangerate-api.com) At launch, then about once an hour; not used while Folync's Exchange rates switch is on A request for rates; nothing about you
Trading 212 Only if you connect it Read-only API requests with your key
Your Folync server Only if you connect it Requests to the server you configured
Updates (GitHub) About once a day, and when you install A request for one file, then the download. Nothing about you or your portfolio beyond what any web request shows (your IP address and the Stockbar version). System profiling is off.
uv download Only during Python setup, if no uv is installed A request to download a pinned release, checked against a built-in SHA-256

Market-data providers see only ticker symbols (and your key). Stockbar never places orders.

Credentials

  • Everything secret is in the Keychain: the Trading 212 API Key and Secret, the Folync client token and server, and the FMP and Twelve Data API keys.
  • The Python helper is handed the two market-data keys through its environment for each run.
  • A key an earlier version left in the settings file is moved to the Keychain the first time it is needed.
  • Credential fields stay empty after you save them, and show a stored status instead.
  • Logs redact API keys, Trading 212 credentials, auth headers and sensitive account identifiers. Check an exported log before sharing it anyway.
  • Backups and the backup scripts do not include Keychain items. An export includes your keys, encrypted with AES-256-GCM under the password you choose. See Backups, Export and Import.
  • After an update, macOS asks once for Keychain access. See Updates and Channels.

Trading 212 and Folync

  • Trading 212 is read-only. Stockbar never places orders, and you should not enable Orders - Execute when you make the key. See Trading 212.
  • Folync must use HTTPS. Plain HTTP is accepted only for localhost and 127.0.0.1. An address with a user name, password, query or fragment is refused. See Folync.

How the app is built and signed

  • Updates are built by GitHub Actions from the repository and signed ad hoc, so there is no Apple developer account and no name or address of a person in a build.
  • Because it is not notarised, macOS asks you to choose Open Anyway once on first launch. See Installation.
  • Every update is verified with an EdDSA signature against a key built into the app before it is installed. See Updates and Channels.
  • The app is not sandboxed: it starts Python as a separate process to fetch prices, which a sandbox would not allow. The one entitlement it carries lets the ad hoc signed app load its Sparkle updater framework.
  • The Python helper takes only symbols made of A-Z, 0-9 and . ^ = -, which stops a symbol being used to inject arguments.

Reporting a security problem

Please report a suspected vulnerability privately, through GitHub's private vulnerability reporting, not in a public issue. Say what you found, how to reproduce it and which version you were running. Do not include real API keys, tokens, account numbers or portfolio data. Only the latest release receives fixes. The full policy is in SECURITY.md.

Clone this wiki locally