Repository navigation
Allowlist Socket's package-verdict API for Bun security scanner - #386
Merged
v-robaiken merged 1 commit intoNov 30, 2026
Merged
Conversation
Bun runs its native install security scanner during `bun update`, so a
Bun repository using @socketsecurity/bun-security-scanner in anonymous
free mode fails every update job under egress enforcement:
proxy | * egress not allowlisted firewall-api.socket.dev
error: Security scanner failed: Socket Security Scanner: Received 403 from server
Add the exact host to the shared npm/Bun anchor. Child hosts and sibling
Socket hosts stay blocked.
Fixes dependabot#368
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
The two red smoke jobs look like infrastructure failures, not this change. I can't rerun them from a fork:
Every other e2e job passed. Could a maintainer rerun the failed jobs? |
Contributor
Author
|
Follow-up on the two red smoke jobs, compared with other recent Smoke runs:
This PR only adds one exact host to |
v-robaiken
approved these changes
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What are you trying to accomplish?
Closes #368
Bun Dependabot update jobs fail under egress enforcement when the repository uses Socket's native Bun install security scanner (
@socketsecurity/bun-security-scanner) in its anonymous free mode. Bun runs the scanner during the updater'sbun update, the scanner callsGET https://firewall-api.socket.dev/purl/<encoded-purl>, and the proxy blocks it:This adds
firewall-api.socket.devas an exact entry in the shared npm/Bun anchor (&npm_registries), so the scanner keeps running and keeps its verdicts.Anything you want to highlight for special attention from reviewers?
evil.firewall-api.socket.devand sibling Socket hosts stay blocked.200 application/x-ndjsonwith no redirect.bunecosystem aliases this anchor.How will you know you've accomplished your goal?
Two regression tests:
TestEgressAllowlist_AdditionalEcosystemsAllowDefaultsgains abuncase for the scanner URL. It fails onmainand passes with this change.TestEgressAllowlist_NewEntriesDoNotWidenBeyondExactHostsgainsevil.firewall-api.socket.dev. I checked that it fails when the entry is changed to the suffix form.firewall-api.socket.dev.Also ran locally:
go test -race -shuffle=on -count=2 ./...(the same command asscript/test, run natively rather than in Docker), all packages okgofmt,go vet ./...andyamllintChecklist
AI disclosure: Claude Opus 5.5 (
claude-opus-5-5, medium reasoning effort) wrote this change and its tests. I reviewed it and take responsibility for it.🤖 Generated with Claude Code