Skip to content
Reference

Support bundles

What goes in one, the secret scan, path redaction, and the review step before you send it.

GitAegis
The support bundle export in GitAegis Doctor after a bundle was written: the path-redaction switch is on, and the result reports the file count and how many secret-shaped values were redacted, with the folder it was written to.
The bundle is written to your own disk, and the export tells you exactly what was redacted before anything leaves your machine.

Generating one

A support bundle is generated from Doctor → Export. It is written to a new directory on your disk:

macOS
~/Library/Application Support/dev.gitaegis.app/aegis/exports/support-bundle-<timestamp>/
Nothing is uploaded. No path in the product sends a support bundle anywhere: you read it, then you send it if you choose to.

The export report tells you how many files were written, how many secret-shaped values the redactor replaced, and which folder it went to. It reports counts rather than a per-file listing.

What is in one

The files a support bundle contains.
FileContents
manifest.jsonFormat version, creation time, the GitAegis version, the Git version this session used, the file list, the count of values the redactor replaced, whether paths were redacted, and a note describing this bundle rather than a policy.
environment.jsonThe Git runtimes found on this Mac and their absolute paths; which one was selected, its version, and whether it was checksum-verified; whether an ssh-agent is running; the names of your global credential helpers; whether Git LFS is available; which of a fixed list of editors are installed; whether gpg and ssh are present; and, if a runtime was rejected, why.
doctor-report.jsonThe most recent Doctor health report for every repository in your catalogue, if any scans have been run.
logs/Copies of recent log files. GitAegis writes no log files in this edition, so in practice this directory is absent.

No source code. Nothing in a support bundle carries file contents, diffs, or patches. That is a property of what is collected, not of the redactor.

The secret scan

Every part of the bundle passes a secret scanner before it is written, and manifest.json records how many values were replaced. The scanner replaces these known shapes:

  • GitHub tokens: ghp_, gho_, ghu_, ghs_, ghr_, github_pat_
  • GitLab personal access tokens: glpat-
  • Slack tokens: xoxb-, xoxa-, xoxp-, xoxr-, xoxs-
  • AWS access key ids: AKIA…
  • Anthropic keys: sk-ant-…, and OpenAI-style sk-… keys
  • Google API keys: AIza…
  • PEM private-key blocks, Bearer <token> strings, URL userinfo, and .env-style NAME=value assignments

This is a best-effort matcher for known secret shapes. It is not a guarantee. A credential in an unusual format will not be caught, which is why the review step below is not optional advice.

Path redaction, and what it really does

Doctor → Export carries a switch, “Also redact path components”. One switch and one substitution govern the plain report, the technical report and the support bundle alike, so it cannot mean two different things on two surfaces. With it on, the path of each repository in your catalogue becomes <repo> and your home directory becomes ~, so the account name inside a managed Git runtime path does not survive.

It is off by default, deliberately. environment.json exists to answer “which Git binary actually ran”, and that answer is a path; a worktree finding whose entire content is a path says nothing once the path is gone.

Redaction shortens known prefixes; it does not remove paths. It reaches only what is under your catalogue or your home directory. A system Git binary (/opt/homebrew/bin/git, /usr/bin/git) is under neither and appears in full even with the switch on, as does a worktree on another volume. A path under your home directory keeps everything after the ~.

The manifest records which of the two a given bundle is, in pathsRedacted, and its note states what that bundle actually contains. Read the bundle rather than trusting either.

What is deliberately not redacted

  • Absolute filesystem paths can appear. environment.json always contains the absolute path of the Git binary. Doctor findings can contain the absolute path of a registered worktree, and paths relative to the repository for lock files and LFS pointers.
  • Ref names can appear. Branch and tag names show up in Doctor evidence for refs that failed to resolve, and in finding titles.
  • Your Git author name and email can appear in identity-related findings.
  • Repositories are identified by an internal id rather than by their path, but a worktree finding or a runtime problem detail may still reveal where they are.

Read it before you send it

A support bundle is plain JSON. Open it and look:

zsh
cd ~/Library/Application\ Support/dev.gitaegis.app/aegis/exports
ls -la
cat support-bundle-*/manifest.json
If something in it is sensitive, delete that file from the bundle and send the rest. A partial bundle is more useful than no bundle.

Never attach one to a public issue tracker

Do not paste a support bundle, or any part of one, into a public issue, a forum, a gist, a chat channel, a screenshot, or anywhere else that is world-readable. The redactor catches known secret shapes only. What remains can still reveal where your repositories, worktrees and home directory are on disk; your internal branch and tag names; your name and email address; which credential helpers, editors and signing tools you use; and your macOS and Git versions, which is attack-surface information.

Send bundles by private email to support@gitaegis.com, and nowhere else. If you have already posted one publicly, treat every credential that machine can reach as exposed and rotate it. Report a security issue privately to security@gitaegis.com, and describe it before attaching any evidence.

30-day trial · No card required

A recovery capsule before every risky Git operation.

You see the exact commands before they run, and the operation is refused if the capsule cannot be written.

Requires Git 2.38.0 or newer, already installed.

Every risky operation, in this order

  1. Previewthe exact commands, shown before anything runs
  2. Capsulerefs, index, staged and working changes, untracked files, operation state: written to disk first
  3. Executethe commands as shown, or not at all
  4. Journalplan, commands, capsule id, outcome
No capsule, no operation. Restore plans, previews, and takes its own capsule.