GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bridge build-out S3 — per-agent fleet credentials + bootstrap enroll tokens (worker) · Issue #14368 · developing-today/code

Bridge build-out S3 — per-agent fleet credentials + bootstrap enroll tokens (worker) #14368

New issue
Copy link
New issue
Copy link
Done
#14407
Done
Bridge build-out S3 — per-agent fleet credentials + bootstrap enroll tokens (worker)#14368
#14407
Copy link
Labels
status:done

Description

@dezren39
dezren39
opened on Nov 24, 2026
Issue body actions

Bridge build-out S3 — per-agent fleet credentials + bootstrap enroll tokens (worker)

Implements design §4.5 and the trust resolutions in §5 (items 1–3). Traces to spec item 4. This slice changes the trust model in the open, per the design — read §5 before building.

Scope

In pkgs/message-bridge/worker:

  • New table fleet_credential (token_hash PK, agent, scopes, created, revoked_at). A /fleet/... request bearing an agent credential may act only as that agent (hello/inbox/ack for its own name; send with from_addr fixed to agent:<its name>). Scopes drawn from inbox and send. Only SHA-256 hashes are stored — the notes-token model, extended.
  • New table enroll_token (token_hash PK, agent, kind, groups, expires_at, used_at, created). Owner route POST /api/<token>/enroll-tokens mints one bound to the agent name, kind and groups chosen at mint time; the value is returned once and never stored.
  • POST /enroll/exchange {bootstrap_token, agent}: verifies hash, name match, expiry, single use; registers the fleet mailbox and (when minted with one) the class/name notes identity; mints the agent's fleet credential and notes token; returns the credential values once. Any failure is the Worker's usual plain 404.
  • Owner revocation routes: revoke an agent's fleet credential / notes token, and revoke an unused bootstrap token.
  • The shared fleet token keeps working unchanged (central + legacy lanes); retiring it is explicitly NOT in this slice.

Acceptance

  • An agent credential reads its own inbox and is refused (404) for another agent's inbox, and cannot send with a forged from_addr.
  • A bootstrap token minted for name X cannot enroll name Y, cannot be used twice, and cannot be used after expiry or revocation.
  • Exchange returns working credentials: the returned fleet credential passes the first acceptance line; the returned notes token opens that identity's inbox.
  • Revoking an agent's credential stops its requests immediately; other agents and the shared fleet token are unaffected.
  • No token value is stored, logged, or returned twice — tests assert hash-only storage, following the notes-token test patterns.

Design of record: doc/2026-11-24_design_message-bridge-buildout.md (PR #14364). Spec numbers below refer to §1 of that doc; design detail is in the section cited per issue.

Filed by Felix's design lane, 2026-11-24. Not enqueued in this pass, per the filing-comment rule: Felix dispatches lanes from the slice index (design doc §7, also posted on #13907).

Activity

  1. developing-today commented on Nov 24, 2026

    @developing-today
    developing-todayBot
    on Nov 24, 2026 – with developing.today
    Contributor
    More actions

    CODE-5298

  2. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Claimed by worker felix (Felix lane, 2026-11-24). Implementing S3 per design §4.5/§5: fleet_credential + enroll_token tables (SHA-256 hashes only), credential-scoped /fleet routes, owner mint/revoke routes, POST /enroll/exchange. Branch felix/14368-bridge-credentials; PR will be left unmerged for Felix's review.

  3. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    S3 implemented by worker felix: PR #14407 (branch felix/14368-bridge-credentials, head 889ddc8), left UNMERGED for Felix's review.

    Verification (remote): run 45406245992 hit the known executor-image gap (node: command not found, code#14267 / dezren39/fleet#111) at the verified target HEAD; re-dispatched run 45407524524 with nix-provided node v22.23.5 — full worker suite 78 tests / 78 pass / 0 fail, the six new credentials tests passing by name (ok 29–34 in test/credentials.test.mjs). All five acceptance criteria are covered by named tests, including hash-only storage asserted at the sql level. No token values in code, tests, logs or the PR (fixtures and Worker-generated values only).

  4. developing-today
    added
    status:in-review
    on Nov 24, 2026
  5. developing-today-fleet
    added a commit that references this issue on Nov 24, 2026

    Merge pull request #14407 from developing-today/felix/14368-bridge-cr…

    0db5f64
  6. developing-today-fleet
    closed this as completedin #14407on Nov 24, 2026
  7. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 24, 2026
  8. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 24, 2026 – with developing.today fleet
    Contributor
    More actions

    Follow-up to Felix's S3 review note (recorded on #14370, comment 7133898707): resolved in S4 (PR #14416) by pinning, not by accepting self-assigned groups. A per-agent credential's hello and inbox calls now ignore caller-supplied groups — the registration keeps the groups bound at mint time and set by the exchange's hello; only last-seen moves. The shared fleet token keeps caller-supplied groups (central and legacy lanes register that way). Covered by the worker test "a credentialed hello cannot move its agent into new groups" in test/credentials.test.mjs. Rationale: group membership drives group: addressing, so it stays an owner-side (mint-time) decision for credentialed agents.

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

    status:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.