Skip to content

Commit 265b296

Browse files
authored
Merge branch 'bugfix' into docs-hierarchy
2 parents 0be29e8 + 75d18e5 commit 265b296

16 files changed

Lines changed: 96 additions & 24 deletions

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,26 +47,26 @@ jobs:
4747
fi
4848
4949
- name: Run chart-testing (list-changed)
50-
id: list-changed
50+
id: list_changed
5151
run: |
5252
changed=$(ct list-changed --config ct.yaml --target-branch ${{ env.ct-branch}})
5353
if [[ -n "$changed" ]]; then
54-
echo "changed=true" >> $GITHUB_ENV
54+
echo "changed=true" >> $GITHUB_OUTPUT
5555
fi
5656
5757
# run version check only if not dev as in dev we have a `x.y.z-dev` version
5858
# x.y.z gets bumped automatically when doing a release
5959
- name: Run chart-testing (lint)
6060
run: ct lint --config ct.yaml --target-branch ${{ env.ct-branch }} --check-version-increment=true
61-
if: ${{ env.changed == 'true' && env.ct-branch != 'dev' && env.ct-branch != 'bugfix' }}
61+
if: ${{ steps.list_changed.outputs.changed == 'true' && env.ct-branch != 'dev' && env.ct-branch != 'bugfix' }}
6262

6363
# run all checks but version increment always when something changed
6464
- name: Run chart-testing (lint)
6565
run: ct lint --config ct.yaml --target-branch ${{ env.ct-branch }} --check-version-increment=false
66-
if: env.changed == 'true'
66+
if: steps.list_changed.outputs.changed == 'true'
6767

6868
- name: Check update of "artifacthub.io/changes" HELM annotation
69-
if: ${{ env.changed == 'true' && !(startsWith(github.head_ref, 'master-into-dev/') || startsWith(github.head_ref, 'master-into-bugfix/')) }}
69+
if: ${{ steps.list_changed.outputs.changed == 'true' && !(startsWith(github.head_ref, 'master-into-dev/') || startsWith(github.head_ref, 'master-into-bugfix/')) }}
7070
run: |
7171
# fast fail if `git show` fails
7272
set -e
@@ -95,11 +95,11 @@ jobs:
9595
9696
# - name: Create kind cluster
9797
# uses: helm/kind-action@v1.1.0
98-
# if: env.changed == 'true'
98+
# if: steps.list_changed.outputs.changed == 'true'
9999

100100
# - name: Run chart-testing (install)
101101
# run: ct install --config ct.yaml --target-branch ${{ env.ct-branch }} --helm-extra-args '--set createSecret=true --set createRabbitMqSecret=true --set createPostgresqlSecret=true --set timeout=900'
102-
# if: env.changed == 'true'
102+
# if: steps.list_changed.outputs.changed == 'true'
103103

104104
docs_generation:
105105
name: Update documentation

dojo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
# Django starts so that shared_task will use this app.
55
from .celery import app as celery_app # noqa: F401
66

7-
__version__ = "2.53.0"
7+
__version__ = "2.53.1"
88
__url__ = "https://github.com/DefectDojo/django-DefectDojo"
99
__docs__ = "https://documentation.defectdojo.com"

dojo/authorization/authorization.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ def user_has_permission(user, obj, permission):
100100
isinstance(obj, Risk_Acceptance)
101101
and permission == Permissions.Risk_Acceptance
102102
):
103-
return user_has_permission(user, obj.engagement.product, permission)
103+
if obj.engagement is not None:
104+
return user_has_permission(user, obj.engagement.product, permission)
105+
return user_has_global_permission(user, permission)
104106
if ((
105107
isinstance(obj, Finding | Stub_Finding)
106108
) and permission in Permissions.get_finding_permissions()) or (

dojo/templates/dojo/findings_list_snippet.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,7 @@ <h3 class="has-filters">
913913
);
914914
},
915915
colReorder: true,
916+
autoWidth: false,
916917
"columns": columns,
917918
ordering: true,
918919
order: [],

dojo/tools/legitify/parser.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,21 @@ def get_findings(self, file, test):
5353
endpoints.add(Endpoint.from_uri(url))
5454

5555
if is_finding:
56+
remediation_steps = policy_info.get("remediationSteps", [])
57+
fix_available = False
58+
if remediation_steps:
59+
fix_available = True
5660
finding = Finding(
5761
description=policy_info.get("description", ""),
5862
dynamic_finding=False,
5963
impact="\n".join(policy_info.get("threat", [])),
60-
mitigation="\n".join(policy_info.get("remediationSteps", [])),
64+
mitigation="\n".join(remediation_steps),
6165
references="\n".join(references),
6266
severity=self.severity_mapper(policy_info.get("severity", "LOW")),
6367
static_finding=True,
6468
title=f'{policy_info.get("namespace", "").capitalize()} | {policy_info.get("title", "")}',
6569
vuln_id_from_tool=policy_info.get("policyName", None),
70+
fix_available=fix_available,
6671
)
6772
finding.unsaved_endpoints = list(endpoints)
6873
findings.append(finding)

helm/defectdojo/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: "2.54.0-dev"
33
description: A Helm chart for Kubernetes to install DefectDojo
44
name: defectdojo
5-
version: 1.9.1-dev
5+
version: 1.9.2-dev
66
icon: https://defectdojo.com/hubfs/DefectDojo_favicon.png
77
maintainers:
88
- name: madchap

helm/defectdojo/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ The HELM schema will be generated for you.
511511
512512
# General information about chart values
513513
514-
![Version: 1.9.1-dev](https://img.shields.io/badge/Version-1.9.1--dev-informational?style=flat-square) ![AppVersion: 2.54.0-dev](https://img.shields.io/badge/AppVersion-2.54.0--dev-informational?style=flat-square)
514+
![Version: 1.9.2-dev](https://img.shields.io/badge/Version-1.9.2--dev-informational?style=flat-square) ![AppVersion: 2.54.0-dev](https://img.shields.io/badge/AppVersion-2.54.0--dev-informational?style=flat-square)
515515
516516
A Helm chart for Kubernetes to install DefectDojo
517517
@@ -623,7 +623,7 @@ A Helm chart for Kubernetes to install DefectDojo
623623
| django.ingress.enabled | bool | `true` | |
624624
| django.ingress.ingressClassName | string | `""` | |
625625
| django.ingress.secretName | string | `"defectdojo-tls"` | |
626-
| django.mediaPersistentVolume | object | `{"enabled":true,"fsGroup":1001,"name":"media","persistentVolumeClaim":{"accessModes":["ReadWriteMany"],"create":false,"name":"","size":"5Gi","storageClassName":""},"type":"emptyDir"}` | This feature needs more preparation before can be enabled, please visit KUBERNETES.md#media-persistent-volume |
626+
| django.mediaPersistentVolume | object | `{"enabled":true,"name":"media","persistentVolumeClaim":{"accessModes":["ReadWriteMany"],"create":false,"name":"","size":"5Gi","storageClassName":""},"type":"emptyDir"}` | This feature needs more preparation before can be enabled, please visit KUBERNETES.md#media-persistent-volume |
627627
| django.mediaPersistentVolume.name | string | `"media"` | any name |
628628
| django.mediaPersistentVolume.persistentVolumeClaim | object | `{"accessModes":["ReadWriteMany"],"create":false,"name":"","size":"5Gi","storageClassName":""}` | in case if pvc specified, should point to the already existing pvc |
629629
| django.mediaPersistentVolume.persistentVolumeClaim.accessModes | list | `["ReadWriteMany"]` | check KUBERNETES.md doc first for option to choose |

helm/defectdojo/values.schema.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,6 @@
539539
"enabled": {
540540
"type": "boolean"
541541
},
542-
"fsGroup": {
543-
"type": "integer"
544-
},
545542
"name": {
546543
"description": "any name",
547544
"type": "string"

helm/defectdojo/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,6 @@ django:
495495
# -- This feature needs more preparation before can be enabled, please visit KUBERNETES.md#media-persistent-volume
496496
mediaPersistentVolume:
497497
enabled: true
498-
fsGroup: 1001
499498
# -- any name
500499
name: media
501500
# -- could be emptyDir (not for production) or pvc

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ django_extensions==4.1
1818
django-slack==5.19.0
1919
django-watson==1.6.3
2020
django-prometheus==2.4.1
21-
Django==5.1.14
21+
Django==5.1.15
2222
django-single-session==0.2.0
2323
djangorestframework==3.16.1
2424
html2text==2025.4.15
@@ -35,7 +35,7 @@ python-dateutil==2.9.0.post0
3535
redis==7.1.0
3636
requests==2.32.5
3737
sqlalchemy==2.0.44 # Required by Celery broker transport
38-
urllib3==2.5.0
38+
urllib3==2.6.0
3939
uWSGI==2.0.31
4040
vobject==0.9.9
4141
whitenoise==5.2.0

0 commit comments

Comments
 (0)