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
| Recorded | Not recorded |
|---|---|
| Which credential helper a repository uses | The credentials that helper holds |
| Whether an entry exists | Any token, password, passphrase or key material |
Whether an ssh-agent is running | The keys it holds, or their fingerprints |
Your user.signingkey and gpg.format, read from Git configuration | The 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@hostbecomeshttps://[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.