npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

serverless-neuvector

v0.9.5

Published

Serverless plugin, utilizes Neuvector tools for improving the security of your serverless applications.

Downloads

1

Readme

Neuvector logo

serverless-neuvector

serverless

Website

Serverless plugin for Neuvector.

Features

  • Secure your project - scan vulnerabilities all over your project's library
  • Currently supported runtimes: Node.js, Python, Java (more runtimes coming soon...)
  • Works with the Serverless Framework

Requirements

  • Python 2.7+
  • NodeJS 10+

Quick Start

1. Install via npm:

npm install --save-dev serverless-neuvector

2. Add serverless-neuvector to your serverless.yml:

In your project's serverless.yml file add the following entry to the plugins section: serverless-neuvector. If there is no plugin section you will need to add it to the file.

It should look similar to this:

plugins:
  - serverless-neuvector

And you need to give parameters as following, to get connection with Neuvector scan core modules

custom:
  neuvector:
    stopDeployment: false
    ipAddress: "1.1.1.1"
    port: 10443
    username: "ciuser"
    password: "ciuserpassword"
    projectname: "demo"
	path: "."
    tolerance:  #Optional: If it is not set, high and medium will be set into 0 by default
      high: 5
      medium: 30

Note:

  1. stopDeployment: this parameter defines whether NeuVector should stop the function deployment if the scan finds vulnerabilities which meet the stop criteria defined in the tolerance section. Selecting “true” will stop the deployment if the criteria is met.

  2. ipAddress/port : this is the address/port of NeuVector Controller or its exposed REST API service. Make a note of the IP address of the host where the Allinone or Controller is running. Note: The default REST API port is 10443. This port must be exposed through the Allinone or Controller through a service in Kubernetes or a port map (e.g. - 10443:10443) in the Docker run or compose file.

  3. username/password : this is username/password you created in NeuVector in order to authenticate to run the serverless scan. You can create a CI/CD user in NeuVector as seen below if you wish to limit the user to scanning functions. Assign global role as CI integration.

For directly work with Neuvector security product, a neuvector security key can be added as environment variableon. You should add an environment section on the function part.

functions:
  hello:
    handler: handler.yourApp_handler
    environment: 
      nvsecKey: ${file(./nvsec.json):nvsecKey}

3. Validate:

You can check wether you have successfully installed the plugin by running the serverless command line.

serverless --help

the console should display neuvector as one of the plugins now available in your Serverless project.

4. Integration:

Library scan has already integrated into your serverless deployment process. It will work before your project deployed. And you can determine if block deployment when vulnerabilities found by "stopDeployment" in serverless.yml.

serverless deploy

5. You can also execute the tool on the entire project:

serverless nv scan

Links