Skip to content

feat: dual-mode auth (Ed25519 + OAuth) and challenge deprecation#19

Open
shivdeep1 wants to merge 1 commit into
mainfrom
worktree-agent-a3e029cc
Open

feat: dual-mode auth (Ed25519 + OAuth) and challenge deprecation#19
shivdeep1 wants to merge 1 commit into
mainfrom
worktree-agent-a3e029cc

Conversation

@shivdeep1
Copy link
Copy Markdown
Contributor

Summary

  • Rename verify_signature node to verify_identity with dual-mode support
  • Accept both Ed25519 signatures and OAuth bearer tokens for identity verification
  • OAuth validation uses conditional import (graceful fallback when module absent)
  • Disable semantic challenge by default (challenge_fallback_mode=disabled)
  • Route directly to issue_verdict when challenge disabled

Test plan

  • Ed25519 signature verification still works (backward compat)
  • OAuth bearer token path works (with mocked validator)
  • Graceful fallback when OAuth module not installed
  • Challenge disabled routes to issue_verdict
  • OAuth subject mismatch falls back to Ed25519
  • Bearer token extraction helper (present/absent/non-bearer/case-insensitive)
  • Challenge re-enabled via config patch routes to semantic_challenge
  • All 770 existing tests pass (no regressions)

…by default

Rename verify_signature node to verify_identity with support for both
Ed25519 signatures and OAuth bearer tokens. OAuth validation uses a
conditional import (graceful fallback when airlock.oauth module absent).
Disable semantic challenge by default (challenge_fallback_mode=disabled)
so unknown-reputation agents route directly to issue_verdict.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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