maskyr privacy & data architecture

How the maskyr website and local gateway process prompts, mappings, audit metadata, and upstream provider connections.

1. This documentation website (maskyr.dev)

The static pages on maskyr.dev serve self-hosted typography and local scripts with no third-party font CDNs, no analytics libraries, and no tracking cookies. Interactive samples in the homepage workbench run inside your browser unless you point a client at a running local gateway.

2. Local gateway data flow

When you run the maskyr gateway locally, prompts and responses pass through your machine before reaching an external AI provider:

  • Detection and pseudonymisation: Deterministic regex validators, rules, context cues, title-case and address heuristics, a static name gazetteer, and policy allow/deny terms inspect outbound text locally on your host today and replace matched entities with format-preserving pseudonyms. Fylume's specialised local detection model is currently in development and not yet bundled (modelDetection.enabled defaults to false, and optional external loopback model hooks are disabled by default).
  • Encrypted vault storage: Original-to-pseudonym mappings and stored provider API keys persist in $MASKYR_HOME/maskyr.vault with file mode 0600, encrypted at rest with AES-256-GCM.
  • Metadata-only audit log: The local audit file (audit.jsonl) stores request timestamps, entity counts, route (external, local, or blocked), timings, and keyed scope hashes only. It never stores original values, pseudonyms, or message text.
  • In-memory chat & transmission inspection: The local UI holds chat history in memory without writing it to browser storage, and the last 20 masked payloads are cleared when the vault locks.

3. Upstream AI providers

Only masked payloads leave the gateway toward endpoints defined in config.json (OpenAI, Anthropic, Gemini, or a loopback OpenAI-compatible runtime). Data received by external services is governed by your account agreement and privacy terms with each operator.

Static egress verification (scripts/check-egress.mjs) enforces zero telemetry or analytics imports across source files and dependencies, while restricting network primitives to provider adapters, the local backend client, the SDK, the CLI, and the same-origin admin API and UI.

4. Scope and non-claims

maskyr is a local risk-reduction gateway, not a compliance certificate. Detection relies on deterministic validators, rules, context cues, heuristics, and a name gazetteer and cannot guarantee catching every sensitive string on first mention or inside uninspected media. See the threat model for verified mitigations and explicit limits.