[Feature Request] Skip private registries instead of failing hard

Open
#39 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Domain
cli, security, tooling

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SocketDev/sfw-free

All issues in SocketDev/sfw-free

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.