uv malware check fails with "invalid peer certificate: UnknownIssuer" when run through sfw
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Domain
- networking, security
Research direction
Reproduce uv add duckdb through the provided _sfw_wrap shell wrapper and compare it with command uv add duckdb. Start with the wrapper's handling of the OSV request to https://api.osv.dev/v1/querybatch; done means the malware check completes successfully through sfw without the UnknownIssuer error.
Written by the indexing model from the issue text.
Description
Environment
- OS: Linux Mint
- uv: 0.11.16 (x86_64-unknown-linux-gnu)
- sfw: Socket Firewall Free, version 1.13.1
Shell wrapper
_sfw_wrap() {
if ! command -v sfw >/dev/null 2>&1; then
printf 'ERROR: Socket Firewall (sfw) is not installed; refusing to run "%s">
printf ' Install it with: %s --install\n' "$_SFW_INSTALL_SCRIPT" >&2
printf ' Or bypass the firewall for this call with: command %s ...\n'>
return 127
fi
command sfw "$@"
}
uv() {
_sfw_wrap uv "$@"
}
Steps
- Run:
uv add duckdb
Expected
Package installs successfully.
Actual
Resolved 17 packages in 3ms
warning: Malware checks are experimental and may change without warning. Pass `--preview-features malware-check` to disable this warning.
error: Malware check failed due to an error from OSV
Caused by: Request failed after 3 retries
Caused by: error sending request for url (https://api.osv.dev/v1/querybatch)
Caused by: client error (Connect)
Caused by: invalid peer certificate: UnknownIssuer
Control experiment
Running the exact same command without the sfw wrapper succeeds:
command uv add duckdb
This installs successfully.
Notes
- Package resolution succeeds.
- Failure only occurs during uv's OSV malware check.
- Bypassing sfw immediately resolves the issue.
- 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
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
meetecho/juturna_nodes#31 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Claude:NeedsReview GPT:ConfirmedBug GPT:NeedsReview triage
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
open5gs/open5gs#5141 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
[Bug] Standalone migration breaks existing Ingress routes using the envoy-http Service port nameOpenaccepted bug wg/enterprise-environment
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vllm-project/semantic-router#7483 · 1 comment ·
Maintainers usually reply within 1 day