Skip to content

MAWS browser socket: peer authentication for cua's host #95

Closed

Description

@SSFSKIM

Purpose

Peer authentication for MAWS's per-session browser socket (<userData>/browser/cua/<appSessionId>.sock, the primitive server cua's host connects to). Today the path in the engine's environment is the authorization (0700 directory; every process the session starts has it). Narrow it: a per-launch token the cua shim presents in its hello, or a signed-peer check like the Codex app's authorizeSocketPeer. Needs its own design (brainstorm); the tracker row in MAWS records the remaining per-site cookie exposure through the partition. Residue of #13.

Activity

  1. added
    enhancement
    status:ready-for-architect
    priority:P3
    status:in-design
    and removed
    status:ready-for-architect
    on Oct 9, 2026
  2. SSFSKIM commented on Oct 9, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-design: Design pass started 2026-10-09 after #90 landed.

  3. added
    status:in-progress
    and removed
    status:in-design
    on Oct 10, 2026
  4. SSFSKIM commented on Oct 10, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: Spec written and committed (cua spec/socket-peer-auth-95 deea1af); adversarial review running; MAWS work on branch 95-socket-peer-auth. Design: N-API addon (LOCAL_PEERPID, getpeereid, proc_pidinfo); peer accepted when same uid and a descendant of the session's engine pid; fail closed; token candidate rejected (argv/journal/env readable by same user).

  5. added 2 commits that reference this issue on Oct 10, 2026
  6. SSFSKIM commented on Oct 10, 2026

    @SSFSKIM
    OwnerAuthor

    Spec at 17d060a after two adversarial-review rounds (both-socket design: MAWS per-session socket root = the session's engine process instance; cua client-mode relay root = the cua serve process; roots as (pid, start); fail closed; SIGUSR1 closed with --disable-sigusr1; supervisor-token route named as residual). plan-executor dispatched: MAWS branch 95-socket-peer-auth, cua branch spec/socket-peer-auth-95.

  7. added 3 commits that reference this issue on Oct 10, 2026
  8. 5 remaining items

  9. added 11 commits that reference this issue on Oct 10, 2026
  10. SSFSKIM commented on Oct 10, 2026

    @SSFSKIM
    OwnerAuthor

    Landed: MAWS PR #7 merged at a82d8213 (code head 0a0214e0; includes the 2026-10-10 SIGUSR1 follow-up: no-op listener in main, supervisor spawned with --disable-sigusr1), cua PR #104 merged at fb9db34 (plugin 0.7.0, installed). Remaining before done: the owner's live check (Acceptance 8): nc -U against the session socket and the relay socket each refused with one not_descendant line.

  11. removed
    status:in-progress
    on Oct 10, 2026
  12. SSFSKIM commented on Oct 10, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: The owner's live check passed (both sockets refuse a Terminal nc -U with not_descendant). MAWS PR #7 at a82d8213, cua PR #104 at fb9db34; plugin 0.7.0. Residue in MAWS tracker: supervisor token file, --strict-mcp-config, vendor launcher SIGUSR1, Electron fuses.

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

    enhancementpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions