Skip to content

kit check Socket scan uses a removed command (socket check) — broken against Socket CLI v1.x #103

Closed

Description

@sandstream

Bug

checkSocket (src/check-security.ts) runs socket check --json, but socket check was removed in Socket CLI v1.x (verified on v1.1.102 — top-level commands are audit-log / scan / manifest / npm / npx; socket check falls back to root help). So kit's Socket supply-chain scan has been effectively non-functional against current Socket CLI — it never actually scans.

Pre-1.25.1 this could fail-OPEN (the catch → pass); since #100 (1.25.1, fail-closed) it correctly surfaces as warn: socket NOT scanning — UNVERIFIED instead, but Socket still never runs regardless of socket login / SOCKET_SECURITY_API_TOKEN.

Fix (with a design decision)

The v1.x equivalent is socket scan create --report --json . — but that's server-side: it uploads the dependency manifest to Socket's cloud, needs an org + token (SOCKET_SECURITY_API_TOKEN), and returns { healthy: bool } + alerts (NOT SARIF, so it can't join the kit scan SARIF/OSV registry either).

Decision needed: does kit's Socket check upload your manifest to Socket's servers? That breaks kit's local-first / zero-network promise. Options:

  1. Server-side, opt-in. Rewrite checkSocket for socket scan create --report --json, gate it behind explicit opt-in (config flag), inject SOCKET_SECURITY_API_TOKEN from [scan.tooling], parse the {healthy, alerts} shape. Honest + works, but networked.
  2. Drop Socket from kit check. kit already has local supply-chain coverage (bumblebee, osv-scanner, kit supply-chain Install-time supply-chain triage checks (install-scripts, dep-confusion, slopsquat, lockfile drift) #49). Socket's value (behavioral/install-script analysis) is server-side by nature — arguably out of kit's local-first lane.
  3. socket manifest only (local) — generates a manifest but does NOT get Socket's alert analysis, so limited value.

Token is already in sandstream-common as SOCKET_SECURITY_API_TOKEN; [scan.tooling] points kit there (#102).

Recommend deciding 1 vs 2 deliberately — this is a local-first vs coverage tradeoff, not a mechanical fix.

Activity

  1. added
    bug
    on Jun 24, 2026
  2. changed the title [-]kit check Socket scan uses a removed command () — broken against socket CLI v1.x[/-] [+]kit check Socket scan uses a removed command (socket check) — broken against Socket CLI v1.x[/+] on Jun 24, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions