sfw free blocks fontawesome registry
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, node.js
Research direction
Start by reproducing the reported sfw pnpm install failure using the shown package.json and pnpm registry/authentication settings. Check how Socket Firewall handles the @fortawesome registry and private package fetches; done means the listed Font Awesome packages install successfully through sfw without weakening protection for unrelated packages.
Written by the indexing model from the issue text.
Description
Hi and thanks for sfw ❤️
In one of our repo, we use the private fontawesome registry.
I think it's a nomal behavior since the doc says that sfw free doesn't support private registry, but maybe fontawesome is so widely used that you may want to whitelist it 🤷
Any way, whith a clean repo (no node_modules) and a clean pnpm store, here is the error I get when trying to fetch a fontawesome package :
❯ sfw pnpm install
Protected by Socket Firewall
Lockfile is up to date, resolution step is skipped
Packages: +15
+++++++++++++++
ERR_PNPM_FETCH_403 GET https://npm.fontawesome.com/@fortawesome/pro-duotone-svg-icons/-/pro-duotone-svg-icons-6.2.1.tgz: Forbidden - 403
An authorization header was used: Bearer 671F[hidden]
These authorization settings were found:
@jsr:registry=https://npm.jsr.io/
@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=671F[hidden]
//registry.npmjs.org/:_authToken=npm_[hidden]
Progress: resolved 15, reused 0, downloaded 1, added 0
=== Socket Firewall ===
- 1 packages fetched successfully
And here is the package.json that goes with it :
{
"name": "repro_sfw_fontawesome",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"setup": "node ./scripts/private-dep.js"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "6.2.1",
"@fortawesome/pro-duotone-svg-icons": "6.2.1",
"@fortawesome/pro-light-svg-icons": "6.2.1",
"@fortawesome/pro-regular-svg-icons": "6.2.1",
"@fortawesome/pro-solid-svg-icons": "6.2.1",
"@fortawesome/pro-thin-svg-icons": "6.2.1",
"@fortawesome/react-fontawesome": "0.2.0",
"@fortawesome/sharp-solid-svg-icons": "6.2.1"
},
"keywords": [],
"author": "",
"license": "ISC",
"packageManager": "[email protected]"
}
And the fontawesome private repo setup :
pnpm config set "@fortawesome:registry" https://npm.fontawesome.com/
pnpm config set "//npm.fontawesome.com/:_authToken" "${token}"`
- 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
-
CMS SignedData: validateSignature() throws "Signature algorithm unsupported" when SignerInfo.signatureAlgorithm is id-ecPublicKeyPossibly taken @Thyphoon05 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
phpseclib/phpseclib#2318 · 4 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
meetecho/juturna_nodes#33 ·
Maintainers usually reply within 2 days
-
bug dependencies
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
nolte/claude-shared#822 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
linux-luminarium (permissions/the-suid-bit): getroot prints "SUCCESS!" even when SUID bit is not setOpen
Difficulty 2/5 1-3 hours Newbie friendliness 81/100
pwncollege/challenges#314 ·