Skip to content

Add Go auth CLI with shared TOTP countdown; retain Python prototype - #21

Draft
axjab wants to merge 4 commits into
masterfrom
feat/auth-yubikey
Draft

axjab wants to merge 4 commits into
masterfrom
feat/auth-yubikey

Conversation

@axjab

@axjab axjab commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Revision requested by owner: preserve the original executable byte-for-byte as bin/auth.py, implement auth in Go, and use one global TOTP countdown. The existing Python test file now points at auth.py.

Go source lives in cmd/auth/ with explanatory comments, a hardware adapter, CLI and diagnostic code, and nine hardware-free regression tests. do/build-auth compiles the binary to bin/auth; the generated binary is not committed. Standard 30-second codes share one countdown; nonstandard periods are labeled and the global timer shows the next expiry. A scoped pull-request workflow runs Go tests, vet, build and retained Python tests.

Architecture: native PC/SC for OATH (no Python adapter), existing ykman for read-only FIDO/OpenPGP/doctor. Direct card serial verification and exact-ID operations under a PC/SC transaction. No automatic HOTP calculation, no ykman OATH code automatic repair, no forced overwrite or touch enrollment. Standard crypto libraries handle the documented password handshake; YubiKey calculates the OTPs. The Go binary requires PC/SC runtime and ykman, and building requires CGO/PCSC headers. Watch holds the card transaction until exit; resize or disconnect requires restart. Steam-format OTPs are not supported by Go; auth.py remains available. No package staging or generated README regeneration.

Verification gates: Go compiler is present locally, but GitHub checkout/dependency network and physical YubiKeys are unavailable; CI added, results pending verification. go.sum must be generated and reviewed; sources still need gofmt and native protocol testing. Draft, not production-ready. See docs/auth.md for build instructions and manual test checklist.

@axjab axjab changed the title Add auth: YubiKey authenticator and read-only doctor Add Go auth CLI with shared TOTP countdown; retain Python prototype Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant