feat: gpgtools ssh-config-summary - per-host table of gpg-enabled logins (v0.11.0)

- read-only: one row per marker-managed block in ~/.ssh/config (or
  --config PATH): alias, hostname, user, key id (first 8 chars of
  the identity's SHA256 fingerprint via ssh-keygen -lf, material
  digest as fallback), and the fallback identity's name
- no managed blocks / missing config: fact + configure_ssh hint,
  exit 0 always (read-only command)
- spec items 2.8 + section 13 first, then tests, then code (SPEC
  6.12); 10 new tests (100 in test_gpgtools.py), registry
  description, README section, CHANGELOG 0.11.0, version pins

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
nvaldez
2026-11-19 09:49:35 +01:00
parent cdc209536f
commit 41c8b99bd6
9 changed files with 333 additions and 7 deletions
+15 -1
View File
@@ -156,9 +156,23 @@ daedalus gpgtools configure_ssh --alias vault1 --no-fallback # YubiKey only
| `--no-fallback` | off | Never add a fallback IdentityFile |
| `--config PATH` | `~/.ssh/config` | Which ssh client config to edit |
Additional exit code: `11` an unmanaged `Host <alias>` exists in the
Additional exit code: `11` an unmanaged `Host` with the same alias exists in the
config (move it into the managed markers or rename the alias).
`ssh-config-summary` prints what is enabled where, read-only: one row per
managed block — alias, hostname, user, the key id (first 8 chars of the
identity's SHA256 fingerprint, material-digest fallback), and the fallback
identity. Same id on two rows means the same gpg key guards both hosts.
```bash
daedalus gpgtools ssh-config-summary
daedalus gpgtools ssh-config-summary --config FILE
```
| Argument | Default | Meaning |
| --- | --- | --- |
| `--config FILE` | `~/.ssh/config` | Which ssh client config to read |
## Shell completion
Bash (and other shells argcomplete supports) completes script names and