-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Problem
auths doctor is the natural place users go when things break, but it currently doesn't catch several common issues discovered during dogfooding:
Checks to add
SSH config
- Detect
UseKeychainwithoutIgnoreUnknown UseKeychain(see SSH config: add IgnoreUnknown UseKeychain during onboarding #74) - Verify the SSH identity file referenced in config actually exists
- Check
gpg.format = sshandcommit.gpgsign = truein git config
Registry
- Check if
refs/auths/registryexists in the current repo - Verify the identity in the registry matches the current active identity
- Warn if the registry has attestations signed by a different identity (stale data from identity recreation)
- Check if registry is pushed to the remote
Allowed signers
- Check if
~/.ssh/allowed_signersexists and contains the current device's key - Check if
.auths/allowed_signersexists in the current repo - Warn if repo's allowed_signers has placeholder/example keys
- Verify format is correct (
<principal> namespaces="git" ssh-ed25519 <key>)
Signing
- Verify a test signature can be created and verified (round-trip check)
- Check that
git log --show-signatureworks for recent commits
Context
During dogfooding, every one of these issues was hit. auths doctor surfacing them with actionable fix commands would have saved significant debugging time.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels