Skip to content

Verify the prebuilt backend against its sha256 sidecar, refuse plain-http mirrors, and run npm through node on Windows - #61

Merged
oblomov-dev merged 1 commit into
mainfrom
claude/laughing-dijkstra-wdb15v
Oct 22, 2026
Merged

oblomov-dev merged 1 commit into
mainfrom
claude/laughing-dijkstra-wdb15v

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

Review of 2026-10-22.

  • downloadPrebuilt fetches <asset>.sha256 (abap2UI5 ships it from the next release on) and verifies the archive before rmSync/untar; a mismatch keeps the previous build. Without a sidecar it logs one "unverified" line and continues, so existing releases keep working.
  • A2UI5_MCP_PREBUILT_URL refuses a plain http: URL unless the host is a loopback address or A2UI5_MCP_PREBUILT_INSECURE=1 is set.
  • tar -xzf … --no-same-owner.
  • npm-backend.mjs: on Windows npm runs as node npm-cli.js without a shell; the quoted npm.cmd + shell:true path remains only when no npm-cli.js is found.
  • README, AGENTS.md, server.json/smithery.yaml and the changelog updated; tests for the sidecar, the insecure URL and the Windows command.

npm run check: 567 pass, 0 fail.


Generated by Claude Code

…http mirrors and run npm shell-free on Windows

- downloadPrebuilt fetches backend-<version>.tar.gz.sha256 beside the
  archive (the framework attaches it from the release after 1.148.0 on),
  compares the download's digest and discards a mismatch with the previous
  build untouched; a release without the sidecar unpacks as before and the
  build log says it was unverified.
- A2UI5_MCP_PREBUILT_URL must be https: - a plain http: URL off the loopback
  address is refused before anything is fetched unless the new
  A2UI5_MCP_PREBUILT_INSECURE=1 is set. tar unpacks with --no-same-owner.
- npmCommand runs npm on Windows as `node npm-cli.js`, so no argument
  reaches cmd.exe; the quoted npm.cmd path remains only for a Node
  installation without npm-cli.js.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qid1F6VFxWyQLPvqsr1woq
@oblomov-dev
oblomov-dev merged commit 1ec07a2 into main Oct 22, 2026
1 of 3 checks passed
@oblomov-dev
oblomov-dev deleted the claude/laughing-dijkstra-wdb15v branch October 22, 2026 21:00
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