From 2d55f6507fff6284f76ece8f3cd4f8edddf27ba3 Mon Sep 17 00:00:00 2001 From: Kyle Jackson Date: Mon, 7 Mar 2022 19:53:09 +1000 Subject: [PATCH 1/2] Updated documentation --- README.md | 6 ++++++ docker/README.md | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index 6ca54dc81..fbc5bf956 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,12 @@ Download MongoDB Compass (MongoDB GUI) Create a `cve_dev` and `cve_test` database in Compass. The collections will be automatically created when the API starts storing documents. +You can populate the database with test data using: + +```sh +npm run populate:dev +``` + 3. Start the node application In order to start a dev environment: diff --git a/docker/README.md b/docker/README.md index 3317db0c0..ff1344e55 100644 --- a/docker/README.md +++ b/docker/README.md @@ -1,5 +1,9 @@ # Using Docker with cve-services +## Security Considerations + +The cve-services docker container contains a MongoDB instance that doesn't require authentication. If this container is exposed to the public internet it may allow unauthorised actors to modify data stored in the database. + ## Setup for Local Development Use the following steps to build and run cve-services (Node.js app From c5b14184556d907dbc59c0e04e8cd1f7ba405f5b Mon Sep 17 00:00:00 2001 From: Kyle Jackson Date: Tue, 22 Mar 2022 19:50:55 +1000 Subject: [PATCH 2/2] #554 Removed references to cve_test database --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fbc5bf956..c2069ee0e 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ Download MongoDB Compass (MongoDB GUI) - https://www.mongodb.com/download-center/compass -Create a `cve_dev` and `cve_test` database in Compass. The collections will be automatically created when the API starts storing documents. +Create a `cve_dev` database in Compass. The collections will be automatically created when the API starts storing documents. You can populate the database with test data using: