Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
589b079
Update versions in application files
Feb 5, 2024
25f969a
Merge pull request #9485 from DefectDojo/master-into-dev/2.31.0-2.32.…
Maffooch Feb 5, 2024
d5f1ed6
Update release-drafter/release-drafter action from v5.25.0 to v6 (.gi…
renovate[bot] Feb 6, 2024
617e176
Bump pytz from 2023.4 to 2024.1 (#9465)
dependabot[bot] Feb 6, 2024
29974d1
Bump django-debug-toolbar from 4.2.0 to 4.3.0 (#9466)
dependabot[bot] Feb 6, 2024
186edfe
Bump nginx from `d12e6f7` to `f2802c2` (#9477)
dependabot[bot] Feb 6, 2024
97e22a0
Update dependency postcss from 8.4.33 to v8.4.34 (docs/package.json) …
renovate[bot] Feb 6, 2024
e751fb4
Update rabbitmq:3.12.12-alpine Docker digest from 3.12.12 to 3.12.12-…
renovate[bot] Feb 6, 2024
c219056
:arrow_up: Bump boto3 from 1.34.32 to 1.34.35 (#9489)
dependabot[bot] Feb 6, 2024
1c2420d
Update dependency ruff from 0.1.15 to v0.2.1 (requirements-lint.txt) …
renovate[bot] Feb 6, 2024
d015e36
:bug: fix defaulting severity, see last comments in #8778 (#9370)
manuel-sommer Feb 6, 2024
468ba9a
Add ruff for *tests (#9406)
kiblik Feb 6, 2024
1c33819
Revert ":bug: fix dependencytrack deduplication (#9117)" (#9371)
kepten Feb 6, 2024
80f32bb
dojo/importers/importer/importer.py - Change "None" string to "Info" …
ninp0 Feb 6, 2024
6190108
Trivy Operator VulnerabilityReport Parser tweaks (#9452)
raouf-haddada Feb 6, 2024
39cfc70
API: Check missing endpoints (#7618)
kiblik Feb 6, 2024
e13e16e
Fix unittests with assertRaises + replace assertTrue/False with bett…
kiblik Feb 6, 2024
bb5d929
Optimize list of Maintenance in relase notes (#9492)
kiblik Feb 6, 2024
3072d87
fix typo in docs (#9487)
manuel-sommer Feb 6, 2024
e76c968
:bug: WFuzz: Add additional severity mappings (#9486)
manuel-sommer Feb 6, 2024
4bdcccf
Be strict about Warnings during testing (#9490)
kiblik Feb 6, 2024
42d42c9
:bug: fix trufflehog3, issue #6999 (#9470)
manuel-sommer Feb 6, 2024
1d6ad0f
:bug: fix yarn_audit, #6495 (#9478)
manuel-sommer Feb 6, 2024
7b566f9
Bump vulners from 2.1.2 to 2.1.5 (#9391)
dependabot[bot] Feb 6, 2024
ebbe1e8
Add support for DD_APPEND_SLASH (#9385)
kiblik Feb 6, 2024
710d498
:tada: Improvements for wazuh importer (#9248)
quirinziessler Feb 6, 2024
f22fddf
Update rabbitmq:3.12.12-alpine Docker digest from 3.12.12 to 3.12.12-…
renovate[bot] Feb 8, 2024
ea357c4
Update dependency postcss from 8.4.34 to v8.4.35 (docs/package.json) …
renovate[bot] Feb 8, 2024
d1db7e1
Improve API endpoints for Risk Acceptances (#9415)
FelixHernandez Feb 9, 2024
bdd191c
Modifying Bugcrowd API Parser to align to vendor documentation on wha…
grendel513 Feb 9, 2024
7124335
add metrics page: "Product Tag Count" (fixes #9151) (#9152)
tomaszn Feb 12, 2024
93f449d
Update versions in application files
Feb 12, 2024
0836d91
Merge branch 'dev' into master-into-dev/2.31.1-2.32.0-dev
Maffooch Feb 12, 2024
6297b09
Merge pull request #9534 from DefectDojo/master-into-dev/2.31.1-2.32.…
Maffooch Feb 12, 2024
10ac52d
Dojo_Group: Support for "RemoteUser" in model (#9405)
kiblik Feb 12, 2024
98ecd13
Update rabbitmq:3.12.12-alpine Docker digest from 3.12.12 to 3.12.12-…
renovate[bot] Feb 13, 2024
a5aac39
remove flot-axis library (#9540)
FelixHernandez Feb 13, 2024
329f942
use full url for helm-repos and alias in renovate.json (#9525)
rndmh3ro Feb 14, 2024
b008a8a
Update Helm release redis from 16.12.3 to ~16.13.0 (helm/defectdojo/C…
renovate[bot] Feb 15, 2024
91d485d
Update rabbitmq:3.12.12-alpine Docker digest from 3.12.12 to 3.12.12-…
renovate[bot] Feb 15, 2024
26f959a
Update postgres Docker tag from 16.1 to v16.2 (docker-compose.yml) (#…
renovate[bot] Feb 15, 2024
16fc7a7
Update Helm release mysql from 9.1.8 to ~9.19.0 (helm/defectdojo/Char…
renovate[bot] Feb 15, 2024
a2d2fc8
Update Helm release rabbitmq from 11.2.2 to ~11.16.0 (helm/defectdojo…
renovate[bot] Feb 15, 2024
9171885
Update Helm release postgresql from 11.6.26 to ~11.9.0 (helm/defectdo…
renovate[bot] Feb 15, 2024
aba513f
Update Helm release postgresql-ha from 9.1.9 to ~9.4.0 (helm/defectdo…
renovate[bot] Feb 15, 2024
77f0cf1
Remove DD_USE_L10N (#9491)
kiblik Feb 15, 2024
648554b
API: removal of drf_yasg (OpenAPI 2.0 Swagger) (#9108)
kiblik Feb 15, 2024
c0ac882
Drop filterwarnings "unclosed file" (#9498)
kiblik Feb 15, 2024
c1819a1
:bug: WFuzz: Generalize severity mapping (#9505)
manuel-sommer Feb 15, 2024
89cefc7
Remove useless noqa, be more specific for usefull noqa (#9510)
kiblik Feb 15, 2024
1436db2
:sparkles: add burp dastardly (#9514)
manuel-sommer Feb 15, 2024
96e2a4b
Remove filterwarnings for "invalid escape sequence" (#9496)
kiblik Feb 16, 2024
f3b409a
:bug: fix mobsf deduplication and severity mapping (#9471)
manuel-sommer Feb 16, 2024
496ea37
Remove filterwarnings for "DateTimeField - timezone" (#9497)
kiblik Feb 16, 2024
72e20ea
Update Helm release postgresql-ha from 9.4.11 to v13 (helm/defectdojo…
renovate[bot] Feb 16, 2024
7931b1b
Remove handling of broken unittests (#9504)
kiblik Feb 16, 2024
2e87065
:tada: introducing EPSS score (#9516)
quirinziessler Feb 20, 2024
fec074e
:tada: importing epss score from DependencyTrack output (#9521)
quirinziessler Feb 20, 2024
4d7dea4
improved Sonatype parser (#9519)
reichertan Feb 20, 2024
c330575
fix clair docs according to PR #9355 (#9523)
manuel-sommer Feb 20, 2024
fc968da
:arrow_up: Bump openapitools/openapi-generator-cli from v7.2.0 to v7.…
dependabot[bot] Feb 20, 2024
ba3af04
:tada: Importing EPSS score from AWS Inspector via AWS SecHub (#9529)
quirinziessler Feb 20, 2024
fc27a65
:bug: fix kics, #7966 (#9542)
manuel-sommer Feb 20, 2024
3f3f377
:bug: fix nessus severity (#9549)
manuel-sommer Feb 20, 2024
b61bace
:sparkles: Documentation for managing files (#9557)
manuel-sommer Feb 20, 2024
5497272
Update rabbitmq Docker tag from 3.12.12 to v3.12.13 (docker-compose.y…
renovate[bot] Feb 20, 2024
f8c269e
Bump nginx from 1.25.3-alpine to 1.25.4-alpine (#9580)
dependabot[bot] Feb 20, 2024
f957528
Update versions in application files
Feb 20, 2024
0306d27
Merge branch 'dev' into master-into-dev/2.31.2-2.32.0-dev
Maffooch Feb 20, 2024
dc60184
Ignore warnings from polymorphic
Maffooch Feb 20, 2024
996447b
Fix Flake8
Maffooch Feb 20, 2024
a114822
More warning handling
Maffooch Feb 20, 2024
36d666d
Fix Flake8 again...
Maffooch Feb 20, 2024
d5fa644
Merge pull request #9597 from DefectDojo/master-into-dev/2.31.2-2.32.…
Maffooch Feb 20, 2024
702b489
Update dependency ruff from 0.2.1 to v0.2.2 (requirements-lint.txt) (…
renovate[bot] Feb 21, 2024
db2f003
:sparkles: AWS Security Hub: Add GuardDuty (#9524)
manuel-sommer Feb 21, 2024
b0d75ca
Update gcr.io/cloudsql-docker/gce-proxy Docker tag from 1.33.16 to v1…
renovate[bot] Feb 22, 2024
e77f7f0
Merge branch 'dev' into master-into-dev/2.31.3-2.32.0-dev
Maffooch Feb 22, 2024
e0a33de
Merge pull request #9616 from DefectDojo/master-into-dev/2.31.3-2.32.…
Maffooch Feb 22, 2024
3cec37b
Extend npm_audit.md with unsupported v7 notice (#9593)
paulOsinski Feb 23, 2024
20cd36f
Update rabbitmq Docker tag from 3.12.13 to v3.13.0 (docker-compose.ym…
renovate[bot] Feb 25, 2024
7bdc5be
Update versions in application files
Feb 26, 2024
46f338c
Merge branch 'dev' into master-into-dev/2.31.4-2.32.0-dev
Maffooch Feb 26, 2024
96d9a74
Update helm lock file
Feb 26, 2024
ec4abc5
Merge pull request #9634 from DefectDojo/master-into-dev/2.31.4-2.32.…
Maffooch Feb 26, 2024
cd30f42
EPSS Data Displayed Everywhere (#9621)
dogboat Feb 27, 2024
db70802
Drop filterwarnings "cgi is deprecated and slated" (#9561)
kiblik Feb 27, 2024
18ff583
Nosey Parker Parser (#9067)
tpat13 Feb 28, 2024
3b5c056
Remove filterwarnings for RemovedInDjango50Warning (#9500)
kiblik Feb 28, 2024
f4e7908
Update rabbitmq:3.13.0-alpine Docker digest from 3.13.0 to 3.13.0-alp…
renovate[bot] Feb 28, 2024
053929c
Making EPSS float formatting consistent in 'view Finding' (#9591)
cneill Feb 28, 2024
0fd1084
:tada: Snyk epss update (#9601)
quirinziessler Feb 28, 2024
8402f84
Format cyclonedx_cwe.json (#9595)
paulOsinski Feb 28, 2024
a5df4fa
Engagement validation for risk_acceptance API in POST PATCH and PUT (…
FelixHernandez Feb 28, 2024
680e7ce
:sparkles: Fortify: Support .fpr format (#9590)
manuel-sommer Feb 28, 2024
5ee7bb4
Add integration tests script (#9136)
Maffooch Feb 28, 2024
3051466
ASFF Parser: Respect `active` status based on `RecordState` field (#9…
manuel-sommer Feb 28, 2024
fcb578e
Update azure/setup-helm action from v3 to v4 (.github/workflows/test-…
renovate[bot] Feb 29, 2024
6d04c1f
View Engagement to class based view and block in engagement template …
FelixHernandez Feb 29, 2024
01a4fcf
FindingGroupSerializer: not break schemas when JIRAIssue not availabl…
kiblik Feb 29, 2024
0ff0bb2
Update versions in application files
Mar 1, 2024
ac9db13
Merge branch 'dev' into master-into-dev/2.31.5-2.32.0-dev
Maffooch Mar 1, 2024
e2b4ba9
Merge pull request #9656 from DefectDojo/master-into-dev/2.31.5-2.32.…
Maffooch Mar 1, 2024
5d3d56d
Update dependency ruff from 0.2.2 to v0.3.0 (requirements-lint.txt) (…
renovate[bot] Mar 1, 2024
eb17d85
Added Snyk Code Parser (#9647)
FelixHernandez Mar 1, 2024
86dfea3
advance mobsf to also parse exisiting unittestfile (#9563)
manuel-sommer Mar 1, 2024
f027c63
Extend APIv2 Findings endpoint and UI filters to accept new date filt…
FelixHernandez Mar 2, 2024
c6bcbb2
Update dependency autoprefixer from 10.4.17 to v10.4.18 (docs/package…
renovate[bot] Mar 2, 2024
15f2a29
resolve npm audit unittest doing (#9572)
manuel-sommer Mar 4, 2024
7c41c71
Anchore Grype: Default to Info severity if missing in report (#9620)
manuel-sommer Mar 4, 2024
a84d845
Upgrade Notes: Move breaking helm change notice from 2.13.x -> 2.12.x…
manuel-sommer Mar 4, 2024
c5741fc
StringAgg: use default Value('') (#9661)
kiblik Mar 4, 2024
ef07eb0
Bundler Audit Parser - Support for GHSA-Only Findings (#9649)
rh0dy Mar 4, 2024
86e1afb
Fix github parser issue 9582 (#9583)
manuel-sommer Mar 4, 2024
e9b47b9
:hammer: restructure openvas parser (#9658)
manuel-sommer Mar 4, 2024
ee1c6e0
Force to use DjangoDivFormRenderer (#9659)
kiblik Mar 4, 2024
12ea3e6
🔨 restructure clair parser (#9660)
manuel-sommer Mar 4, 2024
cd29fdb
:sparkles: implement osv-scanner, #7321 (#9578)
manuel-sommer Mar 4, 2024
8b7fa55
resolve doing, remove dead code (#9577)
manuel-sommer Mar 4, 2024
e623982
Upgrade drf-spectacular-sidecar to 2024.3.4 (#9670)
kiblik Mar 4, 2024
5b93c47
DRF Spectacular: Enable sidecar by default (#9645)
Maffooch Mar 4, 2024
ef2a3fd
Fix shell check
Maffooch Mar 4, 2024
7a13dc5
Update versions in application files
Mar 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,17 @@ categories:
- title: '🗣 Updates in localization'
label: 'localization'
- title: '🧰 Maintenance'
collapse-after: 3
labels:
- 'dependencies'
- 'maintenance'
exclude-labels:
- 'skip-changelog'
- 'skip-changelog'

change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
template: |
Please consult the [Upgrade notes in the documentation ](https://documentation.defectdojo.com/getting_started/upgrading/) for specific instructions for this release, and general upgrade instructions. Below is an automatically generated list of all PRs merged since the previous release.

## Changes since $PREVIOUS_TAG
$CHANGES

Expand All @@ -65,4 +66,4 @@ version-resolver:
patch:
labels:
- 'patch'
default: patch
default: patch
5 changes: 4 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
"commitMessageExtra": "from {{currentVersion}} to {{#if isMajor}}v{{{newMajor}}}{{else}}{{#if isSingleVersion}}v{{{toVersion}}}{{else}}{{{newValue}}}{{/if}}{{/if}}",
"commitMessageSuffix": "({{packageFile}})",
"labels": ["dependencies"]
}]
}],
"registryAliases": {
"bitnami": "https://charts.bitnami.com/bitnami"
}
}
2 changes: 1 addition & 1 deletion .github/workflows/refresh_helm_lock_file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
path: charts
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4
with:
version: v3.4.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
steps:
- name: Create Release
id: create_release
uses: release-drafter/release-drafter@v5.25.0
uses: release-drafter/release-drafter@v6.0.0
with:
version: ${{ github.event.inputs.version }}
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-x-manual-helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
git config --global user.email "${{ env.GIT_EMAIL }}"

- name: Install Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4
with:
version: v3.4.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
run: pip install -r requirements-lint.txt

- name: Run Ruff Linter
run: ruff dojo
run: ruff .
2 changes: 1 addition & 1 deletion .github/workflows/test-helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4
with:
version: v3.4.0

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.integration-tests-debian
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# code: language=Dockerfile

FROM openapitools/openapi-generator-cli:v7.2.0@sha256:9eab779faa2525b1474c4159ec335d913ee3cee00f641552a2305b0a4d7db8f7 as openapitools
FROM openapitools/openapi-generator-cli:v7.3.0@sha256:74b9992692c836e42a02980db4b76bee94e17075e4487cd80f5c540dd57126b9 as openapitools
FROM python:3.11.4-slim-bullseye@sha256:40319d0a897896e746edf877783ef39685d44e90e1e6de8d964d0382df0d4952 as build
WORKDIR /app
RUN \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.nginx-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ COPY manage.py ./
COPY dojo/ ./dojo/
RUN env DD_SECRET_KEY='.' python3 manage.py collectstatic --noinput && true

FROM nginx:1.25.3-alpine@sha256:d12e6f7153fae36843aaeed8144c39956698e084e2e898891fa0cc8fe8f6c95c
FROM nginx:1.25.4-alpine@sha256:6a2f8b28e45c4adea04ec207a251fd4a2df03ddc930f782af51e315ebc76e9a9
ARG uid=1001
ARG appuser=defectdojo
COPY --from=collectstatic /app/static/ /usr/share/nginx/html/static/
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.nginx-debian
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ COPY dojo/ ./dojo/

RUN env DD_SECRET_KEY='.' python3 manage.py collectstatic --noinput && true

FROM nginx:1.25.3-alpine@sha256:d12e6f7153fae36843aaeed8144c39956698e084e2e898891fa0cc8fe8f6c95c
FROM nginx:1.25.4-alpine@sha256:6a2f8b28e45c4adea04ec207a251fd4a2df03ddc930f782af51e315ebc76e9a9
ARG uid=1001
ARG appuser=defectdojo
COPY --from=collectstatic /app/static/ /usr/share/nginx/html/static/
Expand Down
43 changes: 0 additions & 43 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -3910,49 +3910,6 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


drf-yasg
1.20.0
BSD License
.. |br| raw:: html

<br />

#######
License
#######

********************
BSD 3-Clause License
********************

Copyright (c) 2017 - 2019, Cristian V. <cristi@cvjd.me> |br|\ All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


ecdsa
0.17.0
MIT
Expand Down
3 changes: 1 addition & 2 deletions components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "defectdojo",
"version": "2.31.5",
"version": "2.32.0",
"license" : "BSD-3-Clause",
"private": true,
"dependencies": {
Expand All @@ -21,7 +21,6 @@
"drmonty-datatables-responsive": "^1.0.0",
"easymde": "^2.18.0",
"flot": "flot/flot#~0.8.3",
"flot-axis": "markrcote/flot-axislabels#*",
"font-awesome": "^4.0.0",
"fullcalendar": "^3.10.2",
"google-code-prettify": "^1.0.0",
Expand Down
55 changes: 55 additions & 0 deletions dc-integration-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/usr/bin/env bash

unset TEST_CASE

bash ./docker/docker-compose-check.sh
if [[ $? -eq 1 ]]; then exit 1; fi

usage() {
echo
echo "This script helps with running integration tests."
echo
echo "Options:"
echo " --test-case -t {YOUR_FULLY_QUALIFIED_TEST_CASE}"
echo " --help -h - prints this dialogue."
echo
echo
echo "Example command:"
echo './dc-unittest.sh --test-case "Finding integration tests"'
}

while [[ $# -gt 0 ]]; do
case $1 in
-t|--test-case)
TEST_CASE="$2"
shift # past argument
shift # past value
;;
-h|--help)
usage
exit 0
;;
-*)
echo "Unknown option $1"
usage
exit 1
;;
*)
POSITIONAL_ARGS+=("$1") # save positional arg
shift # past argument
;;
esac
done

echo "Running docker compose unit tests with profile postgres-redis and test case $TEST_CASE ..."

# Compose V2 integrates compose functions into the Docker platform, continuing to support most of the previous docker-compose features and flags. You can run Compose V2 by replacing the hyphen (-) with a space, using docker compose, instead of docker-compose.
echo "Building images..."
./docker/setEnv.sh integration_tests
./dc-build.sh
echo "Setting up DefectDojo with Postgres and RabbitMQ..."
DD_INTEGRATION_TEST_FILENAME="$TEST_CASE" docker compose --profile postgres-redis --env-file ./docker/environments/postgres-redis.env up --no-deps -d postgres nginx celerybeat celeryworker mailhog uwsgi redis
echo "Initializing DefectDojo..."
DD_INTEGRATION_TEST_FILENAME="$TEST_CASE" docker compose --profile postgres-redis --env-file ./docker/environments/postgres-redis.env up --no-deps --exit-code-from initializer initializer
echo "Running the integration tests..."
DD_INTEGRATION_TEST_FILENAME="$TEST_CASE" docker compose --profile postgres-redis --env-file ./docker/environments/postgres-redis.env up --no-deps --exit-code-from integration-tests integration-tests
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ services:
volumes:
- defectdojo_data:/var/lib/mysql
postgres:
image: postgres:16.1-alpine@sha256:17eb369d9330fe7fbdb2f705418c18823d66322584c77c2b43cc0e1851d01de7
image: postgres:16.2-alpine@sha256:bbd7346fab25b7e0b25f214829d6ebfb78ef0465059492e46dee740ce8fcd844
profiles:
- postgres-rabbitmq
- postgres-redis
Expand All @@ -149,7 +149,7 @@ services:
volumes:
- defectdojo_postgres:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:3.12.12-alpine@sha256:614857f02c0f150a0b1d29b2a03700d34c14dff7d19c85398e968a58ac7517c1
image: rabbitmq:3.13.0-alpine@sha256:e5dafa1f9ac08f6b5be5ab7d9e0a3cba9cde8011cb053aa779a7ef0a922a3138
profiles:
- mysql-rabbitmq
- postgres-rabbitmq
Expand Down
3 changes: 3 additions & 0 deletions docker/entrypoint-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export CHROMEDRIVER
CHROME_PATH=/opt/chrome/chrome
export CHROME_PATH

# We are strict about Warnings during testing
export PYTHONWARNINGS=error

# Run available unittests with a simple setup
# All available Integrationtest Scripts are activated below
# If successsful, A successs message is printed and the script continues
Expand Down
9 changes: 4 additions & 5 deletions docker/entrypoint-unit-tests-devDocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ unset DD_DATABASE_URL
# Unset the celery broker URL so that we can force the other DD_CELERY_BROKER settings
unset DD_CELERY_BROKER_URL

# We are strict about Warnings during testing
export PYTHONWARNINGS=error

python3 manage.py makemigrations dojo
python3 manage.py migrate

Expand Down Expand Up @@ -48,13 +51,9 @@ EOF
python3 manage.py spectacular > /dev/null
}

echo "Swagger Schema Tests - Broken"
echo "------------------------------------------------------------"
python3 manage.py test unittests -v 3 --keepdb --no-input --tag broken && true

echo "Unit Tests"
echo "------------------------------------------------------------"
python3 manage.py test unittests -v 3 --keepdb --no-input --exclude-tag broken
python3 manage.py test unittests -v 3 --keepdb --no-input

# you can select a single file to "test" unit tests
# python3 manage.py test unittests.tools.test_npm_audit_scan_parser.TestNpmAuditParser --keepdb -v 3
Expand Down
9 changes: 4 additions & 5 deletions docker/entrypoint-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ unset DD_DATABASE_URL
# Unset the celery broker URL so that we can force the other DD_CELERY_BROKER settings
unset DD_CELERY_BROKER_URL

# We are strict about Warnings during testing
export PYTHONWARNINGS=error

# TARGET_SETTINGS_FILE=dojo/settings/settings.py
# if [ ! -f ${TARGET_SETTINGS_FILE} ]; then
# echo "Creating settings.py"
Expand Down Expand Up @@ -74,10 +77,6 @@ python3 manage.py migrate
# --parallel fails on GitHub Actions
#python3 manage.py test unittests -v 3 --no-input --parallel

echo "Swagger Schema Tests - Broken"
echo "------------------------------------------------------------"
python3 manage.py test unittests -v 3 --keepdb --no-input --tag broken && true

echo "Unit Tests"
echo "------------------------------------------------------------"
python3 manage.py test unittests -v 3 --keepdb --no-input --exclude-tag broken
python3 manage.py test unittests -v 3 --keepdb --no-input
19 changes: 19 additions & 0 deletions docs/content/en/getting_started/upgrading/2.12.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,22 @@ description: breaking change
---
**Breaking change for search:** The field `cve` has been removed from the search index for Findings and the Vulnerability Ids have been added to the search index. With this the syntax to search explicitly for vulnerability ids have been changed from `cve:` to `vulnerability_id:`, e.g. `vulnerability_id:CVE-2020-27619`.

**Upgrade instructions for helm chart with postgres enabled**: The postgres database uses a statefulset by default. Before upgrading the helm chart we have to delete the statefullset and ensure that the pvc is reused, to keep the data. For more information: https://docs.bitnami.com/kubernetes/infrastructure/postgresql/administration/upgrade/ .

```bash
helm repo update
helm dependency update ./helm/defectdojo

# obtain name oft the postgres pvc
export POSTGRESQL_PVC=$(kubectl get pvc -l app.kubernetes.io/instance=defectdojo,role=primary -o jsonpath="{.items[0].metadata.name}")

# delete postgres statefulset
kubectl delete statefulsets.apps defectdojo-postgresql --namespace default --cascade=orphan

# upgrade
helm upgrade \
defectdojo \
./helm/defectdojo/ \
--set primary.persistence.existingClaim=$POSTGRESQL_PVC \
... # add your custom settings
```
20 changes: 0 additions & 20 deletions docs/content/en/getting_started/upgrading/2.13.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,6 @@ Additionally this requires a one-time rebuild of the Django-Watson search index.

`./manage.py buildwatson`

**Upgrade instructions for helm chart with postgres enabled**: The postgres database uses a statefulset by default. Before upgrading the helm chart we have to delete the statefullset and ensure that the pvc is reused, to keep the data. For more information: https://docs.bitnami.com/kubernetes/infrastructure/postgresql/administration/upgrade/ .

```bash
helm repo update
helm dependency update ./helm/defectdojo

# obtain name oft the postgres pvc
export POSTGRESQL_PVC=$(kubectl get pvc -l app.kubernetes.io/instance=defectdojo,role=primary -o jsonpath="{.items[0].metadata.name}")

# delete postgres statefulset
kubectl delete statefulsets.apps defectdojo-postgresql --namespace default --cascade=orphan

# upgrade
helm upgrade \
defectdojo \
./helm/defectdojo/ \
--set primary.persistence.existingClaim=$POSTGRESQL_PVC \
... # add your custom settings
```

**Further changes:**

Legacy authorization for changing configurations based on staff users has been removed.
14 changes: 14 additions & 0 deletions docs/content/en/getting_started/upgrading/2.32.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: 'Upgrading to DefectDojo Version 2.32.x'
toc_hide: true
weight: -20240205
description: Breaking change: Removal of OpenAPI 2.0 Swagger
---
There are no special instructions for upgrading to 2.32.x. Check the [Release Notes](https://github.com/DefectDojo/django-DefectDojo/releases/tag/2.32.0) for the contents of the release.

**Removal**

The OpenAPI 2.0 Swagger API documentation was removed in favor of the existing
OpenAPI 3.0 API documentation page.

*Note*: The API has not changed in any way and behaves the same between OAPI2 and OAPI3
7 changes: 2 additions & 5 deletions docs/content/en/integrations/api-v2-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ Docs link on the user drop down menu in the header.

![image](../../images/api_v2_1.png)

The documentation is generated using [Django Rest Framework
Yet Another Swagger Generator](https://github.com/axnsan12/drf-yasg/), and is
interactive. On the top of API v2 docs is a link that generates an OpenAPI v2 spec.

As a preparation to move to OpenAPIv3, we have added an compatible spec and documentation at [`/api/v2/oa3/swagger-ui/`](https://demo.defectdojo.org/api/v2/oa3/swagger-ui/)
The documentation is generated using [drf-spectacular](https://drf-spectacular.readthedocs.io/) at [`/api/v2/oa3/swagger-ui/`](https://demo.defectdojo.org/api/v2/oa3/swagger-ui/), and is
interactive. On the top of API v2 docs is a link that generates an OpenAPI v3 spec.

To interact with the documentation, a valid Authorization header value
is needed. Visit the `/api/key-v2` view to generate your
Expand Down
Loading