question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI option to report all non-whitelisted URLs used

See original GitHub issue

This looks like a pretty awesome project and something I would like to include in Salus (www.github.com/coinbase/salus) to get better coverage on yarn and npm projects.

Is your feature request related to a problem? Please describe. Please describe the problem you are trying to solve.

I’d like to get a list of all URLs being used that don’t match the whitelist that fails a scan.

Describe the solution you’d like Please describe the desired behavior.

Instead of returning detected invalid origin for package: <package_name>, I would like to see the URL used in addition to the package name.

Preferably in a JSON format option for easier parsing but I can implement a rudimentary parser on this syntax if outputting in JSON is not going to be supported.

Describe alternatives you’ve considered Please describe alternative solutions or features you have considered.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lirantalcommented, Feb 1, 2020

@nishils I believe that the PR at https://github.com/lirantal/lockfile-lint/pull/20 which landed a while ago is now providing this, right?

here is an example output now with a wrong URL:

$ npx lockfile-lint -p package-lock.json -t npm -s -a npm github.com -o "https:" "github:"

detected invalid host(s) for package: @babel/code-frame@7.5.5
    expected: registry.npmjs.org,github.com
    actual: registry.spmjs.org

error: command failed with exit code 1
1reaction
lirantalcommented, Sep 24, 2019

You are correct, we are not displaying anything about the URL, just the package. Agree with you completely 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Whitelist Websites - URL Allow List - CurrentWare
Enter the URL, domain, or IP address of the website you want to allow to the master URL list, then press the Enter...
Read more >
Command-line Interface (CLI) - Documentation - Imunify360
Allows to return data in good-looking view if the --json option is used. # Examples. This command returns help message for the 3rdparty...
Read more >
Configure Web filter profiles - Fortinet Documentation Library
Enable/disable automatic addition of URLs detected by FortiSandbox to blacklist. enable: Enable setting. disable: Disable setting. option, -. whitelist ...
Read more >
Chapter 15. Blocking and allowing applications using fapolicyd
To mark all existing files in a directory as trusted, provide the directory path as an argument of the --file option, for example:...
Read more >
[FortiGate] Understand the basic settings of the Web filter ...
If you want to set the whitelist method to allow access only to the specified URL, add a rule to block all URLs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found