[Feature Request] Skip private registries instead of failing hard
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
Research direction
Start with the sfw wrapper path used by sfw yarn install and trace how the private-registry certificate error is surfaced. Check that private packages are skipped while other dependencies remain checked, then verify that the requested warning is emitted when private packages are encountered.
Written by the indexing model from the issue text.
Description
I would really like to use the sfw wrapper for all of our local machines (and in CI/CD). Unfortunately, commands like sfw yarn install fail hard, as soon as one of the referenced packages comes from a private registry:
[2/4] 🚚 Fetching packages...
error Error: unable to get local issuer certificate
Therefore, I can't currently use it on any of our projects. I have read the docs and I'm aware, that the free version does not support private registries. That's absolutely fine and I'm not asking for support of it.
However, it would be great, if I could still use sfw to check all the other (transitive) dependencies. So maybe, it could just output a warning (or information) like this, when private packages are skipped:
Warning: Socket Firewall did not check any packages from private repositories.
Thanks in advance!
- 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 64/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
ranxianglei/billion-context#7858 ·
Maintainers usually reply within 1 day
-
Bash init calls `cygpath` unconditionally on Windows, which breaks non-Cygwin shells like `brush`Possibly taken @iliqiliev claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ajeetdsouza/zoxide#1381 ·
Maintainers usually reply within 5 days
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MakazhanAlpamys/Soup#3415 ·
Maintainers usually reply within 1 day