Skip to content

Design: approval scopes (public key, signing, decrypt) and expiry #44

Backlog

Description

@jjohare

Split out of #39. Today one approval trusts a site for everything, with no expiry: reading the public key, signing any event kind, NIP-44 encrypt and decrypt, and Solid sign-in headers. "Approve once" (0.0.12) covers the single-request case; this is about narrowing a standing approval.

Deferred from the hardening pass on purpose, because it needs design before code:

  • Which scopes: public key, signing, decrypt? Signing per event kind, or all kinds?
  • Does a scope expire, and after how long?
  • How does a Solid sign-in approval map onto scopes? A NIP-98 header is a signed kind 27235 event, so a site with the signing scope can already make one.
  • How existing trusted sites migrate (the obvious answer: they keep every scope).
  • What the approval window and the Sites tab show.

🤖 Generated by Claude Code

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions