Skip to content

configure deduplication algorithm for API-imported findings #8972

Closed Answered by fuzzah
fuzzah asked this question in Q&A
Discussion options

You must be logged in to vote

I found a way to do it!
The following instructions should work for the docker-compose installation method.
So, let's say we have a custom test type named "Some Test".

Edit the file docker-compose.yml to include the following env variable to the sections uwsgi, celerybeat, and celeryworker:

DD_DEDUPLICATION_ALGORITHM_PER_PARSER: '{"Some Test": "unique_id_from_tool"}'

Available algorithms are defined in the file dojo/settings/settings.dist.py.

Then find the following code in the file dojo/settings/settings.dist.py:

# Override the hardcoded settings here via the env var
if len(env('DD_DEDUPLICATION_ALGORITHM_PER_PARSER')) > 0:
    env_dedup_algorithm_per_parser = json.loads(env('DD_DEDUPLICA…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fuzzah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant