Skip to content

Security: codedaptive/tessera

Security

SECURITY.md

Security Policy

Tessera runs on your machine, as you, and reads the code you point it at. It is a pre-release. This document says what it touches, what it does not defend against, and how to report a problem.

What Tessera does on your machine

Reads

  • The files of a project you index, under the project root, leaving out what the project's ignore rules leave out.
  • Git, read-only. For a project in a git repository it asks git where the working copy is, which files are tracked or ignored, what HEAD is, which worktrees exist, and the content of a file at a revision. It never commits, stages, checks out or moves a ref.

Refuses

  • System and credential folders. tessera init and tessera index refuse your home folder, a parent of it, or the filesystem root, unless you pass --force. A tool call is refused when its projectPath is one of the system roots themselves (/, /etc, /usr, /var, /tmp and the like), or is ~/.ssh, ~/.gnupg, ~/.aws or ~/.config or anything under them.
  • Paths outside the session's repository. An MCP session answers only for the repository it was launched in and that repository's git worktrees or, launched outside git, the launch directory and what is below it. A path outside them gets guidance, not results.

Writes

  • <project>/.codegraph/: the index (tessera.db and its search files) and a .gitignore that keeps the folder out of git.
  • The server's state folder, ~/.local/state/tessera ($XDG_STATE_HOME/tessera when set) or the absolute path in CODEGRAPH_STATE_DIR: among other files, the server's lock, its Unix socket, its log, the builder's log and the build queue.
  • Git hooks, only when you agree. Where live file watching is unavailable, tessera init offers to add a block that runs tessera sync to the repository's post-commit, post-merge and post-checkout hooks. It is written when you accept the offer or pass --yes. Existing hook content is kept, and a hook that is not a shell script is left alone. This is the only write into a repository's git folder.

Runs

  • git, for the reads above.
  • rg (ripgrep), for tessera grep and the codegraph_grep tool.
  • Itself, as the background server and as the index builder.
  • On macOS, ps, /usr/bin/vm_stat and /bin/cp, to tell a lock's holder from a later process with the same pid, to size the indexing work, and to copy an index between worktrees.

The network

  • The server does not listen on the network. It listens on a Unix socket in its state folder, which it makes readable and writable by its owner only. tessera botlink accepts only a local socket path and refuses an --http address.
  • One step can reach a remote. The server's daily maintenance asks git for the release tags of the Moot kit repositories recorded when the binary was built (git ls-remote --tags origin, run in those checkouts). On a machine that does not have those checkouts the step reports a failure and the rest of maintenance carries on.
  • Compiled in, not configured. Tessera stores its index through PersistenceKit's SQLite backend. PersistenceKit also contains a PostgreSQL backend with TLS support, and that code is part of the binary. Tessera configures no PostgreSQL connection.

What this does not defend against

Your machine is the boundary. The index and the server's socket belong to your user account. Any process running as you can read the index files and talk to the server. Tessera has no accounts, no tokens and no access control beyond the repository a session was launched in.

The index is as sensitive as the source. It holds symbol names, signatures, doc comments, file paths and search text derived from the code. Protect .codegraph/ as you protect the code it was built from, and do not commit it.

Source reaches the agent as written. The tools return file content verbatim. Tessera does not sanitise it. An agent that indexes a repository it does not trust should treat the returned source as untrusted text, as it would if it had read the file itself.

Answers are not proof. Call edges across files may be bound by name, and one can be wrong. Do not use a Tessera answer as the only evidence that code is unreachable or that a change is safe.

Hooks run with your privileges. A git hook Tessera installs runs tessera sync as you after a commit, merge or checkout. It runs whichever tessera comes first on PATH.

Two tools, two folders. Tessera's server keeps its state in ~/.local/state/tessera, CodeGraph's in ~/.codegraph. Both read CODEGRAPH_STATE_DIR, so when it is set for one, give the other a different absolute path.

Verifying your binary

There are no released binaries yet, so there is nothing signed to verify. Build from source and you know what you run. When releases begin, this section will say how they are signed and how to check them.

Reporting a vulnerability

Do not open a public issue for a security problem.

Use GitHub's "Report a vulnerability" form under this repository's Security tab, or email security@codedaptive.com.

A useful report names the command or MCP tool involved, the version (tessera --version) or commit, the platform, and enough detail to reproduce what you saw.

What counts

  • Tessera reading or returning files outside the project or the session's repository.
  • A write outside .codegraph/, the state folder and the git hooks described above.
  • A way for another user or a remote party to reach the server.
  • A crafted source file, repository layout or ignore file that makes Tessera run a command, crash the server or corrupt an index.

What to expect

Tessera is a pre-release maintained on a best-effort basis. We read security reports, work confirmed problems privately, and disclose once a fix has shipped. There is no bug bounty and no response-time guarantee.

Supported versions

Version Status
main (0.1.0, pre-release) The only line. Fixes land here

There aren't any published security advisories