Skip to content

feat(policy): add matches/no match operators and syntax tooltip for Vulnerability ID conditions#1653

Open
schennamaneni-godaddy wants to merge 2 commits into
DependencyTrack:mainfrom
schennamaneni-godaddy:main
Open

feat(policy): add matches/no match operators and syntax tooltip for Vulnerability ID conditions#1653
schennamaneni-godaddy wants to merge 2 commits into
DependencyTrack:mainfrom
schennamaneni-godaddy:main

Conversation

@schennamaneni-godaddy

Copy link
Copy Markdown

Description

The Vulnerability ID policy subject currently offers only the Is / Is not operators in the condition editor. This change also exposes the Matches and Does not match operators for that subject, and displays a tooltip on the value input explaining the supported wildcard (*) and regular-expression syntax when either operator is selected.

This is the frontend counterpart to the backend change that adds MATCHES / NO_MATCH evaluation for VULNERABILITY_ID conditions (DependencyTrack/dependency-track). Without it, the operators are accepted by the API but not selectable in the UI.

Addressed Issue

DependencyTrack/dependency-track#6629

Additional Details

Implementation adds an objectAndRegexOperators set (IS / IS_NOT / MATCHES / NO_MATCH) used by the VULNERABILITY_ID subject, and extends valueInputTooltip() to return a vulnerability_id_pattern_tooltip string for the MATCHES / NO_MATCH operators. The operator.matches and operator.no_match labels already exist; only the new tooltip key was added (English locale).

Checklist

…ditions

Expose the MATCHES and NO_MATCH operators for the Vulnerability ID policy
subject (previously limited to IS / IS_NOT), and show a tooltip explaining
the supported wildcard and regular-expression syntax when either operator
is selected.
…olicy

feat(policy): matches/no_match operators for vulnerability ID
@owasp-dt-bot

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants