Skip to content

Follow-ups from the 0.0.13 hardening pass #47

Backlog

Description

@jjohare

Known limitations left after 0.0.13, from the two independent reviews of that change. None exposes the key to a web page.

Needs a check in a real browser

  • Confirm chrome.storage.local.setAccessLevel({accessLevel:'TRUSTED_CONTEXTS'}) takes effect: in a Podkey content-script context, chrome.storage.local.get(null) should be refused. The call's failure is ignored today.
  • Per-site disable, the legacy-key screen, the export gates, auto-lock and the approval keepalive have unit tests only. The CI smoke test covers the worker starting and window.nostr being injected.

What an unapproved site can still learn

  • With sidechain spends on, a locked Podkey refuses a spend at once while an unlocked one opens a window.
  • The Solid sign-in prompt opens only when a key is set up and auto-sign is on, and the page can see the window open. The "no" is held in memory, so the prompt can return after the service worker restarts.

Interceptor

  • Aborting during the 401 retry returns the original 401, not an AbortError.
  • A signed XHR cannot be replayed, so a failed signed GET/HEAD XHR only switches later requests to that host to unsigned; a real outage stops signing there until reload.
  • Switching Podkey off for a site applies to every port on that host (match patterns take no port).

Key storage

Sidechain spends

Tests and release

  • The NIP-44 invalid-vector tests pass on any thrown error; assert the reason.
  • The smoke job is allowed to fail; make it required once it has been green for a few weeks.
  • Branch protection on main and a first tagged release are not set up (release.yml is ready for a v* tag).

🤖 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