You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+17-7Lines changed: 17 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
Before submitting, please ensure that you are using the latests code by performing a `git pull`.
6
6
7
-
Please include your operating system, your operating system version number (16.04, 10.6, etc), and the dojo install you are using (setup.bash, docker, etc).
7
+
Please include your operating system name, your operating system version number (16.04, 18.6, etc), and the dojo install type you are using (setup.bash, docker, etc).
8
8
9
9
Bugs that do not have this information will be closed.
10
10
@@ -14,17 +14,23 @@ Here are a few things to keep in mind when making changes to DefectDojo.
14
14
15
15
## Modifying DefectDojo and Testing
16
16
17
-
Please use [these test scripts](./tests) to test your changes. These are the exact scripts we run in our [Travis Build](https://travis-ci.org/OWASP/django-DefectDojo).
17
+
Please use [these test scripts](./tests) to test your changes. These are the scripts we run in our [integration tests](DOCKER.md#run-the-tests-with-docker).
18
18
19
-
For changes that require additional settings, settings.dist.py is the file you want to change. Settings.py is created by setup.bash from settings.dist.py
19
+
For changes that require additional settings, you can now use local_settings.py file. See the logging section below for more information.
20
20
21
21
## Python3 version
22
-
For compatibility reasons, the code in dev branch should be python3.5 compliant.
22
+
For compatibility reasons, the code in dev branch should be python3.6 compliant.
23
23
24
24
## Logging
25
-
Logging is configured in `settings.dist.py`.
25
+
Logging is configured in `settings.dist.py` and can be tuned using a `local_settings.py`, see [template for local_settings.py](dojo/settings/template-local_settings)
26
+
Specific logger can be added. For example to activate logs related to the deduplication, change the level from DEBUG to INFO in `local_settings.py`:
26
27
27
-
Specific logger can be added. For example to activate logs related to the deduplication, change the level from DEBUG to INFO in:
Or you can modify `settings.dist.py` directly, but this adds the risk of having conflicts when `settings.dist.py` gets updated upstream.
28
34
29
35
```
30
36
'dojo.specific-loggers.deduplication': {
@@ -34,6 +40,10 @@ Specific logger can be added. For example to activate logs related to the dedupl
34
40
}
35
41
```
36
42
43
+
## Debug Toolbar
44
+
In the `dojo/settings/template-local_settings.py` you'll find instructions on how to enable the [Django Debug Toolbar](https://github.com/jazzband/django-debug-toolbar).
45
+
This toolbar allows you to debug SQL queries, and shows some other interesting information.
46
+
37
47
## Submitting Pull Requests
38
48
39
49
The following are things to consider before submitting a pull request to
@@ -53,7 +63,7 @@ DefectDojo.
53
63
54
64
0. Pull requests should be submitted to the 'dev' branch.
55
65
56
-
0. In dev branch, the code should be python 3.5 compliant.
66
+
0. In dev branch, the code should be python 3.6 compliant.
@@ -94,9 +94,7 @@ To update changes in static resources, served by nginx, just refresh the browser
94
94
95
95
*Notes about volume permissions*
96
96
97
-
*The manual copy of settings.py is sometimes required once after cloning the repository, on linux hosts when the host files cannot be modified from within the django container. In that case that copy in entrypoint-uwsgi-dev.sh fails.*
98
-
99
-
*Another way to fix this is changing `USER 1001` in Dockerfile.django to match your user uid and then rebuild the images. Get your user id with*
97
+
*If you run into permission issues with the mounted volumes, a way to fix this is changing `USER 1001` in Dockerfile.django to match your user uid and then rebuild the images. Get your user id with*
100
98
101
99
```
102
100
id -u
@@ -109,7 +107,6 @@ If you want to be able to step in your code, you can activate ptvsd.Server.
109
107
You can launch your local dev instance of DefectDojo as
It usually takes up to a minute for the services to startup and the
99
100
status of the containers can be viewed by starting up ```minikube dashboard```.
@@ -141,7 +142,7 @@ Use the same commands as before but add:
141
142
```
142
143
143
144
### Installing from a private registry
144
-
If you have stored your images in a private registry, you can install defectdojo chart with (helm 3).
145
+
If you have stored your images in a private registry, you can install defectdojo chart with (helm 3).
145
146
146
147
- First create a secret named "defectdojoregistrykey" based on the credentials that can pull from the registry: see https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
147
148
- Then install the chart with the same commands as before but adding:
Copy file name to clipboardExpand all lines: SPONSORING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
On April 5th, 2018, OWASP clarified their sponsorship requirements to note that time, software, or any other quantifiable contribution can be counted towards the $1000 threshold outlined by the [OWASP Global Policy](https://www.owasp.org/index.php/Project_Sponsorship_Operational_Guidelines).
1
+
On April 5th, 2018, OWASP clarified their sponsorship requirements to note that time, software, or any other quantifiable contribution can be counted towards the $1000 threshold outlined by the [OWASP Global Policy](https://owasp.org/www-policy/operational/project-sponsorship).
2
2
3
3
Below is our sponsorship guidelines to provide further clarification specific to our project for non-monetary contributions:
0 commit comments