Cargo cannot fetch from crates.io
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- node.js, rust
- Domain
- devtools, networking, security
Research direction
Reproduce the issue with sfw cargo fetch, then inspect the HTTP CONNECT socket path and getRequestIteratorForTls at sfw-free.js:92:1091. Compare the wrapped command with plain cargo fetch; done means the crates.io download establishes a secure connection and completes without the Socket Firewall error.
Written by the indexing model from the issue text.
Description
Environment:
macOS v26.2
fish shell v4.2.1 (installed via Homebrew)
sfw v1.5.3
cargo v1.92.0 (installed via Homebrew)
Repro:
Run sfw cargo fetch
Expected:
Works just like cargo fetch
Observed:
Command errors with:
Protected by Socket Firewall
error: failed to download from `https://static.crates.io/crates/valuable/0.1.1/download`
Caused by:
[60] SSL peer certificate or SSH remote key was not OK (SSL certificate problem: unable to get local issuer certificate)
=== Socket Firewall ===
Warning: Socket Firewall did not detect any package fetch attempts
Error occurred: client socket error for hostname 'static.crates.io'
{"0":"4","1":"0","2":"E","3":"C","4":"8","5":"D","6":"F","7":"1","8":"0","9":"1","10":"0","11":"0","12":"0","13":"0","14":"0","15":"0","16":":","17":"e","18":"r","19":"r","20":"o","21":"r","22":":","23":"0","24":"A","25":"0","26":"0","27":"0","28":"4","29":"1","30":"8","31":":","32":"S","33":"S","34":"L","35":" ","36":"r","37":"o","38":"u","39":"t","40":"i","41":"n","42":"e","43":"s","44":":","45":"s","46":"s","47":"l","48":"3","49":"_","50":"r","51":"e","52":"a","53":"d","54":"_","55":"b","56":"y","57":"t","58":"e","59":"s","60":":","61":"t","62":"l","63":"s","64":"v","65":"1","66":" ","67":"a","68":"l","69":"e","70":"r","71":"t","72":" ","73":"u","74":"n","75":"k","76":"n","77":"o","78":"w","79":"n","80":" ","81":"c","82":"a","83":":","84":".","85":".","86":"/","87":"d","88":"e","89":"p","90":"s","91":"/","92":"o","93":"p","94":"e","95":"n","96":"s","97":"s","98":"l","99":"/","100":"o","101":"p","102":"e","103":"n","104":"s","105":"s","106":"l","107":"/","108":"s","109":"s","110":"l","111":"/","112":"r","113":"e","114":"c","115":"o","116":"r","117":"d","118":"/","119":"r","120":"e","121":"c","122":"_","123":"l","124":"a","125":"y","126":"e","127":"r","128":"_","129":"s","130":"3","131":".","132":"c","133":":","134":"9","135":"1","136":"6","137":":","138":"S","139":"S","140":"L","141":" ","142":"a","143":"l","144":"e","145":"r","146":"t","147":" ","148":"n","149":"u","150":"m","151":"b","152":"e","153":"r","154":" ","155":"4","156":"8","157":"\n"}
Error occurred: Error caught at boundary "HTTP CONNECT socket"
Error unable to establish secure connection with client [getRequestIteratorForTls (sfw-free.js:92:1091) <- process.processTicksAndRejections (task_queues:105:5) <- async handleConnect (sfw-free.js:94:854)]
- Dominant language
- No language data
- Stars
- 271
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SocketDev/sfw-free
-
Difficulty 1/5 Under an hour Newbie friendliness 87/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in SocketDev/sfw-free
Similar issues
-
manually bump balena-preload to ^19.0.6Possibly taken @shaunmulligan claimed this today. Open
Difficulty 1/5 1-3 hours Newbie friendliness 66/100
balena-io/balena-cli#3200 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
obi1kenobi/cargo-semver-checks#1839 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
receptron/mulmoterminal#3584 ·
Maintainers usually reply within 1 day
-
bug gui platform
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
lidge-jun/opencodex#9172 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
kunchenguid/firstmate#8796 ·
Maintainers usually reply within 1 day