Skip to content

Add Passkey Delegation Scope Restriction Enforcement #430

Description

@maugauwi-hash

Labels: bug, ttl-vault, security
Priority: High
Estimated Time: 1.5 hours

Description:
passkey_delegation_tests.rs covers delegation, but it should be confirmed a delegated passkey is restricted to only the scopes it was granted (e.g., read-only vs. withdrawal) rather than inheriting the full permission set of the original owner.

Tasks:

  • Audit delegated-passkey authorization checks against the granted scope, not the owner's full permission set
  • Add tests for a read-only delegated passkey attempting a withdrawal (must fail)
  • Add tests for scope escalation attempts via delegation chaining
  • Document scope enforcement in docs/passkeys.md

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions