Skip to content

Fix pinned archive installs through Socket Firewall - #167

Draft
peakematt wants to merge 1 commit into
mainfrom
fix/openapi-sfw-archive-routing-20260911
Draft

Fix pinned archive installs through Socket Firewall#167
peakematt wants to merge 1 commit into
mainfrom
fix/openapi-sfw-archive-routing-20260911

Conversation

@peakematt

Copy link
Copy Markdown
Contributor

OpenAPI’s protected npm ci fails because Socket Firewall’s user-level replace-registry-host=always setting also rewrites the pinned tree-sitter-kotlin GitHub archive onto socket-firewall.workos.dev. That archive path is not an npm package endpoint, so the request returns 404 and blocks publishing and spec-change recording.

Set replace-registry-host=npmjs in the existing project .npmrc. Project configuration takes precedence over the firewall’s user configuration, so this covers the repository’s installs without repeating overrides across workflows. Public npm tarballs still use the configured firewall registry; the existing GitHub archive stays a direct, integrity-checked download, not Socket-inspected traffic. Its pinned commit and integrity, all dependency versions, registry/authentication settings, DNS blocking, and release teardown are unchanged.

From the repository root, with npm already installed:

npm config get replace-registry-host
# npmjs

Offline checks with npm 11.19.0 and its bundled pacote 21.5.1 reproduced the old host rewrite and verified that the new setting preserves the archive URL/integrity while routing scoped and unscoped npm tarballs through the configured firewall. git diff --check passes. No dependency install or release was run locally. The existing PR workflow skips dependency installation when the spec is unchanged, so its success alone does not establish a live protected-install result; that remains for the next applicable workflow run.

Related: https://linear.app/workos/issue/HELP-725

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant