spark1security / n0s1

Secret Scanner for Slack, Jira, Confluence, Asana, Wrike, Linear and Zendesk
https://spark1.us/n0s1
GNU General Public License v3.0
45 stars 12 forks source link

Refactored ticket data format #18

Closed blupants closed 4 months ago

blupants commented 4 months ago

This PR creates a standard format for the ticket data format across all platforms/controllers (Jira, Confluence, Linear, Wrike, Asana, etc).

The format is:

{
    "ticket": {
        "title": {
            "name": "title",
            "data": title,
            "data_type": "str"
        },
        "description": {
            "name": "description",
            "data": description,
            "data_type": "str"
        },
        "comments": {
            "name": "comments",
            "data": comments,
            "data_type": "list"
        }
    },
    "url": url,
    "issue_id": ticket_key
}

Future enhancements: change function n0s1:scan() to traverse the "ticket" recursively until it finds all string data types to be scanned (i.e. matched agains the regexes)