feat: gpgtools - YubiKey GPG/SSH helpers (v0.6.0)
initialize_yubikey (guide steps 1-4): gnupg install fallback (apt-get/dnf/pacman), card check, public-key fetch from the card's URL field, idempotent gpg-agent SSH config merge, GNUPGHOME chmod 700; --dry-run, --gnupg-home. send_pubkey (guide steps 5-6): resolve the SSH public key from four sources (--yubikey via gpg-agent ssh socket, --url, --fingerprint via store chain local keyring -> keys.openpgp.org -> keyserver.ubuntu.com with fingerprint checking, --pubkey literal), prove possession of the private half with a random challenge signature (ssh-keygen -Y sign -U / verify) before anything is stored, then append idempotently to the target's authorized_keys (dedup by key material, comments ignored). --no-verify opts out explicitly; --dry-run resolves only. 51 tests (flow via injected runner: no hardware, network, or interactive terminal); steps 1-6 of the wiki guide (yubikey-ssh-guide.md) are now one command each. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
+3
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "daedalus"
|
||||
version = "0.4.0"
|
||||
version = "0.6.0"
|
||||
description = "Template for daedalus: loose scripts in one repo, run with: daedalus <name> [args...]"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.11"
|
||||
@@ -19,6 +19,7 @@ daedalus = "daedalus.cli:main"
|
||||
packages = [
|
||||
"daedalus",
|
||||
"daedalus.daedalus_logging",
|
||||
"daedalus.gpgtools",
|
||||
"daedalus.hello",
|
||||
"daedalus._library.python.src",
|
||||
"daedalus._library.bash",
|
||||
@@ -27,6 +28,7 @@ packages = [
|
||||
]
|
||||
|
||||
[tool.setuptools.package-dir]
|
||||
"daedalus.gpgtools" = "python/src/gpgtools"
|
||||
"daedalus.hello" = "python/src/hello"
|
||||
"daedalus._library.python.src" = "python/src"
|
||||
"daedalus._library.bash" = "bash"
|
||||
|
||||
Reference in New Issue
Block a user