Skip to content

fix(deps): tar 8.0.5 in fleetctl-npm CU-mwl44xf7frz - #295

Merged
oleksandrd-flamingo merged 1 commit into
mainfrom
fix/fleetctl-npm-tar-8
Dec 2, 2026
Merged

oleksandrd-flamingo merged 1 commit into
mainfrom
fix/fleetctl-npm-tar-8

Conversation

@ivan-flamingo

Copy link
Copy Markdown

Bumps tar 7.5.11 → 8.0.5 in tools/fleetctl-npm. This clears the last 14 open Vanta/Dependabot alerts with no fix (fleetdm#947–fleetdm#960: 13 high, 1 medium; symlink escape, PAX parsing, DoS).

  • package.json + yarn.lock: tar 8.0.5 has no dependencies, so minipass, minizlib, chownr, yallist and fs-minipass are gone.
  • run.js: tar 8's extract() is no longer a writable stream. It now takes input: response.data and returns a promise. Wrapped in OPENFRAME(fleetctl-npm-tar8).
  • Runbook row added: upstream is still on tar 7.5.22.
  • Not shipped (our fork never publishes the npm installer). Tested locally: a gzipped release-shaped archive extracts with strip 1 and mode 755 kept, and a bad archive rejects into the existing catch.
  • tar 8 requires Node ≥ 22.

Clears 14 Dependabot alerts on tar 7.5.11 (fleetdm#947-fleetdm#960). tar 8 extract() takes the stream as input and returns a promise, so run.js changes (OPENFRAME(fleetctl-npm-tar8)).
@ivan-flamingo ivan-flamingo self-assigned this Dec 2, 2026
@flamingo

flamingo Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

🦩 Flamingo Code Review

✅ No findings on the current head.

Advisory: findings do not block the merge.

Files Lines 🔴 Action required 🟠 Recommended 🔵 Informational
4 +9 / -48 0 0 0

✅ What this change does well

  • tools/fleetctl-npm/run.js wraps the tar-8-specific extract({ input }) call in an explicit OPENFRAME(fleetctl-npm-tar8) sentinel block so the fork delta is discoverable at the next upstream sync.
  • openframe/docs/upstream-sync-conflict-resolution.md documents the new sentinel with the exact reason (tar 7 Dependabot alerts) and a clear drop condition.
  • tools/fleetctl-npm/yarn.lock is updated in lockstep with the package.json bump, so the pinned resolution actually matches the new API usage.
1 possible problem checked and ruled out
  • tools/fleetctl-npm/package.json:18 CJS require("tar") may not resolve under tar 8 (ESM-only / newer Node floor): The candidate itself states the new tar API usage is consistent and that the CJS/engines concern cannot be settled from this repository; a lockfile-pinned bump with updated API usage shows no verified defect.

Review again. New commits are not reviewed until you ask:

  • Review the new commits: only what was pushed since this review
  • Review the whole diff again: everything, including what was already reviewed

Or comment @flamingo-review (new commits) or @flamingo-review full (everything). Add the flamingo-review-always label to review every push.

Updated 2026-12-02 14:51 UTC · reviewed from Ivan Khropachov's machine

@flamingo

flamingo Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

🦩 Flamingo Code Review / security

✅ No findings on the current head.

Advisory: findings do not block the merge.

Files Lines 🔴 Action required 🟠 Recommended 🔵 Informational
4 +9 / -48 0 0 0

✅ What this change does well

  • tools/fleetctl-npm/package.json moves tar to 8.0.5, clearing the known Dependabot advisories against tar 7 without loosening archive extraction (strip/cwd preserved in run.js).

Review again. New commits are not reviewed until you ask:

  • Security-check the new commits: only what was pushed since this security review
  • Security-check the whole diff again: everything, including what was already checked

Or comment @flamingo-review security (new commits) or @flamingo-review security full (everything). Add the flamingo-security-review-always label to security-review every push.

Updated 2026-12-02 14:52 UTC · reviewed from Ivan Khropachov's machine

@oleksandrd-flamingo
oleksandrd-flamingo merged commit c055dde into main Dec 2, 2026
22 of 23 checks passed
@oleksandrd-flamingo
oleksandrd-flamingo deleted the fix/fleetctl-npm-tar-8 branch December 2, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants