Skip to content

Add tags support #132

Open
Wojberni wants to merge 4 commits intotelekom-mms:mainfrom
Wojberni:main
Open

Add tags support #132
Wojberni wants to merge 4 commits intotelekom-mms:mainfrom
Wojberni:main

Conversation

@Wojberni
Copy link

This partially resolves issue #111 . Based on reimport-scan API docs, following flags were added. When tags field is set in reimport-scan request, it actually do not tag anything other than the Test named "Kubernetes (Trivy Operator Scan)" of created Engagement. Not sure, if tagging product or engagement is supported through this endpoint. Setting apply_tags_to_findings and apply_tags_to_endpoints is more useful and working as intended.
Added flags:

  • DEFECT_DOJO_TAGS - it is a comma separated string of tags
  • DEFECT_DOJO_EVAL_TAGS - true or false, if true DEFECT_DOJO_TAGS string will be evalued using body and meta variables
  • DEFECT_DOJO_TAGS_FINDINGS - true or false, allows to tag findings with tags from DEFECT_DOJO_TAGS
  • DEFECT_DOJO_TAGS_ENDPOINTS - true or false, allows to tag endpoints with tags from DEFECT_DOJO_TAGS

Docs for local development were updated. Without DEFECT_DOJO_PRODUCT_TYPE_NAME sending request to scan reimport failed with 400 code and client error.

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.

1 participant