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.

Proposing index.json for /vuln/core and /vuln/npm

See original GitHub issue

I’d like to propose the addition of an index.json file for both /vuln/core and /vuln/npm, which can be automatically generated by a tool. Currently, this tool doesn’t exist, but I’m more than happy to create it and PR it into the repository’s /tools directory.

Why

I’ve previously worked on a project that consumed the data in this repository. To be able to parse the Node.js core data and operate on it, we had to put together all of the JSON files on our end and create a single index file. This is what was suggested in the previous discussion around a central file, but in practice it causes a non-trivial amount of overhead in terms of code (ref: 1, 2) that is needed to pull this data that is already provided, but it was in a significantly less optimal format than if it just already existed from the project.

Additionally there are multiple bits of ecosystem tooling that I would like to start working on, but would rather have a centralized/blessed source of this data accessible to the world from the Security WG than having to re-invent the wheel as an independent npm module that adds additional dependencies to users’ dependency trees or as code I keep in my apps.

Use Cases:

Here are some examples of what I’m interested in working on around this space. Not sure I can get to all of them myself, but I’m happy to knock out as many as possible once this data is available Happy to do any of them in conjunction

  • Public APIs
    • A public API (just raw JSON) that declares just the minimum secure version of each active release line, via JSON.
    • A public API (just raw JSON) that surfaces minimum secure versions of all modules that have a vulnerability, via JSON.
  • A Probot (GitHub Apps) app to automatically update engines, .nvmrc, .node-version, Dockerfile, and any other versioning tooling to reflect the minimum secure version of Node.js.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
bnbcommented, Feb 14, 2019

@lirantal fwiw I have availability to work on this now, as evidenced by the PR – happy to chat more and implement in a way that’s effective for everyone 😅

My needs:

  • Single source of data for all of Node.js Core (npm vulns are a plus for me, probably more useful for others)
  • Data formatted as JSON

Ideally, this would be an official resource. This data is useless if it’s maintained by a third party – including myself – because consumers of this kind of data should not be trusting a third-party.

0reactions
bnbcommented, Feb 26, 2019

Next steps:

  • Remove index.json files from #489
  • Figure out where the compiled files exist
  • Figure out what the suggested consumption methods for the compiled files are
    • Publicize that we’ll give 60 day notice for changes
  • :shipit:
Read more comments on GitHub >

github_iconTop Results From Across the Web

Index JSON data - SQL Server - Microsoft Learn
In this article. Index JSON properties by using computed columns; JSON indexes are collation-aware indexes; Next steps.
Read more >
24 Indexes for JSON Data - Oracle Help Center
You can index JSON data as you would any data of the type you use to store it. In addition, you can define...
Read more >
proposal-regexp-match-indices/package-lock.json at master
proposal -regexp-match-indices/package-lock.json. Go to file · Go to file T
Read more >
Transforming and Indexing Custom JSON - Apache Solr
This will index all the fields into the default search field (using the df parameter, below) and only the uniqueKey field is mapped...
Read more >
pandas.read_json — pandas 1.5.2 documentation
Direct decoding to numpy arrays. Supports numeric data only, but non-numeric column and index labels are supported. Note also that the JSON ordering...
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