Skip to content

Add WebAuthn passkey second factor#281

Merged
TheSilkky merged 1 commit into
developfrom
codex/issue-276-webauthn-passkey-second-factor
Jun 10, 2026
Merged

Add WebAuthn passkey second factor#281
TheSilkky merged 1 commit into
developfrom
codex/issue-276-webauthn-passkey-second-factor

Conversation

@TheSilkky

Copy link
Copy Markdown
Member

Closes #276

Target base branch

  • Base: develop
  • Head: codex/issue-276-webauthn-passkey-second-factor

Summary

  • Adds disabled-by-default WebAuthn/FIDO2 passkey and roaming security-key second-factor support using github.com/go-webauthn/webauthn/webauthn.
  • Adds fail-closed RP/origin configuration with exact allowed origins, HTTPS enforcement except explicit local development origins, user-verification policy, and WebAuthn challenge TTL controls.
  • Adds SQLite and PostgreSQL WebAuthn user, credential, and one-time challenge persistence, including webauthn session-method support.
  • Adds authenticated registration and verification routes for bearer and browser-cookie sessions, route-limit classification, setup/access gating integration, focused tests, and documentation.

Validation

  • gofmt -w ./cmd ./internal ./migrations
  • go test ./internal/auth ./internal/config ./internal/incidents ./internal/postgresdb ./internal/httpapi ./cmd/api
  • go test ./...
  • go vet ./...
  • git diff --check

Docs

  • Updated README, SECURITY, API/config/deployment/access-control/security/threat-model docs, logging requirements, code map, v1 preview direction, changelog, and sample proofline.toml.

Revalidation

Key custody and decryption

  • No backend decryption, browser decryption, raw key handling, key escrow, or key-custody assumption changes are introduced.

Review state

  • Opened as a non-draft PR per maintainer open-PR override; it still requires maintainer/human review before merge.

@TheSilkky
TheSilkky merged commit 0c40bbe into develop Jun 10, 2026
16 checks passed
@TheSilkky
TheSilkky deleted the codex/issue-276-webauthn-passkey-second-factor branch June 10, 2026 15:02
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.

Add WebAuthn passkey and security-key second-factor support

1 participant