Skip to content

Fix installer trust boundaries and security audit findings - #1

Merged
tneemo merged 2 commits into
mainfrom
codex/security-quality-audit-fixes
Oct 19, 2026
Merged

tneemo merged 2 commits into
mainfrom
codex/security-quality-audit-fixes

Conversation

@tneemo

@tneemo tneemo commented Oct 19, 2026

Copy link
Copy Markdown
Owner

Addresses the 19 October security/quality audit (F01–F14), with per-finding changes, evidence and rollout notes in docs/security-audit-remediation.md.

Installation now stages and validates changes before writes, rejects Windows aliases and linked paths, decodes configuration before scanning, and requires explicit dependency-install opt-in. npm lifecycle scripts are disabled and pip accepts wheels only. Resolution includes unchanged installed consumers and discards rejected versions' dependency edges. Failed dependency commands return errors and can be retried without changing build versions.

Publishing verifies effective dependency sources and matching releases, fails closed on verification failures, and commits content-addressed bundle pointers. Readers verify integrity and yanking. Replayed downloads no longer influence counts or ranking. The Hono limiter uses socket peers and bounds key cardinality; mobile commands/tabs fit narrow viewports and support keyboard navigation.

Validation: 22 repository tests pass with no skips against a seeded local Worker; typecheck/build pass; assembled Node examples pass 11 tests plus typecheck; assembled Python examples pass 5 tests (one upstream deprecation warning); npm audit reports 0 advisories; isolated tarball checks cover both bins, setup and MCP; Chromium checks pass at 320/390/430px with normal/200% text. CI adds Windows security, assembled application and release smoke coverage.

Rollout: apply migration 0002 before deploying the Worker, then explicitly approve/release CLI 0.2.0 and publish hono-rate-limit 1.0.1. Existing npm/MCP publication guards remain intact. The original public-package 404 no longer reproduces (0.1.0 is available), but 0.2.0 is not published by this PR. Node >=24.10 is now required; dependency installation is opt-in and automatic Node installs support npm only. Unsupported dependency source formats require manual review. Filesystem checks assume no hostile concurrent path replacement; rollback does not cover abrupt process termination.

Copilot AI balanced review requested due to automatic review settings October 19, 2026 16:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@tneemo
tneemo force-pushed the codex/security-quality-audit-fixes branch from 3894579 to ee6e933 Compare October 19, 2026 16:54
@tneemo
tneemo merged commit 4a9211f into main Oct 19, 2026
2 checks passed
@tneemo
tneemo deleted the codex/security-quality-audit-fixes branch October 19, 2026 16:58
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