How your code is handled

Where Codeego processes and stores code, how it is protected in transit and at rest, how uploads and repository access work, how analyses are isolated, and what the language model receives.

This page follows the code from the moment it reaches Codeego to the end of the analysis. How long each item is kept afterwards is described in Data retention and deletion.

Hosting region#

Codeego's application, database, file storage and analysis service run on Google Cloud in the europe-west1 region (Belgium). The language model and the other third parties involved in providing the service are listed on the sub-processors page.

Encryption#

  • In transit: the app, the API and file transfers use HTTPS (TLS).
  • At rest: the database and file storage are encrypted at rest by the cloud provider, with keys the provider manages.
  • In addition, GitHub authorisations are stored encrypted by the application, and API key secrets are stored only as hashes. The webhook signing secret is stored in a form Codeego can read, because Codeego must sign each delivery with it.

Uploading an archive#

A ZIP archive goes from your browser straight to file storage, without passing through Codeego's application servers. The app issues a signed upload URL: a storage address that accepts one file at one location and expires after 15 minutes. Archives of up to 5 GB are accepted, including password-protected ones (see Providing your code).

Malware scanning#

Before analysing an uploaded archive, the analysis service extracts it and scans the extracted files with the ClamAV antivirus engine. If malware is found, the working copy is removed and the assessment fails. Archive entries that try to write outside the extraction folder (path traversal) are rejected.

Read-only access to repositories#

Private GitHub repositories are read through the Codeego GitHub App, which holds only read permissions. For each clone, Codeego obtains a token that is limited to one repository and expires after an hour, and does not store it. Public repositories are cloned without credentials. Codeego has no way to write to your repositories.

Analysis workspaces#

Each assessment is analysed in its own working folder, on a memory-backed volume of the analysis service. The tools the language model uses to read code are confined to that folder. Several assessments can run at the same time on one instance of the service; they are separated by folder and process controls, not by separate virtual machines. The working folder is removed when the run ends.

Before the working folder is removed, a copy of its source files is saved to file storage as the assessment's workspace, which the compliance binder uses as source evidence. The copy leaves out version-control data, dependency and build folders, binaries, media and archives, and files over 5 MB, and stops at 500 MB in total. No workspace is saved for runs of the Enterprise CLI.

What the language model receives#

The model never receives the repository as a whole. It receives a summary of the static evidence computed in code, and then the content it asks for through a small set of tools, one request at a time:

Read a file
Returns the file's content, truncated to about 80 KB per request.
List a directory
Returns the names in one folder.
Search the code
Returns matching lines with their paths, truncated to about 60 KB per request.

The model has no access to file storage, to the database, to other assessments or to the network through these tools. When a review request is evaluated, the model receives the text you wrote and the assessment's stored results. How the model's output is constrained is described in Model output and its constraints.

For an additional layer of protection around the model's processing, see Encrypted inference.