nvd-data-mirror

command module
v0.0.0-...-8dfb69b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

build release version License

nvd-data-mirror

为 maven 插件 org.owasp:dependency-check-maven 提供数据镜像服务,同时包含 cve 和 retireJs 数据。

Usage

cd /path/to/nvd-data-mirror
# 查看配置说明
./nvd-data-mirror --help

# 启动服务,默认端口为 80
./nvd-data-mirror

maven 配置

${nvd-data-mirror-host} 替换为服务器地址

    <plugin>
        <groupId>org.owasp</groupId>
        <artifactId>dependency-check-maven</artifactId>
        <version>${dependency-check-maven.version}</version>
        <executions>
            <execution>
                <goals>
                    <goal>check</goal>
                </goals>
                <configuration>
                    # cve 数据相关配置,其他配置请参考 dependency-check-maven 配置文档
                    <cveUrlBase>${nvd-data-mirror-host}/data/nvdcve-1.1-%d.json.gz</cveUrlBase>
                    <cveUrlModified>${nvd-data-mirror-host}/data/nvdcve-1.1-modified.json.gz</cveUrlModified>
                    <retireJsUrl>${nvd-data-mirror-host}/data/jsrepository.json</retireJsUrl>
                </configuration>
            </execution>
        </executions>
    </plugin>

Docker

docker run -d -p 80:80 -v /path/to/nvd-data-mirror:/data jingshouyan/nvd-data-mirror:latest

Kubernetes

# helm 模式部署
helm repo add jing https://jingshouyan.github.io/helm-charts/
helm repo update

helm install nvd-data-mirror jing/nvd-data-mirror --set service.type=NodePort --set service.nodePort=30010

helm chart 源码

https://github.com/jingshouyan/helm-charts/tree/main/charts/nvd-data-mirror

其他

参考 nist-data-mirror

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址