Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Revision requested by owner: preserve the original executable byte-for-byte as
bin/auth.py, implementauthin 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-authcompiles the binary tobin/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.