Skip to content

Apply the API token settings to API v3 token auth - #16072

Open
svader0 wants to merge 5 commits into
DefectDojo:bugfixfrom
svader0:harden-api-v3-token-policy
Open

svader0 wants to merge 5 commits into
DefectDojo:bugfixfrom
svader0:harden-api-v3-token-policy

Conversation

@svader0

@svader0 svader0 commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

Hardening / consistency improvement to API v3 token authentication. It now follows the same token settings as API v2, and the change adds regression tests. No functional change for installs that keep the token settings at their defaults.

mtesauro and others added 2 commits September 22, 2026 14:40
API v3 token authentication now follows the same token settings as
API v2: the instance-wide API token switch and the effective token
expiry. Installs that keep both at their defaults see no change.

Adds regression tests.
@Maffooch Maffooch added this to the 3.4.0 milestone Sep 24, 2026
@dryrunsecurity

Copy link
Copy Markdown

DryRun Security

This pull request contains multiple low-severity findings where user 'svader0' modified files in sensitive codepaths without being on the allowed authors list. These issues are non-blocking and do not prevent the merge.

Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/announcement/os_message.py (drs_08cd8e4e)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/announcement/os_message.py' matches configured sensitive codepath pattern 'dojo/announcement/*.py' and was modified by 'svader0' (commit 45d742e) who is not in the allowed authors list.
Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/authorization/query_registrations.py (drs_b0ebf701)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/authorization/query_registrations.py' matches configured sensitive codepath pattern 'dojo/authorization/*.py' and was modified by 'svader0' (commit 45d742e) who is not in the allowed authors list.
Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0268_release_authorization_to_pro.py (drs_5b228aab)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0268_release_authorization_to_pro.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'svader0' (commit 45d742e) who is not in the allowed authors list.
Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/finding/deduplication.py (drs_2dd7c405)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/finding/deduplication.py' matches configured sensitive codepath pattern 'dojo/finding/*.py' and was modified by 'svader0' (commit 45d742e) who is not in the allowed authors list.
Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/finding/helper.py (drs_cc74ee18)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/finding/helper.py' matches configured sensitive codepath pattern 'dojo/finding/*.py' and was modified by 'svader0' (commit 45d742e) who is not in the allowed authors list.
Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/importers/auto_create_context.py (drs_04954be6)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/importers/auto_create_context.py' matches configured sensitive codepath pattern 'dojo/importers/*.py' and was modified by 'svader0' (commit 45d742e) who is not in the allowed authors list.
Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/importers/base_importer.py (drs_c6c1c3c9)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/importers/base_importer.py' matches configured sensitive codepath pattern 'dojo/importers/*.py' and was modified by 'svader0' (commit 45d742e) who is not in the allowed authors list.

Comment to provide feedback on these findings.

Report false positive: @dryrunsecurity fp [FINDING ID] [FEEDBACK]
Report low-impact: @dryrunsecurity nit [FINDING ID] [FEEDBACK]

Example: @dryrunsecurity fp drs_90eda195 This code is not user-facing

All finding details can be found in the DryRun Security Dashboard.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants