Skip to content

Commit b08723d

Browse files
authored
Merge pull request #3564 from DefectDojo/release/1.11.0
Release: Merge release into master from: release/1.11.0
2 parents 0c02ef9 + 0b61a1c commit b08723d

File tree

238 files changed

+178381
-5442
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

238 files changed

+178381
-5442
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
.gitignore
33
*.md
44
.env*
5-
**/local_settings.py

.github/PULL_REQUEST_TEMPLATE/pull_request_template.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ Please update any documentation when needed (in the .MD files in this repo, as w
1515

1616
This checklist is for your information.
1717

18-
- [ ] Features/Changes/Bugfixes should be submitted against the `dev` branch by default
19-
- [ ] Hotfixes should be submitted against master (urgent bugfixes requiring a hotfix release)
18+
- [ ] Features/Changes/Bugfixes should be submitted against the `dev` branch by default.
19+
- [ ] Make sure to rebase your PR against the very latest `dev`.
20+
- [ ] Hotfixes should be submitted against master (urgent bugfixes requiring a hotfix release).
2021
- [ ] Give a meaningful name to your PR, as it may end up being used in the release notes.
2122
- [ ] Your code is flake8 compliant.
2223
- [ ] Your code is python 3.6 compliant (specific python >3.6 syntax is currently not accepted).
@@ -29,7 +30,6 @@ This checklist is for your information.
2930

3031
Please clear everything below when submitting your pull request, it's here purely for your information.
3132

32-
3333
Moderators: Labels currently accepted for PRs:
3434
- Import Scans (for new scanners/importers)
3535
- enhancement

.github/workflows/k8s-testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
- name: Checkout
102102
uses: actions/checkout@v2
103103
- name: Setup Minikube
104-
uses: manusa/actions-setup-minikube@v2.0.1
104+
uses: manusa/actions-setup-minikube@v2.3.0
105105
with:
106106
minikube version: 'v1.14.2'
107107
kubernetes version: 'v1.19.2'

.github/workflows/new-release-master-into-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
grep appVersion helm/defectdojo/Chart.yaml
5555
grep version components/package.json
5656
- name: Push version changes
57-
uses: stefanzweifel/git-auto-commit-action@v4.7.2
57+
uses: stefanzweifel/git-auto-commit-action@v4.8.0
5858
with:
5959
commit_user_name: "${{ env.GIT_USERNAME }}"
6060
commit_user_email: "${{ env.GIT_EMAIL }}"

.github/workflows/new-release-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
grep appVersion helm/defectdojo/Chart.yaml
6161
grep version components/package.json
6262
- name: Push version changes
63-
uses: stefanzweifel/git-auto-commit-action@v4.7.2
63+
uses: stefanzweifel/git-auto-commit-action@v4.8.0
6464
with:
6565
commit_user_name: "${{ env.GIT_USERNAME }}"
6666
commit_user_email: "${{ env.GIT_EMAIL }}"

.github/workflows/new-release-tag-docker.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,13 @@ jobs:
4646
Fill in with release drafter information manually for now, then publish.
4747
draft: true
4848
prerelease: false
49-
job-build-matrix:
50-
needs: tag-and-release
51-
runs-on: ubuntu-latest
52-
outputs:
53-
matrix: ${{ steps.set-matrix.outputs.matrix }}
54-
steps:
55-
- id: set-matrix
56-
# ref should be the tag name
57-
run: echo "::set-output name=matrix::{\"docker-image\":[\"django\",\"nginx\"],\"docker-tag\":[\"latest\",\"${{ github.event.inputs.release_number }}\"]}"
49+
5850
job-build-and-push:
59-
needs: job-build-matrix
51+
needs: tag-and-release
6052
runs-on: ubuntu-latest
6153
strategy:
62-
matrix: ${{fromJson(needs.job-build-matrix.outputs.matrix)}}
54+
matrix:
55+
docker-image: [django, nginx]
6356
steps:
6457
- name: Login to DockerHub
6558
uses: docker/login-action@v1
@@ -82,7 +75,7 @@ jobs:
8275
uses: docker/build-push-action@v2
8376
with:
8477
push: true
85-
tags: ${{ env.REPO_ORG }}/defectdojo-${{ matrix.docker-image}}:${{ matrix.docker-tag }}
78+
tags: ${{ env.REPO_ORG }}/defectdojo-${{ matrix.docker-image}}:${{ github.event.inputs.release_number }}, ${{ env.REPO_ORG }}/defectdojo-${{ matrix.docker-image}}:latest
8679
file: ./Dockerfile.${{ matrix.docker-image }}
8780
context: .
8881
- name: Image digest

.github/workflows/plantuml.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
args: -v -tpng ${{ steps.getfile.outputs.files }}
3232
- name: Push Local Changes
33-
uses: stefanzweifel/git-auto-commit-action@v4.7.2
33+
uses: stefanzweifel/git-auto-commit-action@v4.8.0
3434
with:
3535
commit_user_name: "PlantUML_bot"
3636
commit_user_email: "[email protected]"

.travis.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,6 @@ For changes that require additional settings, you can now use local_settings.py
2121
## Python3 version
2222
For compatibility reasons, the code in dev branch should be python3.6 compliant.
2323

24-
## Logging
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`:
27-
28-
29-
```
30-
LOGGING['loggers']['dojo.specific-loggers.deduplication']['level'] = 'DEBUG'
31-
```
32-
33-
Or you can modify `settings.dist.py` directly, but this adds the risk of having conflicts when `settings.dist.py` gets updated upstream.
34-
35-
```
36-
'dojo.specific-loggers.deduplication': {
37-
'handlers': ['console'],
38-
'level': 'DEBUG',
39-
'propagate': False,
40-
}
41-
```
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-
4724
## Submitting Pull Requests
4825

4926
The following are things to consider before submitting a pull request to
@@ -70,5 +47,3 @@ DefectDojo.
7047
[setup_bash]: /setup.bash "Bash setup script"
7148
[pep8]: https://www.python.org/dev/peps/pep-0008/ "PEP8"
7249
[flake8 built-in commit hooks]: https://flake8.pycqa.org/en/latest/user/using-hooks.html#built-in-hook-integration
73-
74-

DOCKER.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ docker-compose logs initializer | grep "Admin password:"
152152

153153
Make sure you write down the first password generated as you'll need it when re-starting the application.
154154

155-
# Option to change the password
155+
## Option to change the password
156156
* If you dont have admin password use the below command to change the password.
157157
* After starting the container and open another tab in the same folder.
158158
* django-defectdojo_uwsgi_1 -- name obtained from running containers using ```zsh docker ps ``` command
@@ -161,6 +161,29 @@ Make sure you write down the first password generated as you'll need it when re-
161161
docker exec -it django-defectdojo_uwsgi_1 ./manage.py changepassword admin
162162
```
163163

164+
# Logging
165+
For docker-compose release mode the log level is INFO. In the other modes the log level is DEBUG. 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). For example the deduplication logger can be set to DEBUG in a local_settings.py file:
166+
167+
168+
```
169+
LOGGING['loggers']['dojo.specific-loggers.deduplication']['level'] = 'DEBUG'
170+
```
171+
172+
Or you can modify `settings.dist.py` directly, but this adds the risk of having conflicts when `settings.dist.py` gets updated upstream.
173+
174+
```
175+
'dojo.specific-loggers.deduplication': {
176+
'handlers': ['console'],
177+
'level': 'DEBUG',
178+
'propagate': False,
179+
}
180+
```
181+
182+
## Debug Toolbar
183+
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).
184+
This toolbar allows you to debug SQL queries, and shows some other interesting information.
185+
186+
164187
# Exploitation, versioning
165188
## Disable the database initialization
166189
The initializer container can be disabled by exporting: `export DD_INITIALIZE=false`.

0 commit comments

Comments
 (0)