Skip to content
Reference

Credentials and SSH

How your SSH agent, your credential helper and the macOS keychain are used, what the local database records, and what GitAegis never stores.

Git transport credentials stay with Git

GitAegis does not collect, store, or prompt for Git transport credentials. Remote operations use your existing SSH keys, SSH agent, and Git credential-helper configuration unchanged. Optional GitAegis account sessions and provider API tokens are separate credentials described below; neither is substituted into Git transport.

Set your helper and your keys up the way you normally would, outside GitAegis. If they work in a terminal, they work here.

Your SSH agent

SSH_AUTH_SOCK is one of the four variables passed through to the Git subprocess, so an already-running ssh-agent serves keys to Git exactly as it does in a terminal. GitAegis does not talk to the agent itself; it notices whether the variable is set and reports the agent as available.

An agent that is not running is the common cause of a push that fails with a permission error from the host. Start it, add your key, and retry. GitAegis has nothing to configure for this.

Your credential helper

GitAegis reads credential.helper for diagnostics: the identity surface lists the configured helper, and a support bundle records the names of your global helpers. It never asks a helper for a secret and never stores one.

Because the subprocess is started with GIT_TERMINAL_PROMPT=0, Git cannot fall back to asking on a terminal that is not there. If a remote needs credentials your helper cannot supply, the operation fails with a message saying so rather than hanging behind the window with an invisible prompt.

The macOS keychain

GitAegis writes only credentials you explicitly create through its account or provider flows. A signed-in GitAegis account session is stored in the macOS Keychain. A personal access token used for a local GitHub or GitLab provider connection is validated first and stored under a separate provider-and-host-specific Keychain entry; only non-secret connection metadata is written to the local database. A browser-authorized GitHub.com or GitLab.com token remains envelope-encrypted at the configured gateway instead of being copied to the desktop.

These credentials are not Git transport credentials. Fetch, pull, push and clone still use your own helper or SSH agent, which may itself use the Keychain. Disconnecting a provider deletes GitAegis’s local PAT entry but does not revoke that PAT globally; revoke it at GitHub or GitLab as well when global invalidation is required. Removing GitAegis does not touch credentials owned by Git; see Uninstalling.

What the local database records

Credential-related data GitAegis keeps, and what it deliberately does not.
RecordedNot recorded
Which credential helper a repository usesThe credentials that helper holds
Whether an entry existsAny token, password, passphrase or key material
Whether an ssh-agent is runningThe keys it holds, or their fingerprints
Your user.signingkey and gpg.format, read from Git configurationThe private key, or a verification of it: the state shown is unverified

Signing is pass-through. GitAegis reads your configuration to tell you what it is; the signing itself is done by Git with your own key, under your own settings.

Redaction, so a leak has fewer routes out

Credentials can end up in text even when nothing stored them. Two paths are covered:

  • Git’s stderr is redacted before it reaches an error message, the journal, or the screen, and the command summary printed in an error is redacted too. A URL of the form https://user:password@host becomes https://[REDACTED:url-userinfo]@host.
  • Anything written to a support bundle passes a secret scanner first, and remote URLs are reported in Doctor findings as <name> (url redacted) rather than in full. The scanner matches known secret shapes and is not a guarantee: see Support bundles.

A capsule’s copy of your Git configuration is written as config.sanitized, with credential-bearing lines stripped, for the same reason.

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.