Add support for PostgreSQL as a DB storage back-end (#431)
This commit is contained in:
committed by
Kota Kanbe
parent
fecd1ad464
commit
067a2315df
25
README.ja.md
25
README.ja.md
@@ -81,6 +81,7 @@ Slackチームは[こちらから](http://goo.gl/forms/xm5KFo35tu)参加でき
|
||||
* [Example: IgnoreCves](#example-ignorecves)
|
||||
* [Example: Add optional key-value pairs to JSON](#example-add-optional-key-value-pairs-to-json)
|
||||
* [Example: Use MySQL as a DB storage back-end](#example-use-mysql-as-a-db-storage-back-end)
|
||||
* [Example: Use PostgreSQL as a DB storage back-end](#example-use-postgresql-as-a-db-storage-back-end)
|
||||
- [Usage: Scan vulnerability of non-OS package](#usage-scan-vulnerability-of-non-os-package)
|
||||
- [Usage: Integrate with OWASP Dependency Check to Automatic update when the libraries are updated (Experimental)](#usage-integrate-with-owasp-dependency-check-to-automatic-update-when-the-libraries-are-updated-experimental)
|
||||
- [Usage: TUI](#usage-tui)
|
||||
@@ -1040,9 +1041,9 @@ report:
|
||||
[-results-dir=/path/to/results]
|
||||
[-log-dir=/path/to/log]
|
||||
[-refresh-cve]
|
||||
[-cvedb-type=sqlite3|mysql]
|
||||
[-cvedb-type=sqlite3|mysql|postgres]
|
||||
[-cvedb-path=/path/to/cve.sqlite3]
|
||||
[-cvedb-url=http://127.0.0.1:1323 or mysql connection string]
|
||||
[-cvedb-url=http://127.0.0.1:1323 or DB connection string]
|
||||
[-cvss-over=7]
|
||||
[-diff]
|
||||
[-ignore-unscored-cves]
|
||||
@@ -1087,9 +1088,9 @@ report:
|
||||
-cvedb-path string
|
||||
/path/to/sqlite3 (For get cve detail from cve.sqlite3)
|
||||
-cvedb-type string
|
||||
DB type for fetching CVE dictionary (sqlite3 or mysql) (default "sqlite3")
|
||||
DB type for fetching CVE dictionary (sqlite3, mysql or postgres) (default "sqlite3")
|
||||
-cvedb-url string
|
||||
http://cve-dictionary.com:8080 or mysql connection string
|
||||
http://cve-dictionary.com:8080 or DB connection string
|
||||
-cvss-over float
|
||||
-cvss-over=6.5 means reporting CVSS Score 6.5 and over (default: 0 (means report all))
|
||||
-diff
|
||||
@@ -1427,6 +1428,14 @@ $ vuls report \
|
||||
-cvedb-url="user:pass@tcp(localhost:3306)/dbname?parseTime=true"
|
||||
```
|
||||
|
||||
## Example: Use PostgreSQL as a DB storage back-end
|
||||
|
||||
```
|
||||
$ vuls report \
|
||||
-cvedb-type=postgres \
|
||||
-cvedb-url=""host=myhost user=user dbname=dbname sslmode=disable password=password""
|
||||
```
|
||||
|
||||
----
|
||||
|
||||
# Usage: Scan vulnerability of non-OS package
|
||||
@@ -1487,9 +1496,9 @@ VulsとDependency Checkを連携すると以下の利点がある
|
||||
```
|
||||
tui:
|
||||
tui
|
||||
[-cvedb-type=sqlite3|mysql]
|
||||
[-cvedb-type=sqlite3|mysql|postgres]
|
||||
[-cvedb-path=/path/to/cve.sqlite3]
|
||||
[-cvedb-url=http://127.0.0.1:1323 or mysql connection string]
|
||||
[-cvedb-url=http://127.0.0.1:1323 DB connection string]
|
||||
[-refresh-cve]
|
||||
[-results-dir=/path/to/results]
|
||||
[-log-dir=/path/to/log]
|
||||
@@ -1500,9 +1509,9 @@ tui:
|
||||
-cvedb-path string
|
||||
/path/to/sqlite3 (For get cve detail from cve.sqlite3)
|
||||
-cvedb-type string
|
||||
DB type for fetching CVE dictionary (sqlite3 or mysql) (default "sqlite3")
|
||||
DB type for fetching CVE dictionary (sqlite3, mysql or postgres) (default "sqlite3")
|
||||
-cvedb-url string
|
||||
http://cve-dictionary.com:8080 or mysql connection string
|
||||
http://cve-dictionary.com:8080 or DB connection string
|
||||
-debug
|
||||
debug mode
|
||||
-debug-sql
|
||||
|
||||
Reference in New Issue
Block a user