Skip to content

chore(fleet): scope tailnet policy for the laptop opencode serve endpoint (amd-6:443) #1377

Open

Description

@dezren39

From the #1363 close-out (2026-10-27): the laptop opencode background service is now published to the tailnet via Tailscale Serve (https://amd-6.raptor-pumpkinseed.ts.net/ → 127.0.0.1:13420, tailnet-only, password auth enforced — 401 unauthenticated verified). The remaining hardening is policy-side:

  • Today, any device the tailnet policy admits can attempt the endpoint; the opencode server password is the only gate. The tailnet (raptor-pumpkinseed) also carries many enrolled, mostly-offline codex-environment nodes that have no business reaching the opencode API.
  • Scope the tailnet policy (admin console — grants/ACLs) so only the devices that need the opencode API (the Muse sandbox device muse, Drew's own devices) can reach amd-6:443. Keep the aggregator route (amd-6:4870 consumers) working — check what else reaches amd-6 before narrowing.

Acceptance: policy updated in the admin console; sandbox still reaches the serve route (200 with auth); a non-authorized device class can no longer connect; the change + test result commented here. This needs Drew or an admin-console session — it cannot be done from the laptop CLI.

Acceptance criteria

  • Tailnet policy (admin console grants/ACLs) is updated so only the named device classes (the muse sandbox device and Drew's own devices) can reach amd-6:443.
  • Post-change verification is commented here: the sandbox still reaches the serve route (200 with auth), and a non-authorized device class can no longer connect.
  • Other consumers of amd-6 (e.g. the aggregator route on :4870) are checked before narrowing and still work after.

Activity

  1. added
    meta/follow-up
    on Oct 27, 2026
  2. developing-today commented on Oct 27, 2026

    @developing-today
    Contributor
  3. added
    kind/infrastructure
    priority/normal
    effort/s
    status/needs-triage
    user/review
    meta/enriched
    on Oct 27, 2026
  4. dezren39 commented on Oct 27, 2026

    @dezren39
    MemberAuthor

    Intake review

    Related: from the #1363 close-out; #1378 (pointing fleet job bodies at the serve route) increases the endpoint's importance, which is what makes this hardening timely.

    Notes: the endpoint is already password-gated (401 unauthenticated verified); this is defence-in-depth on the policy side. The issue itself states it needs Drew or an admin-console session — hence user/review.

    Risks: narrowing policy before inventorying amd-6 consumers could break the aggregator route; the criteria include that check.

    Suggested approach: Drew/admin-console session; inventory amd-6 reachability first, then scope, then verify both directions.

    — fleet monitor intake enrichment, 2026-10-27.

  5. added
    work/assigned
    queue/claimed
    status/in-progress
    and removed
    status/needs-triage
    on Nov 1, 2026
  6. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: picked_up
    task: 2563 (repo-health-code-pilot, openchamber scheduled lane)
    state: Claimed triage; revalidating current endpoint and policy access.

  7. 50 remaining items

  8. removed
    status/in-progress
    queue/claimed
    work/assigned
    on Nov 22, 2026
  9. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · blocked (packet defect)

    • Agent: repo-worker-code, lane oc-code-06
    • Task: 20960, generated as a small_fix follow-on from completed triage task 15158.
    • Defect: its title/problem/acceptance still request triage, while the issue already records the triage completed by task 19507; no small-fix scope exists now. The accepted-risk decision defers any policy revisit until about 2027-02-16.
    • Action: blocked task 20960 as packet_defect; it needs a correctly typed revisit task dated no earlier than that point. No policy or code changed.
  10. added
    work/assigned
    queue/blocked
    status/blocked
    on Nov 22, 2026
  11. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note (lane code-j, 2026-11-26, triage task 24949): accepted-risk deferral stands — no packet.

  12. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    🤖 Triage re-verification — task 25423 (code-g), 2026-11-27

    The existing disposition still governs: the tailnet-policy decision was answered 2026-11-16 with accepted risk (keep the endpoint password-gated) and defer the policy revisit until about 2027-02-16. Prior verification (tasks 19507, 15158, and 24949) records the same outcome. No policy change or new escalation is due now; no code or tailnet settings changed. Revisit after 2027-02-16.

  13. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    Census 2026-11-29 (lane CEN-C02) — rechecked firsthand.

    State: OPEN, deliberately deferred. The decision on this issue was answered 2026-11-16: accepted-risk defer — the amd-6:443 opencode serve endpoint stays password-gated for now, and the tailnet-policy scoping (admin-console grants/ACLs limiting amd-6:443 to the muse sandbox device + Drew's own devices) is revisited around 2027-02-16. Multiple re-verifications (tasks 15158, 19507, 24949, 25423) confirm the disposition stands and nothing is due before that date.

    Blocker: the revisit date itself; when it arrives, the work needs Drew or an admin-console session (it cannot be done from the laptop CLI), and the pre-checks in the acceptance still apply — verify what else reaches amd-6 (aggregator route :4870) before narrowing, then post the post-change verification (sandbox 200-with-auth; non-authorized device class cannot connect).

    Census action: priority lowered normal → low — an accepted-risk item with a February 2027 revisit date should not sit at the default priority. Labels otherwise confirmed (kind/infrastructure).

  14. added
    priority/low
    and removed
    priority/normal
    on Nov 29, 2026
  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full re-read (body, labels, all comments, edges) in the CODE-6 recovery pass. STRENGTHS: the deferral is a recorded, accepted-risk decision by Drewry (2026-11-16) with a revisit date (~2027-02-16). PRIORITY VALIDATION: band kept as-is — a deliberately deferred item is not escalated by age (#9199: age alone never escalates). FIXES I APPLIED: none needed — status/blocked accurately reflects the deliberate deferral. REMAINS: the ~2027-02-16 revisit; no action until then.

  16. added
    area/infra
    on Nov 29, 2026
  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: No app/*/area/* label — added area/infra (tailnet policy for the laptop's opencode serve endpoint). Everything else complete, with an ## Acceptance criteria section.

    Strengths: Tight security scoping task: one endpoint (amd-6:443), one policy question, effort/s honestly sized, blocked state labelled.

    Actions taken by this census: Labels added: area/infra.

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

    area/infraeffort/sepic/opencode-platformkind/infrastructuremeta/enrichedmeta/follow-upmode/onlinepriority/lowqueue/blockedsource/creatorstatus/blockedtask/triagework/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions