From 268bad7b8df60c2d607a845bad9afb6f5ec5991a Mon Sep 17 00:00:00 2001 From: Jannik Hollenbach Date: Wed, 24 Apr 2019 10:50:16 +0200 Subject: [PATCH 1/2] Moved the meta fields docs below the api docs As they can only be used with the api, the api should be introduced first --- docs/user-guide/README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/user-guide/README.md b/docs/user-guide/README.md index 1e3bc93825..963596b1c1 100644 --- a/docs/user-guide/README.md +++ b/docs/user-guide/README.md @@ -20,6 +20,7 @@ Username: choosen Username Password: choosen Password ``` + 4. You are now logged in. Additional users can be created in the user managment section. New users are created without any permissions by default. They are not even permitted to log in. This can be changed by assigning them to the pre-exsisting groups or by granting them the required permission individually. ![User management](../resources/userManagement.png) @@ -56,10 +57,6 @@ Password: choosen Password The secureCodeBox can save the security tests results into different data stores. A list with all availible stores and how to configure and use them can be found [here](./persistence/README.md). -## Meta Fields and How to use them - -MetaFields can be used to tag security tests with custom data relevant for you. We have encountered some data values which we found paticulary usefull and standardized their format to be used in multiple places. The list and formats can be found [here](./metafields/README.md). - ## Starting securityTests using the REST-API In order to start a scan via the REST-API, send a PUT-Request to the following URL: @@ -93,6 +90,10 @@ The following links contain completes examples and explanations how to set up an 2. [Scanning Server Rendered Applications like BodgeIt Store using Arachni](./usage-examples/arachni-bodgeit-example.md) 3. [Scanning Server Rendered Applications like BodgeIt Store using OWASP ZAP](./usage-examples/zap-bodgeit-example.md) +## Meta Fields and How to use them + +MetaFields can be used to tag security tests with custom data relevant for you. We have encountered some data values which we found paticulary usefull and standardized their format to be used in multiple places. The list and formats can be found [here](./metafields/README.md). + ## Starting Scan-Processes using the CLI We have introduced a [simple secureCodeBox CLI](../../cli/README.md) which is based on the REST-API. This CLI can be used to configure and start Scan-Process or to integrate with you CI/CD Pipeline (e.g. Jenkins). From b682fd195d481c06858150ffc6cbd205f4f8dfaf Mon Sep 17 00:00:00 2001 From: Jannik Hollenbach Date: Wed, 24 Apr 2019 11:01:51 +0200 Subject: [PATCH 2/2] Add explanation to docs on how the processes differ when started via the ui / rest api --- docs/user-guide/README.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/docs/user-guide/README.md b/docs/user-guide/README.md index 963596b1c1..b12f261578 100644 --- a/docs/user-guide/README.md +++ b/docs/user-guide/README.md @@ -57,7 +57,15 @@ Password: choosen Password The secureCodeBox can save the security tests results into different data stores. A list with all availible stores and how to configure and use them can be found [here](./persistence/README.md). -## Starting securityTests using the REST-API +## Starting securityTests + +### Starting securityTests using the UI + +When a scan is started via the Camunda UI, the scan is considered to be a manual scans. This means that its results has to be confirmed before they it gets persisted by the configured persistence provider (e.g. elasticsearch). The results will show up in the tasklist and will get persistet once their the task has been marked as completed. + +### Starting securityTests using the REST-API + +When a scan is started via the REST-API, the scan is considered to be automated. This means that the results will get automatically persisted into the configured perssitence provider (e.g. elasticsearch). The results of the securityTest will however **not** show up in the tasklist. The securityTest will be completed directly and the results are only availible via the persistence provider or by accessing it via the Rest-API. In order to start a scan via the REST-API, send a PUT-Request to the following URL: `<>/box/securityTests`. @@ -82,6 +90,12 @@ The scanning target is set within the payload. A securityTest running a nmap por You can check out a more detailed API documentation in the Swagger Docs of the secureCodeBox Engine. The Swagger Docs come together with the secureCodeBox Engine. You can access it at `<>/swagger-ui.html`. If you dont have one running yet you can look at the staticly exported version of it here: [Static API Docs](../developer-guide/api-doc.md) +#### Meta Fields and How to use them + +MetaFields can be used to tag security tests with custom data relevant for you. We have encountered some data values which we found paticulary usefull and standardized their format to be used in multiple places. The list and formats can be found [here](./metafields/README.md). + +MetaFields can currently only be set via the rest api. See the swagger docs for how to set them. + ### In Depth Scan Examples The following links contain completes examples and explanations how to set up and start scans against demo application. @@ -90,10 +104,6 @@ The following links contain completes examples and explanations how to set up an 2. [Scanning Server Rendered Applications like BodgeIt Store using Arachni](./usage-examples/arachni-bodgeit-example.md) 3. [Scanning Server Rendered Applications like BodgeIt Store using OWASP ZAP](./usage-examples/zap-bodgeit-example.md) -## Meta Fields and How to use them - -MetaFields can be used to tag security tests with custom data relevant for you. We have encountered some data values which we found paticulary usefull and standardized their format to be used in multiple places. The list and formats can be found [here](./metafields/README.md). - ## Starting Scan-Processes using the CLI We have introduced a [simple secureCodeBox CLI](../../cli/README.md) which is based on the REST-API. This CLI can be used to configure and start Scan-Process or to integrate with you CI/CD Pipeline (e.g. Jenkins).