Skip to content

Commit eeaa1ba

Browse files
github-actions[bot]DefectDojo release botMaffoochvalentijnscholtendependabot[bot]
authored
Release: Merge release into master from: release/2.5.0 (DefectDojo#5564)
* Update versions in application files * Update gh-pages.yml * Bump google-auth from 2.3.2 to 2.3.3 (DefectDojo#5367) Bumps [google-auth](https://github.com/googleapis/google-auth-library-python) from 2.3.2 to 2.3.3. - [Release notes](https://github.com/googleapis/google-auth-library-python/releases) - [Changelog](https://github.com/googleapis/google-auth-library-python/blob/main/CHANGELOG.md) - [Commits](googleapis/google-auth-library-python@v2.3.2...v2.3.3) --- updated-dependencies: - dependency-name: google-auth dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump django-imagekit from 4.0.2 to 4.1.0 (DefectDojo#5366) Bumps [django-imagekit](https://github.com/matthewwithanm/django-imagekit) from 4.0.2 to 4.1.0. - [Release notes](https://github.com/matthewwithanm/django-imagekit/releases) - [Commits](matthewwithanm/django-imagekit@4.0.2...4.1.0) --- updated-dependencies: - dependency-name: django-imagekit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * APIv2: Allow import/reimport by names not only ids (DefectDojo#5342) * allow import/reimport by names * cleanup * cleanup * update docs * improvements * cleanup 2 * cleanup 2 * php inventory changes * Update dojo/api_v2/views.py Co-authored-by: Stefan Fleckenstein <[email protected]> * Update dojo/api_v2/views.py Co-authored-by: Stefan Fleckenstein <[email protected]> * cleanup 3.0 * cleanup 3.0 * cleanup 3.0 Co-authored-by: Stefan Fleckenstein <[email protected]> * Bump google-api-python-client from 2.28.0 to 2.29.0 (DefectDojo#5365) Bumps [google-api-python-client](https://github.com/googleapis/google-api-python-client) from 2.28.0 to 2.29.0. - [Release notes](https://github.com/googleapis/google-api-python-client/releases) - [Changelog](https://github.com/googleapis/google-api-python-client/blob/main/CHANGELOG.md) - [Commits](googleapis/google-api-python-client@v2.28.0...v2.29.0) --- updated-dependencies: - dependency-name: google-api-python-client dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump lxml from 4.6.3 to 4.6.4 (DefectDojo#5381) Bumps [lxml](https://github.com/lxml/lxml) from 4.6.3 to 4.6.4. - [Release notes](https://github.com/lxml/lxml/releases) - [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt) - [Commits](lxml/lxml@lxml-4.6.3...lxml-4.6.4) --- updated-dependencies: - dependency-name: lxml dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update gcr.io/cloudsql-docker/gce-proxy Docker tag from 1.26.0 to v1.27.0 (helm/defectdojo/values.yaml) (DefectDojo#5375) Co-authored-by: Renovate Bot <[email protected]> * Update upgrading.md (DefectDojo#5374) * Update versions in application files * Bump django-watson from 1.5.5 to 1.6.0 (DefectDojo#5389) Bumps [django-watson](https://github.com/etianen/django-watson) from 1.5.5 to 1.6.0. - [Release notes](https://github.com/etianen/django-watson/releases) - [Changelog](https://github.com/etianen/django-watson/blob/master/CHANGELOG.markdown) - [Commits](etianen/django-watson@release-1.5.5...release-1.6.0) --- updated-dependencies: - dependency-name: django-watson dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * main: improve documentation (DefectDojo#5390) * Update dependency postcss-cli from 9.0.1 to v9.0.2 (docs/package.json) (DefectDojo#5392) Co-authored-by: Renovate Bot <[email protected]> * Generate github pages for master + dev branches (DefectDojo#5398) * pages for master and dev * pages for master and dev * Bump numpy from 1.21.3 to 1.21.4 (DefectDojo#5396) Bumps [numpy](https://github.com/numpy/numpy) from 1.21.3 to 1.21.4. - [Release notes](https://github.com/numpy/numpy/releases) - [Changelog](https://github.com/numpy/numpy/blob/main/doc/HOWTO_RELEASE.rst.txt) - [Commits](numpy/numpy@v1.21.3...v1.21.4) --- updated-dependencies: - dependency-name: numpy dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update Chart.yaml * Integration test idempotency (DefectDojo#5397) * Resolve failing integration test if user existed. Added is_help_message_present for .help-block Used non-deprecated selector * Ensure test_user_notificaitons_change tests changes and not just selecting. Test is now idempotent instead of just working first time. * Removing integration test with missing test file. Removal based on existing read-only tests within user_test.py and lack of test in GitHub Actions. * Remove trailing whitespace * Restore entrypoint-integration-tests.sh * main(tests): remove rabbitmq from unit-tests (DefectDojo#5307) * main(tests): remove rabbitmq from unit-tests service * main(tests): remove rabbitmq from unit-tests * fix(tests): overwrite broker values from dockerfile * Bump pdfmake from 0.2.2 to 0.2.3 in /components (DefectDojo#5409) Bumps [pdfmake](https://github.com/bpampuch/pdfmake) from 0.2.2 to 0.2.3. - [Release notes](https://github.com/bpampuch/pdfmake/releases) - [Changelog](https://github.com/bpampuch/pdfmake/blob/0.2.3/CHANGELOG.md) - [Commits](bpampuch/pdfmake@0.2.2...0.2.3) --- updated-dependencies: - dependency-name: pdfmake dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump django-extensions from 3.1.3 to 3.1.5 (DefectDojo#5408) Bumps [django-extensions](https://github.com/django-extensions/django-extensions) from 3.1.3 to 3.1.5. - [Release notes](https://github.com/django-extensions/django-extensions/releases) - [Changelog](https://github.com/django-extensions/django-extensions/blob/main/CHANGELOG.md) - [Commits](django-extensions/django-extensions@3.1.3...3.1.5) --- updated-dependencies: - dependency-name: django-extensions dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Remove models for legacy api classes (DefectDojo#5387) * Remove models for legacy api classes * fix unit tests * Auth V2 - Remove legacy authorization part 1: Remove legacy auth from templates (DefectDojo#5382) * remove legacy auth from templates * remove legacy unit test * remove dependency check report (DefectDojo#5413) * fix(helm chart): Update the nginx-prometheus-exporter entrypoint (DefectDojo#5415) Fix DefectDojo#5414 The entrypoint has been changed between version 0.8.0 and 0.9.0 of the nginx-prometheus-exporter * Bump google-api-python-client from 2.29.0 to 2.30.0 (DefectDojo#5418) Bumps [google-api-python-client](https://github.com/googleapis/google-api-python-client) from 2.29.0 to 2.30.0. - [Release notes](https://github.com/googleapis/google-api-python-client/releases) - [Changelog](https://github.com/googleapis/google-api-python-client/blob/main/CHANGELOG.md) - [Commits](googleapis/google-api-python-client@v2.29.0...v2.30.0) --- updated-dependencies: - dependency-name: google-api-python-client dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump pdfmake from 0.2.3 to 0.2.4 in /components (DefectDojo#5429) Bumps [pdfmake](https://github.com/bpampuch/pdfmake) from 0.2.3 to 0.2.4. - [Release notes](https://github.com/bpampuch/pdfmake/releases) - [Changelog](https://github.com/bpampuch/pdfmake/blob/0.2.4/CHANGELOG.md) - [Commits](bpampuch/pdfmake@0.2.3...0.2.4) --- updated-dependencies: - dependency-name: pdfmake dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump coverage from 6.1.1 to 6.1.2 (DefectDojo#5428) Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.1.1 to 6.1.2. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](nedbat/coveragepy@6.1.1...6.1.2) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump drf-spectacular from 0.20.2 to 0.21.0 (DefectDojo#5427) Bumps [drf-spectacular](https://github.com/tfranzel/drf-spectacular) from 0.20.2 to 0.21.0. - [Release notes](https://github.com/tfranzel/drf-spectacular/releases) - [Changelog](https://github.com/tfranzel/drf-spectacular/blob/master/CHANGELOG.rst) - [Commits](tfranzel/drf-spectacular@0.20.2...0.21.0) --- updated-dependencies: - dependency-name: drf-spectacular dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix integration test users (DefectDojo#5425) * Fix: sequential integration tests * Fix: sequential integration tests * Remove: reload Co-authored-by: Dubravko Sever <[email protected]> * Update rabbitmq Docker tag from 3.9.8 to v3.9.9 (docker-compose.yml) (DefectDojo#5434) Co-authored-by: Renovate Bot <[email protected]> * Bump psycopg2-binary from 2.9.1 to 2.9.2 (DefectDojo#5439) Bumps [psycopg2-binary](https://github.com/psycopg/psycopg2) from 2.9.1 to 2.9.2. - [Release notes](https://github.com/psycopg/psycopg2/releases) - [Changelog](https://github.com/psycopg/psycopg2/blob/master/NEWS) - [Commits](https://github.com/psycopg/psycopg2/commits) --- updated-dependencies: - dependency-name: psycopg2-binary dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump sqlalchemy from 1.4.26 to 1.4.27 (DefectDojo#5440) Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.4.26 to 1.4.27. - [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases) - [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES) - [Commits](https://github.com/sqlalchemy/sqlalchemy/commits) --- updated-dependencies: - dependency-name: sqlalchemy dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Move more markdown files to github pages (DefectDojo#5403) * Update branching-model.md * remove branching release model from README * Delete BRANCHING-MODEL.md * Update README.md * Update README.md * Delete REST-APIs.md * Delete RELEASE-AND-BRANCH-MODEL.md * Delete GETTING-STARTED.md * Delete ROADMAP.md * Update README.md * Update CONTRIBUTING.md * Update README.md * Delete MAINTAINERS.md * Update security_issue.md * Update README.md * move markdown files to docs * Update docs/content/en/contributing/documentation.md Co-authored-by: Stefan Fleckenstein <[email protected]> * Update README.md * finetune api wrapper section * add back AVAILABLE plugins page * Defect Dojo -> DefectDojo Co-authored-by: Stefan Fleckenstein <[email protected]> * Integration test warning cleanup (DefectDojo#5445) * Update all deprecated selenium get_element(s)_by* * Remove trailing whitespace from user_test.py * fix dedupe sync usage example (DefectDojo#5446) * Bump nginx from 1.21.3-alpine to 1.21.4-alpine (DefectDojo#5452) Bumps nginx from 1.21.3-alpine to 1.21.4-alpine. --- updated-dependencies: - dependency-name: nginx dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * add dojo license to package.json (DefectDojo#5447) * Authz: Allow global maintainers/owner to add Product Types (DefectDojo#5410) * Allow global maintainers/owners to add product types * add permission check to templates * add permission check to templates * rename filter * feat(saml): configurable login button (DefectDojo#5449) * Allow to force login form (DefectDojo#5444) * allow to force login form * add docs * feat: make semgrep reports more informative (DefectDojo#5391) * Add more detailed description for semgrep report. Add unittests for new description format * Fix flake errors * Fix unittest errors * Fix unittest errors * Update dojo/tools/semgrep/parser.py Co-authored-by: Stefan Fleckenstein <[email protected]> * Add test for new semgrep description Co-authored-by: Stefan Fleckenstein <[email protected]> * remove dojo/user/helper (DefectDojo#5412) Co-authored-by: Cody Maffucci <[email protected]> * add build arg for userid integration tests (DefectDojo#5432) * Update mysql:5.7.36 Docker digest from 5.7.36 to v5.7.36 (docker-compose.yml) (DefectDojo#5464) Co-authored-by: Renovate Bot <[email protected]> * Add "Forgot password" functionality (DefectDojo#5302) * Define reset password process * fix LOGIN_EXEMPT_URLS, add button on log-in screen * flake8 * replace "Password reset" by "Forgot password" * add DD_SOCIAL_AUTH_FORGOT_PASSWORD_BUTTON * change DD_SOCIAL_AUTH_FORGOT_PASSWORD_BUTTON to DD_FORGOT_PASSWORD_BUTTON * flake8 * change "mail_notifications_from" to "email_from", change first button, override site url, use "email_from" as sending address, handle ConnectionError * rename DD_FORGOT_PASSWORD_BUTTON to DD_FORGOT_PASSWORD, allow to fail if sending of email is not successful, add integration test, add mailhog to dev and integration tests * typo * add docs * typos * run mailhog during integration tests on github * use SMTP for Celery - to be able to send mail notifications * Bump google-api-python-client from 2.30.0 to 2.31.0 (DefectDojo#5462) Bumps [google-api-python-client](https://github.com/googleapis/google-api-python-client) from 2.30.0 to 2.31.0. - [Release notes](https://github.com/googleapis/google-api-python-client/releases) - [Changelog](https://github.com/googleapis/google-api-python-client/blob/main/CHANGELOG.md) - [Commits](googleapis/google-api-python-client@v2.30.0...v2.31.0) --- updated-dependencies: - dependency-name: google-api-python-client dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump markdown from 3.3.4 to 3.3.5 (DefectDojo#5460) Bumps [markdown](https://github.com/Python-Markdown/markdown) from 3.3.4 to 3.3.5. - [Release notes](https://github.com/Python-Markdown/markdown/releases) - [Commits](Python-Markdown/markdown@3.3.4...3.3.5) --- updated-dependencies: - dependency-name: markdown dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * use buildkit master with bugfix (DefectDojo#5467) * Bump markdown from 3.3.5 to 3.3.6 (DefectDojo#5470) Bumps [markdown](https://github.com/Python-Markdown/markdown) from 3.3.5 to 3.3.6. - [Release notes](https://github.com/Python-Markdown/markdown/releases) - [Commits](Python-Markdown/markdown@3.3.5...3.3.6) --- updated-dependencies: - dependency-name: markdown dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump django-polymorphic from 3.0.0 to 3.1.0 (DefectDojo#5469) Bumps [django-polymorphic](https://github.com/django-polymorphic/django-polymorphic) from 3.0.0 to 3.1.0. - [Release notes](https://github.com/django-polymorphic/django-polymorphic/releases) - [Changelog](https://github.com/django-polymorphic/django-polymorphic/blob/master/docs/changelog.rst) - [Commits](jazzband/django-polymorphic@3.0.0...v3.1) --- updated-dependencies: - dependency-name: django-polymorphic dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump mysqlclient from 2.0.3 to 2.1.0 (DefectDojo#5468) Bumps [mysqlclient](https://github.com/PyMySQL/mysqlclient) from 2.0.3 to 2.1.0. - [Release notes](https://github.com/PyMySQL/mysqlclient/releases) - [Changelog](https://github.com/PyMySQL/mysqlclient/blob/main/HISTORY.rst) - [Commits](PyMySQL/mysqlclient@v2.0.3...v2.1.0) --- updated-dependencies: - dependency-name: mysqlclient dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update rabbitmq:3.9.9 Docker digest from 3.9.9 to 3.9.9 (docker-compose.yml) (DefectDojo#5472) Co-authored-by: Renovate Bot <[email protected]> * Auth V2 - Remove legacy authorization part 3: Remove feature flag from core classes (DefectDojo#5458) * remove dojo/user/helper * remove FEATURE_AUTHORIZATION_V2 from core classes and API * Fix for creating multiple groups containing the same Product Type (DefectDojo#5457) * fix * revert change for message * beautify * Update rabbitmq Docker tag from 3.9.9 to v3.9.10 (docker-compose.yml) (DefectDojo#5475) Co-authored-by: Renovate Bot <[email protected]> * Fix for missing API_Scan_Configuration and exception handler (DefectDojo#5455) Co-authored-by: valentijnscholten <[email protected]> * Add support for pushing tags to jira (DefectDojo#5476) * Bump cryptography from 35.0.0 to 36.0.0 (DefectDojo#5482) Bumps [cryptography](https://github.com/pyca/cryptography) from 35.0.0 to 36.0.0. - [Release notes](https://github.com/pyca/cryptography/releases) - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](pyca/cryptography@35.0.0...36.0.0) --- updated-dependencies: - dependency-name: cryptography dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * new report format (DefectDojo#5478) * Update rabbitmq:3.9.10 Docker digest from 3.9.10 to 3.9.10 (docker-compose.yml) (DefectDojo#5486) Co-authored-by: Renovate Bot <[email protected]> * optimize GHA unit test (DefectDojo#5488) * Moved all plot objects into one .js file (DefectDojo#5456) * Removed all plot objects from corresponding .html files and grouped them into one static .js file * Attempt DefectDojo#1 to fix failing integration test Co-authored-by: valentijnscholten <[email protected]> * Add EmptyDir for CeleryBeat into /run (DefectDojo#5421) * Add volumeMounts for celery beat * Decrease Chart version * use DEDUPE_ALGO_HASH_CODE for detect-secrets (DefectDojo#5483) * Update dependency postcss from 8.3.11 to v8.4.0 (docs/package.json) (DefectDojo#5493) Co-authored-by: Renovate Bot <[email protected]> * Update labeler.yml * add tag for each trivy vulnerability (DefectDojo#5479) Signed-off-by: shubhindia <[email protected]> * Update dependency postcss from 8.4.0 to v8.4.1 (docs/package.json) (DefectDojo#5498) Co-authored-by: Renovate Bot <[email protected]> * Update DOCKER.md (DefectDojo#5505) Fixing broken link for "Running in Production" * Update dependency postcss from 8.4.1 to v8.4.3 (docs/package.json) (DefectDojo#5507) Co-authored-by: Renovate Bot <[email protected]> * go to user view after user add (DefectDojo#5510) * set default group for all new users (DefectDojo#5501) * Update dependency postcss from 8.4.3 to v8.4.4 (docs/package.json) (DefectDojo#5512) Co-authored-by: Renovate Bot <[email protected]> * Auth V2 - Remove legacy authorization part 4: final removal of FEATURE_AUTHORIZATION_V2 (DefectDojo#5477) * remove FEATURE_AUTHORIZATION_V2 * flake8 Co-authored-by: valentijnscholten <[email protected]> * fix duplicate notification urls (DefectDojo#5515) * Update 0066_django_tagulous.py (DefectDojo#5514) * Nessus: store only standard protocol names (DefectDojo#5471) Co-authored-by: valentijnscholten <[email protected]> * Bump coverage from 6.1.2 to 6.2 (DefectDojo#5520) Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.1.2 to 6.2. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](nedbat/coveragepy@6.1.2...6.2) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat(helm): allow disabling initializer job (DefectDojo#5504) There is initializer.run: true in default values.yaml, but it isn't used anywhere. I'd like to add the opportunity to disable the initializer job. Also, it would be great to make it possible to add annotations to the initializer job. UPD: annotations support for init job was added :) * Bump humanize from 3.12.0 to 3.13.1 (DefectDojo#5530) Bumps [humanize](https://github.com/jmoiron/humanize) from 3.12.0 to 3.13.1. - [Release notes](https://github.com/jmoiron/humanize/releases) - [Commits](jmoiron/humanize@3.12.0...3.13.1) --- updated-dependencies: - dependency-name: humanize dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Endpoint Metadata Importer for adding tags/custom fields to Endpoints (DefectDojo#5491) * Endpoint Metadata Importer for adding tags and custom fields to Endpoints * fix flake8 * Add api functionality and update docs * fix flake8 * Add unit test suite * fix Flake8 * fix Flake8 * Add endpoint to test method list * Correct unit tests and remove print statements * Add feature flag an rename private_dns to hostname * Rename no_private_dns_endpoint_meta_import.csv to no_hostname_endpoint_meta_import.csv * Make changes requested by Stefan * Fix Flake8 * seperate API product_name and product_id accessors * Fix typo * Fix copy/paste error * Add endpoint meta import to system settings * Update Nessus WAS parser to catch the lack of a port in CSV Parser (DefectDojo#5490) * Update Nessus WAS parser to catch the lack of a port in CSV Parser * Remove default of '8888' and just leave blank * Remove default port/protocol * Fix Flake8 * Add IP address as backup to host Co-authored-by: valentijnscholten <[email protected]> * main(helm): remove deprecated stable repo (DefectDojo#5450) * main(helm): remove deprecated stable repo * fix: rename mysql variable for bitnami chart * fix(helm): mysql secrets * main(tests): update kubernetes versions * main(tests): update kubernetes test strategy * main(tests): update minikube * fix(helm): mysql port and documentation Co-authored-by: valentijnscholten <[email protected]> * move unittests outside dojo folder (DefectDojo#5527) * move unittests outside dojo folder * change base class * cleanup * cleanup * cleanup * cleanup * fixes * cleanup * refactor * cleanup * cleanup * cleanup * fixes * fixes * fixes * we expect these env variables to be set (DefectDojo#5529) Co-authored-by: valentijnscholten <[email protected]> * Upgrade to Django 3.2 (DefectDojo#5265) * Upgrade to Django 3.2 * try fork with tagulous fix * try fork with tagulous fix * fixes for typos (DefectDojo#5531) * fix: checkmarx parser aggregation and deduplication with query id (DefectDojo#5506) this should fix DefectDojo#3958 the aggregation mechanism and deduplication mechanism for checkmarx are now using the same fields it now uses the query id of checkmarx in the hash code to avoid creating multiple issue for each checkmarx "result" we keep the aggregation but now we can no longer find duplicates inside a single report * Bump djangosaml2 from 1.3.4 to 1.3.5 (DefectDojo#5463) Bumps [djangosaml2](https://github.com/IdentityPython/djangosaml2) from 1.3.4 to 1.3.5. - [Release notes](https://github.com/IdentityPython/djangosaml2/releases) - [Changelog](https://github.com/IdentityPython/djangosaml2/blob/master/CHANGES) - [Commits](IdentityPython/djangosaml2@v1.3.4...v1.3.5) --- updated-dependencies: - dependency-name: djangosaml2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump redis from 3.5.3 to 4.0.2 (DefectDojo#5481) Bumps [redis](https://github.com/redis/redis-py) from 3.5.3 to 4.0.2. - [Release notes](https://github.com/redis/redis-py/releases) - [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES) - [Commits](redis/redis-py@3.5.3...v4.0.2) --- updated-dependencies: - dependency-name: redis dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump google-api-python-client from 2.31.0 to 2.32.0 (DefectDojo#5536) Bumps [google-api-python-client](https://github.com/googleapis/google-api-python-client) from 2.31.0 to 2.32.0. - [Release notes](https://github.com/googleapis/google-api-python-client/releases) - [Changelog](https://github.com/googleapis/google-api-python-client/blob/main/CHANGELOG.md) - [Commits](googleapis/google-api-python-client@v2.31.0...v2.32.0) --- updated-dependencies: - dependency-name: google-api-python-client dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bump django to 3.2.9 (DefectDojo#5539) * fix files api (DefectDojo#5509) * Move unit test leftovers (DefectDojo#5543) * Move unit test leftovers * fix for FlexibleImportTestAPI * fix for the fix * remove duplicated `{{block.super}}` lines (DefectDojo#5545) * Update express_new_jira.html * remove duplicate block.super * Update rabbitmq Docker tag from 3.9.10 to v3.9.11 (docker-compose.yml) (DefectDojo#5541) * Update rabbitmq Docker tag from 3.9.10 to v3.9.11 (docker-compose.yml) * Update docker-compose.yml not sure what happened, maybe they republished with a different image/checksum Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: valentijnscholten <[email protected]> * Auth V2 - Remove legacy authorization part 5: Removal of authorized users (DefectDojo#5518) * remove authorized users * rename db migration after rebase * release notes * bugfix for missed staff legacy removal * flake8 * more flake8 * next flake8 * added removal of user migration to release notes * rename db migration after rebase * use GHA caching for integration tests (DefectDojo#5495) * use GHA caching for integration tests * Update integration-tests.yml * Add organizational blocks around metrics.js files (DefectDojo#5544) * Update rabbitmq:3.9.11 Docker digest from 3.9.11 to 3.9.11 (docker-compose.yml) (DefectDojo#5546) Co-authored-by: Renovate Bot <[email protected]> * remove findingimages leftovers (DefectDojo#5540) * Add support for files in generic parser (DefectDojo#5508) * Add support for files in generic parser * Update models.py * Add documentation * Update docs/content/en/integrations/import.md Co-authored-by: Stefan Fleckenstein <[email protected]> * Update docs/content/en/integrations/import.md Co-authored-by: Stefan Fleckenstein <[email protected]> * Update docs/content/en/integrations/import.md Co-authored-by: Stefan Fleckenstein <[email protected]> * changes after move of unit tests Co-authored-by: Stefan Fleckenstein <[email protected]> * fix staff permission to add product types (DefectDojo#5551) * typo and missing parser (DefectDojo#5548) * Set default_auto_field after migration to Django 3.2 (DefectDojo#5552) fixes DefectDojo#5538 * fix checkmarx false positive import (DefectDojo#5484) * Autocreate product / engagement during (re)import (DefectDojo#5492) * Smart Import * cleanup * fix push to jira logic * add docs * add jira testcases * comments * create ci/cd engagements * fix target start/end * cleanup * set owner for created models * autocreate for reimport * cleanup * reimport authz tests * cleanup * add docs * update unit test paths * update unit test paths * update unit test paths * fix unit tests * fix metatdata dict code * fix tests * fix merge artifacts * fix merge artifacts * Added info on upgrading godojo installs of DefectDojo to the docs (DefectDojo#5561) * Add asynchronous re/imports (disabled by default) (DefectDojo#5553) * Add asynchronous re/imports (disabled by default) * Fix Flake8 Violations * Update unit tests * Update importer.py * Update progress typo * fix image migation for duplicate captions (DefectDojo#5549) * api: update reimport docstring (DefectDojo#5560) * Update views.py * Update views.py * Update views.py * Fix alias paths in nginx config (DefectDojo#5557) * Update nginx.conf fix alias path * Update nginx_TLS.conf fix alias path * Respect `scan_date` at import time for all findings imported (DefectDojo#5547) * Respect `scan_date` at import time for all findings imported * Update scan_date set logic * Add more unit tests * Remove first attempt at unit test * Add documentation and set default import date to be timezone considerate * Make scan_date optional field * Update test_importers_importer.py * Update api scan_date validation * Fix required false issue * Update docs title * Remove default date from unit tests * Update versions in application files Co-authored-by: DefectDojo release bot <[email protected]> Co-authored-by: Cody Maffucci <[email protected]> Co-authored-by: valentijnscholten <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stefan Fleckenstein <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: alles-klar <[email protected]> Co-authored-by: CharlieSears <[email protected]> Co-authored-by: bgoareguer <[email protected]> Co-authored-by: Sever <[email protected]> Co-authored-by: Dubravko Sever <[email protected]> Co-authored-by: Shubham Gopale <[email protected]> Co-authored-by: kiblik <[email protected]> Co-authored-by: Artem Tykhonov <[email protected]> Co-authored-by: blakeaowens <[email protected]> Co-authored-by: rsaiprashanth <[email protected]> Co-authored-by: qlimenoque <[email protected]> Co-authored-by: Julien Caillon <[email protected]> Co-authored-by: Damien Carol <[email protected]> Co-authored-by: ptrovatelli <[email protected]> Co-authored-by: Matt Tesauro <[email protected]> Co-authored-by: Assylbek <[email protected]>
1 parent 1a1cf79 commit eeaa1ba

File tree

1,011 files changed

+18383
-16343
lines changed

Some content is hidden

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

1,011 files changed

+18383
-16343
lines changed

.github/ISSUE_TEMPLATE/security_issue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ assignees: ''
99

1010
**DefectDojo security reporting program**
1111

12-
If you believe you have found a **security issue** in DefectDojo, please review the [disclosure policy](https://github.com/DefectDojo/django-DefectDojo/blob/master/SECURITY.md) and submit your finding via our security reporting program.
12+
If you believe you have found a **security issue** in DefectDojo, please review the [disclosure policy](../../readme-docs/SECURITY.md) and submit your finding via our security reporting program.
1313

1414
Please, do not submit **security issues** via GitHub directly.
1515

.github/labeler.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
docs:
2-
- any: ['docs/**/*', 'readme-docs/**/*']
2+
- docs/**/*
3+
- readme-docs/**/*
34

45
docker:
5-
- any: ['docker/**/*', 'docker**', 'Docker*']
6+
- docker/**/*
7+
- docker**
8+
- Docker*
69

710
"New Migration":
8-
- any: ['dojo/db_migrations/*']
11+
- dojo/db_migrations/*
912

1013
unittests:
11-
- any: ['dojo/unittests/**/*']
14+
- unittests/**/*
1215

1316
integration_tests:
14-
- any: ['tests/**/*']
17+
- tests/**/*
1518

1619
settings_changes:
17-
- any: ['dojo/settings/settings.dist.py']
20+
- dojo/settings/settings.dist.py
1821

1922
apiv2:
20-
- any: ['dojo/api_v2/**/*']
23+
- dojo/api_v2/**/*

.github/workflows/integration-tests.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,10 @@ jobs:
4343

4444
- name: Set up Docker Buildx
4545
uses: docker/setup-buildx-action@v1
46-
47-
- name: Cache Docker layers
48-
uses: actions/cache@v2
49-
env:
50-
docker-image: ${{ matrix.docker-image }}
5146
with:
52-
path: /tmp/.buildx-cache-${{ env.docker-image }}
53-
key: ${{ runner.os }}-buildx-${{ env.docker-image }}-${{ github.workflow }}-${{ github.sha }}-${{ github.run_id }}
54-
restore-keys: |
55-
${{ runner.os }}-buildx-${{ env.docker-image }}-${{ github.workflow }}-${{ github.sha }}
56-
${{ runner.os }}-buildx-${{ env.docker-image }}-${{ github.workflow }}
57-
${{ runner.os }}-buildx-${{ env.docker-image }}
58-
47+
buildkitd-flags: --debug
48+
driver-opts: image=moby/buildkit:master # needed to get the fix for https://github.com/moby/buildkit/issues/2426
49+
5950
- name: Build
6051
id: docker_build
6152
uses: docker/build-push-action@v2
@@ -68,9 +59,9 @@ jobs:
6859
${{ env.DD_DOCKER_REPO }}/defectdojo-${{ env.docker-image }}:latest
6960
file: Dockerfile.${{ env.docker-image }}
7061
outputs: type=docker,dest=${{ env.docker-image }}_img
71-
cache-from: type=local,src=/tmp/.buildx-cache-${{ env.docker-image }}
72-
cache-to: type=local,dest=/tmp/.buildx-cache-${{ env.docker-image }}
73-
62+
cache-from: type=gha,scope=${{ matrix.docker-image }}
63+
cache-to: type=gha,mode=max,scope=${{ matrix.docker-image }}
64+
7465
# export docker images to be used in next jobs below
7566
- name: Upload image ${{ matrix.docker-image }} as artifact
7667
uses: actions/upload-artifact@v2
@@ -134,7 +125,7 @@ jobs:
134125

135126
- name: Start Dojo
136127
# implicity starts uwsgi and rabbitmq
137-
run: docker-compose up -d mysql nginx celerybeat celeryworker
128+
run: docker-compose up -d mysql nginx celerybeat celeryworker mailhog
138129

139130
- name: Initialize
140131
run: docker-compose up --exit-code-from initializer initializer

.github/workflows/k8s-testing.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,22 @@ jobs:
108108

109109
strategy:
110110
matrix:
111-
databases: [pgsql, mysql]
112-
brokers: [redis, rabbit]
113-
k8s: ['v1.16.0','v1.20.0']
111+
include:
112+
# databases, broker and k8s are independent, so we don't need to test each combination
113+
# lastest k8s version (https://kubernetes.io/releases/) and oldest supported version from aws
114+
# are tested (https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html#available-versions)
115+
- databases: pgsql
116+
brokers: redis
117+
k8s: 'v1.18.16'
118+
- databases: mysql
119+
brokers: rabbit
120+
k8s: 'v1.18.16'
121+
- databases: pgsql
122+
brokers: rabbit
123+
k8s: 'v1.22.0'
124+
- databases: mysql
125+
brokers: redis
126+
k8s: 'v1.22.0'
114127

115128
steps:
116129
# - name: Login to DockerHub
@@ -124,7 +137,7 @@ jobs:
124137
- name: Setup Minikube
125138
uses: manusa/[email protected]
126139
with:
127-
minikube version: 'v1.22.0'
140+
minikube version: 'v1.24.0'
128141
kubernetes version: ${{ matrix.k8s }}
129142
driver: docker
130143
start args: '--addons=ingress'
@@ -145,7 +158,6 @@ jobs:
145158
146159
- name: Configure HELM repos
147160
run: |-
148-
helm repo add stable https://charts.helm.sh/stable
149161
helm repo add bitnami https://charts.bitnami.com/bitnami
150162
helm dependency list ./helm/defectdojo
151163
helm dependency update ./helm/defectdojo
@@ -172,7 +184,7 @@ jobs:
172184
${{ steps.set.outputs[matrix.databases] }} \
173185
${{ steps.set.outputs[matrix.brokers] }} \
174186
--set createSecret=true \
175-
# --set imagePullSecrets=defectdojoregistrykey
187+
# --set imagePullSecrets=defectdojoregistrykey
176188
177189
- name: Check deployment status
178190
run: |-

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jobs:
3535
version: v3.4.0
3636
- name: Configure HELM repos
3737
run: |-
38-
helm repo add stable https://charts.helm.sh/stable
3938
helm repo add bitnami https://charts.bitnami.com/bitnami
4039
helm dependency list ./helm/defectdojo
4140
helm dependency update ./helm/defectdojo

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
version: v3.4.0
3737
- name: Configure Helm repos
3838
run: |
39-
helm repo add stable https://charts.helm.sh/stable
4039
helm repo add bitnami https://charts.bitnami.com/bitnami
4140
helm dependency list ./helm/defectdojo
4241
helm dependency update ./helm/defectdojo

.github/workflows/test-helm-chart.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030

3131
- name: Configure Helm repos
3232
run: |-
33-
helm repo add stable https://charts.helm.sh/stable
3433
helm repo add bitnami https://charts.bitnami.com/bitnami
3534
helm dependency list ./helm/defectdojo
3635
helm dependency update ./helm/defectdojo

.github/workflows/unit-tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ jobs:
3939
uses: docker/setup-buildx-action@v1
4040
with:
4141
buildkitd-flags: --debug
42-
42+
driver-opts: image=moby/buildkit:master # needed to get the fix for https://github.com/moby/buildkit/issues/2426
43+
4344
- name: Build
4445
id: docker_build
4546
uses: docker/build-push-action@v2
@@ -60,7 +61,7 @@ jobs:
6061

6162
# phased startup so we can use the exit code from unit test container
6263
- name: Start MySQL
63-
run: docker-compose up -d
64+
run: docker-compose up -d mysql
6465

6566
# no celery or initializer needed for unit tests
6667
- name: Unit tests

Dockerfile.django

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
# Dockerfile.nginx to use the caching mechanism of Docker.
66

77
# Ref: https://devguide.python.org/#branchstatus
8-
FROM python:3.8.12-slim-buster@sha256:7e732593f25983fa7d4b2d54444be4a785f2397c1cf2f815d2e3638337eee012 as build
8+
FROM python:3.8.12-slim-buster@sha256:7e732593f25983fa7d4b2d54444be4a785f2397c1cf2f815d2e3638337eee012 as base
9+
FROM base as build
910
WORKDIR /app
1011
RUN \
1112
apt-get -y update && \
12-
apt-get -y install \
13+
apt-get -y install --no-install-recommends \
1314
build-essential \
1415
dnsutils \
1516
default-mysql-client \
@@ -25,7 +26,7 @@ RUN \
2526
COPY requirements.txt ./
2627
RUN pip3 wheel --wheel-dir=/tmp/wheels -r ./requirements.txt
2728

28-
FROM python:3.8.12-slim-buster@sha256:7e732593f25983fa7d4b2d54444be4a785f2397c1cf2f815d2e3638337eee012
29+
FROM base as django
2930
WORKDIR /app
3031
ARG uid=1001
3132
ARG appuser=defectdojo
@@ -136,3 +137,6 @@ ENV \
136137
DD_DJANGO_METRICS_ENABLED="False"
137138
RUN mkdir -p media && mkdir -p media/threat && chown -R ${uid} media
138139
ENTRYPOINT ["/entrypoint-uwsgi.sh"]
140+
141+
FROM django as django-unittests
142+
COPY unittests/ ./unittests/

Dockerfile.integration-tests

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ COPY tests/ ./tests/
4545

4646
RUN chmod -R 0777 /app
4747

48-
USER 1001
48+
ARG uid=1001
49+
USER ${uid}
4950
ENV \
5051
DD_ADMIN_USER=admin \
5152
DD_ADMIN_PASSWORD='' \

0 commit comments

Comments
 (0)