Private data

The repo is public: github.com/Zack-XS/AssistX. Anything committed can be read by anyone, forever. Deleting it in a later commit does not remove it from history.

Never commit

KindExamplesUse instead
Real addressesserver IP, Tailscale IP (any 100.64 to 100.127 address), home IP127.0.0.1, 192.0.2.10 (docs range), my-server.example
Host names and SSH aliasesreal server name, ssh alias, Tailscale nameserver.example, phone-mac.tail1234.ts.net
Peoplereal names, emails, phone numberssam@example.com, +1 555 0100
Keys and tokensAPI keys, OAuth secrets, bearer tokens, owner.token, db.keyenv vars or files in data/ (ignored)
Signing keys~/.assistantx.keystore, any .jks, .pem, .p12keep outside the repo
Sign-in stateauth.json, cookies, browser profileskeep outside the repo
User dataserver/data/, databases, chats, memory, location, health, voicenever leaves the server
Machine fileslocal.properties, .env, .DS_Storeignored by .gitignore

Tests and fixtures count too. A test must use made-up data:

Logs follow the same rule (Logging): never log tokens, keys or message text.

The check

tools/private-data-check is a small Rust tool. It scans every file git would commit and fails on:

Run it before every commit:

cargo run -j1 --manifest-path tools/private-data-check/Cargo.toml

Exit 0 means clean. Exit 1 lists each finding as path:line: kind: value.

It also runs:

The tool's own tests: cargo test -j1 --manifest-path tools/private-data-check/Cargo.toml.

When the check is wrong

If a hit is truly fake data, add it to .private-data-allow at the repo root:

# Why this is safe (one line).
server/src/config.rs: 192.0.2.10

If private data got pushed

  1. Treat it as leaked. Rotate the key or token now. Change the password.
  2. Remove it from the files and push the fix.
  3. For a real secret, also rewrite history (git filter-repo) and force-push. Ask the owner first: this rewrites everyone's history.
  4. Write what happened in Reporting terms: what leaked, when, what was rotated.