tenable / integration-jira-cloud

67 stars 53 forks source link

Tenable-Jira Cloud Integration - script runs, but no issues appear in Jira #244

Closed jacksonblalock closed 4 months ago

jacksonblalock commented 7 months ago

Tenable Jira Cloud integration https://github.com/tenable/integration-jira-cloud is running without errors but no Tenable issues are populating to Jira.

I did the troubleshoot flag and it appears that everything is running well. Do you have any insight on what could be going on here? The troubleshooting file is below:

Tenable Integration Troubleshooting ➜ bin git:(master) ✗ ./tenable-jira --troubleshoot ../tenable_jira.yaml

Configuration File:

jira:
address: <REDACTED>
api_token: <REDACTED>
api_username: <REDACTED>
project:
leadAccountId: <REDACTED>
tenable:
access_key: <REDACTED>
secret_key: <REDACTED>

Debug Logs

2024-02-15 11:39:33,732 root INFO Tenable2JiraCloud Version 1.2.3
2024-02-15 11:39:33,732 root INFO Using configuration file ../tenable_jira.yaml
2024-02-15 11:39:33,738 root INFO Running on Python3.9.6Darwin/arm64
2024-02-15 11:39:33,738 root DEBUG Severity Prioritization set to: {'critical': 1, 'high': 2, 'medium': 3, 'low': 4}
2024-02-15 11:39:33,739 tenable.io.TenableIO DEBUG Request: {"method": "GET", "url": "https://cloud.tenable.com/session", "params": {}, "body": {}}
2024-02-15 11:39:33,784 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): [cloud.tenable.com](http://cloud.tenable.com/):443
2024-02-15 11:39:34,483 urllib3.connectionpool DEBUG [https://cloud.tenable.com:443](https://cloud.tenable.com/) "GET /session HTTP/1.1" 200 1329
2024-02-15 11:39:34,486 tenable_jira.jira.Jira DEBUG Request: {"method": "GET", "url": "https://<JIRA_CLOUD_HOST>/rest/api/3/project/VULN", "params": {}, "body": {}}
2024-02-15 11:39:34,563 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): <JIRA_CLOUD_HOST>:443
2024-02-15 11:39:35,118 urllib3.connectionpool DEBUG https://<JIRA_CLOUD_HOST>:443 "GET /rest/api/3/project/VULN HTTP/1.1" 200 None
2024-02-15 11:39:35,120 tenable_jira.jira.Jira DEBUG Request: {"method": "GET", "url": "https://<JIRA_CLOUD_HOST>/rest/api/3/field", "params": {}, "body": {}}
2024-02-15 11:39:35,514 urllib3.connectionpool DEBUG https://<JIRA_CLOUD_HOST>:443 "GET /rest/api/3/field HTTP/1.1" 200 None
2024-02-15 11:39:35,552 tenable_jira.jira.Jira INFO Tenable Platform is customfield_10549 (existing)
2024-02-15 11:39:35,552 tenable_jira.jira.Jira INFO CVEs is customfield_10550 (existing)
2024-02-15 11:39:35,552 tenable_jira.jira.Jira INFO CVSSv2 Base Score is customfield_10551 (existing)
2024-02-15 11:39:35,552 tenable_jira.jira.Jira INFO CVSSv2 Temporal Score is customfield_10552 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO CVSSv3 Base Score is customfield_10553 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO CVSSv3 Temporal Score is customfield_10554 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Patch Publication Date is customfield_10555 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Tenable Plugin ID is customfield_10556 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Tenable Plugin Family is customfield_10557 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Tenable Plugin Name is customfield_10558 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Vulnerability Severity is customfield_10559 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Finding Severity is customfield_10560 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Tenable Asset UUID is customfield_10561 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Tenable Asset Tags is customfield_10562 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Device MAC Addresses is customfield_10563 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Device IPv4 Addresses is customfield_10564 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Device IPv6 Addresses is customfield_10565 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Device Hostname is customfield_10566 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Device NetBIOS Name is customfield_10567 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Device DNS Name is customfield_10568 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Device Network ID is customfield_10569 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Vulnerability First Seen is customfield_10570 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Vulnerability Last Seen is customfield_10571 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Vulnerability Last Fixed is customfield_10572 (existing)
2024-02-15 11:39:35,553 tenable_jira.jira.Jira INFO Vulnerability State is customfield_10573 (existing)
2024-02-15 11:39:35,554 tenable_jira.jira.Jira INFO Vulnerability Port is customfield_10574 (existing)
2024-02-15 11:39:35,554 tenable_jira.jira.Jira INFO Vulnerability Protocol is customfield_10575 (existing)
2024-02-15 11:39:35,554 tenable_jira.jira.Jira INFO Vulnerability Repository ID is customfield_10576 (existing)
2024-02-15 11:39:35,554 tenable_jira.jira.Jira INFO Vulnerability Repository Name is customfield_10577 (existing)
2024-02-15 11:39:35,554 tenable_jira.jira.Jira INFO Tenable VPR Score is customfield_10578 (existing)
2024-02-15 11:39:35,554 tenable_jira.jira.Jira DEBUG Request: {"method": "GET", "url": "https://<JIRA_CLOUD_HOST>/rest/api/3/project/VULN", "params": {}, "body": {}}
2024-02-15 11:39:35,754 urllib3.connectionpool DEBUG https://<JIRA_CLOUD_HOST>:443 "GET /rest/api/3/project/VULN HTTP/1.1" 200 None
2024-02-15 11:39:35,755 tenable_jira.jira.Jira DEBUG Request: {"method": "GET", "url": "https://<JIRA_CLOUD_HOST>/rest/api/3/issuetype/project", "params": {"projectId": "10328"}, "body": {}}
2024-02-15 11:39:36,003 urllib3.connectionpool DEBUG https://<JIRA_CLOUD_HOST>:443 "GET /rest/api/3/issuetype/project?projectId=10328 HTTP/1.1" 200 None
2024-02-15 11:39:36,005 tenable_jira.transform.Tio2Jira DEBUG Issuetypes standard={'name': 'Task', 'jira_id': 10002, 'type': 'standard', 'search': ['Tenable Plugin ID']}, subtask={'name': 'Sub-task', 'jira_id': 10003, 'type': 'subtask', 'search': ['Tenable Platform', 'Tenable Plugin ID', 'Tenable Asset UUID', 'Vulnerability Port', 'Vulnerability Protocol']}
2024-02-15 11:39:36,005 tenable_jira.jira.Jira DEBUG Request: {"method": "GET", "url": "https://<JIRA_CLOUD_HOST>/rest/api/3/screens", "params": {"startAt": -100, "maxResults": 100}, "body": {}}
2024-02-15 11:39:36,374 urllib3.connectionpool DEBUG https://<JIRA_CLOUD_HOST>:443 "GET /rest/api/3/screens?startAt=-100&maxResults=100 HTTP/1.1" 200 None
2024-02-15 11:39:36,376 tenable_jira.jira.Jira DEBUG Request: {"method": "GET", "url": "https://<JIRA_CLOUD_HOST>/rest/api/3/screens", "params": {"startAt": 0, "maxResults": 100}, "body": {}}
2024-02-15 11:39:36,712 urllib3.connectionpool DEBUG https://<JIRA_CLOUD_HOST>:443 "GET /rest/api/3/screens?startAt=0&maxResults=100 HTTP/1.1" 200 None
2024-02-15 11:39:36,713 tenable_jira.jira.Jira DEBUG Request: {"method": "GET", "url": "https://<JIRA_CLOUD_HOST>/rest/api/3/screens", "params": {"startAt": 100, "maxResults": 100}, "body": {}}
2024-02-15 11:39:37,058 urllib3.connectionpool DEBUG https://<JIRA_CLOUD_HOST>:443 "GET /rest/api/3/screens?startAt=100&maxResults=100 HTTP/1.1" 200 None
2024-02-15 11:39:37,060 tenable_jira.jira.Jira DEBUG Request: {"method": "GET", "url": "https://<JIRA_CLOUD_HOST>/rest/api/3/screens", "params": {"startAt": 200, "maxResults": 100}, "body": {}}
2024-02-15 11:39:37,399 urllib3.connectionpool DEBUG https://<JIRA_CLOUD_HOST>:443 "GET /rest/api/3/screens?startAt=200&maxResults=100 HTTP/1.1" 200 None
2024-02-15 11:39:37,401 tenable_jira.jira.Jira DEBUG Request: {"method": "GET", "url": "https://<JIRA_CLOUD_HOST>/rest/api/3/screens", "params": {"startAt": 300, "maxResults": 100}, "body": {}}
2024-02-15 11:39:37,719 urllib3.connectionpool DEBUG https://<JIRA_CLOUD_HOST>:443 "GET /rest/api/3/screens?startAt=300&maxResults=100 HTTP/1.1" 200 None
2024-02-15 11:39:37,722 tenable_jira.jira.Jira DEBUG Request: {"method": "GET", "url": "https://<JIRA_CLOUD_HOST>/rest/api/3/screens", "params": {"startAt": 400, "maxResults": 100}, "body": {}}
2024-02-15 11:39:38,070 urllib3.connectionpool DEBUG https://<JIRA_CLOUD_HOST>:443 "GET /rest/api/3/screens?startAt=400&maxResults=100 HTTP/1.1" 200 None
2024-02-15 11:39:38,072 tenable_jira.jira.Jira DEBUG Request: {"method": "GET", "url": "https://<JIRA_CLOUD_HOST>/rest/api/3/screens", "params": {"startAt": 500, "maxResults": 100}, "body": {}}
2024-02-15 11:39:38,343 urllib3.connectionpool DEBUG https://<JIRA_CLOUD_HOST>:443 "GET /rest/api/3/screens?startAt=500&maxResults=100 HTTP/1.1" 200 None
2024-02-15 11:39:38,345 tenable_jira.jira.Jira DEBUG Request: {"method": "GET", "url": "https://<JIRA_CLOUD_HOST>/rest/api/3/screens", "params": {"startAt": 600, "maxResults": 100}, "body": {}}
2024-02-15 11:39:38,627 urllib3.connectionpool DEBUG https://<JIRA_CLOUD_HOST>:443 "GET /rest/api/3/screens?startAt=600&maxResults=100 HTTP/1.1" 200 None
2024-02-15 11:39:38,629 tenable_jira.transform.Tio2Jira INFO Using JIRA Screens []
2024-02-15 11:39:38,632 tenable.io.TenableIO DEBUG Request: {"method": "POST", "url": "https://cloud.tenable.com/assets/export", "params": {}, "body": {"chunk_size": 1000, "filters": {"updated_at": 1705384800}}}
2024-02-15 11:39:39,588 urllib3.connectionpool DEBUG [https://cloud.tenable.com:443](https://cloud.tenable.com/) "POST /assets/export HTTP/1.1" 200 74
2024-02-15 11:39:39,591 tenable.io.TenableIO DEBUG assets export job ca609ad0-a38b-4d17-a7e0-b0b606dbd6dc initiated
2024-02-15 11:39:39,593 tenable.io.TenableIO DEBUG Request: {"method": "POST", "url": "https://cloud.tenable.com/assets/export", "params": {}, "body": {"chunk_size": 1000, "filters": {"deleted_at": 1705384800}}}
2024-02-15 11:39:40,199 urllib3.connectionpool DEBUG [https://cloud.tenable.com:443](https://cloud.tenable.com/) "POST /assets/export HTTP/1.1" 200 74
2024-02-15 11:39:40,201 tenable.io.TenableIO DEBUG assets export job 792823b1-9123-405d-a2c3-f41c3fbc6268 initiated
2024-02-15 11:39:40,203 tenable.io.TenableIO DEBUG Request: {"method": "POST", "url": "https://cloud.tenable.com/assets/export", "params": {}, "body": {"chunk_size": 1000, "filters": {"terminated_at": 1705384800}}}
2024-02-15 11:39:41,401 urllib3.connectionpool DEBUG [https://cloud.tenable.com:443](https://cloud.tenable.com/) "POST /assets/export HTTP/1.1" 200 74
2024-02-15 11:39:41,404 tenable.io.TenableIO DEBUG assets export job e297ed81-8b3d-490f-8e43-65b42faf2a25 initiated
2024-02-15 11:39:41,404 tenable.io.TenableIO DEBUG Request: {"method": "GET", "url": "https://cloud.tenable.com/assets/export/e297ed81-8b3d-490f-8e43-65b42faf2a25/status", "params": {}, "body": {}}
2024-02-15 11:39:41,592 urllib3.connectionpool DEBUG [https://cloud.tenable.com:443](https://cloud.tenable.com/) "GET /assets/export/e297ed81-8b3d-490f-8e43-65b42faf2a25/status HTTP/1.1" 200 45
2024-02-15 11:39:41,594 tenable.io.exports.iterator.ExportsIterator DEBUG assets export e297ed81-8b3d-490f-8e43-65b42faf2a25 is currently PROCESSING
2024-02-15 11:39:43,599 tenable.io.TenableIO DEBUG Request: {"method": "GET", "url": "https://cloud.tenable.com/assets/export/e297ed81-8b3d-490f-8e43-65b42faf2a25/status", "params": {}, "body": {}}
2024-02-15 11:39:43,810 urllib3.connectionpool DEBUG [https://cloud.tenable.com:443](https://cloud.tenable.com/) "GET /assets/export/e297ed81-8b3d-490f-8e43-65b42faf2a25/status HTTP/1.1" 200 43
2024-02-15 11:39:43,812 tenable.io.exports.iterator.ExportsIterator DEBUG assets export e297ed81-8b3d-490f-8e43-65b42faf2a25 is currently FINISHED
2024-02-15 11:39:43,812 tenable.io.exports.iterator.ExportsIterator DEBUG {'status': 'FINISHED', 'chunks_available': [], 'chunks_unfinished': []} and []
2024-02-15 11:39:43,812 tenable.io.TenableIO DEBUG Request: {"method": "GET", "url": "https://cloud.tenable.com/assets/export/792823b1-9123-405d-a2c3-f41c3fbc6268/status", "params": {}, "body": {}}
2024-02-15 11:39:44,030 urllib3.connectionpool DEBUG [https://cloud.tenable.com:443](https://cloud.tenable.com/) "GET /assets/export/792823b1-9123-405d-a2c3-f41c3fbc6268/status HTTP/1.1" 200 43
2024-02-15 11:39:44,032 tenable.io.exports.iterator.ExportsIterator DEBUG assets export 792823b1-9123-405d-a2c3-f41c3fbc6268 is currently FINISHED
2024-02-15 11:39:44,032 tenable.io.exports.iterator.ExportsIterator DEBUG {'status': 'FINISHED', 'chunks_available': [], 'chunks_unfinished': []} and []
2024-02-15 11:39:44,033 tenable.io.TenableIO DEBUG Request: {"method": "GET", "url": "https://cloud.tenable.com/assets/export/ca609ad0-a38b-4d17-a7e0-b0b606dbd6dc/status", "params": {}, "body": {}}
2024-02-15 11:39:44,224 urllib3.connectionpool DEBUG [https://cloud.tenable.com:443](https://cloud.tenable.com/) "GET /assets/export/ca609ad0-a38b-4d17-a7e0-b0b606dbd6dc/status HTTP/1.1" 200 44
2024-02-15 11:39:44,226 tenable.io.exports.iterator.ExportsIterator DEBUG assets export ca609ad0-a38b-4d17-a7e0-b0b606dbd6dc is currently FINISHED
2024-02-15 11:39:44,227 tenable.io.exports.iterator.ExportsIterator DEBUG {'status': 'FINISHED', 'chunks_available': [1], 'chunks_unfinished': [1]} and [1]
2024-02-15 11:39:44,227 tenable.io.TenableIO DEBUG Request: {"method": "GET", "url": "https://cloud.tenable.com/assets/export/ca609ad0-a38b-4d17-a7e0-b0b606dbd6dc/chunks/1", "params": {}, "body": {}}
2024-02-15 11:39:44,456 urllib3.connectionpool DEBUG [https://cloud.tenable.com:443](https://cloud.tenable.com/) "GET /assets/export/ca609ad0-a38b-4d17-a7e0-b0b606dbd6dc/chunks/1 HTTP/1.1" 200 1341
2024-02-15 11:39:44,459 tenable.io.TenableIO DEBUG Request: {"method": "GET", "url": "https://cloud.tenable.com/assets/export/ca609ad0-a38b-4d17-a7e0-b0b606dbd6dc/status", "params": {}, "body": {}}
2024-02-15 11:39:44,646 urllib3.connectionpool DEBUG [https://cloud.tenable.com:443](https://cloud.tenable.com/) "GET /assets/export/ca609ad0-a38b-4d17-a7e0-b0b606dbd6dc/status HTTP/1.1" 200 44
2024-02-15 11:39:44,648 tenable.io.exports.iterator.ExportsIterator DEBUG assets export ca609ad0-a38b-4d17-a7e0-b0b606dbd6dc is currently FINISHED
2024-02-15 11:39:44,648 tenable.io.exports.iterator.ExportsIterator DEBUG {'status': 'FINISHED', 'chunks_available': [1], 'chunks_unfinished': []} and []
2024-02-15 11:39:44,648 tenable_jira.transform.Tio2Jira INFO Updating and creating issues marked as Open
2024-02-15 11:39:44,651 tenable.io.TenableIO DEBUG Request: {"method": "POST", "url": "https://cloud.tenable.com/vulns/export", "params": {}, "body": {"num_assets": 1000, "include_unlicensed": true, "filters": {"last_found": 1705384800, "severity": ["high", "critical"]}}}
2024-02-15 11:39:44,896 urllib3.connectionpool DEBUG [https://cloud.tenable.com:443](https://cloud.tenable.com/) "POST /vulns/export HTTP/1.1" 200 74
2024-02-15 11:39:44,898 tenable.io.TenableIO DEBUG vulns export job 708cf759-69ca-4015-9a5d-dbf5945fd568 initiated
2024-02-15 11:39:44,898 tenable.io.TenableIO DEBUG Request: {"method": "GET", "url": "https://cloud.tenable.com/vulns/export/708cf759-69ca-4015-9a5d-dbf5945fd568/status", "params": {}, "body": {}}
2024-02-15 11:39:45,059 urllib3.connectionpool DEBUG [https://cloud.tenable.com:443](https://cloud.tenable.com/) "GET /vulns/export/708cf759-69ca-4015-9a5d-dbf5945fd568/status HTTP/1.1" 200 301
2024-02-15 11:39:45,062 tenable.io.exports.iterator.ExportsIterator DEBUG vulns export 708cf759-69ca-4015-9a5d-dbf5945fd568 is currently PROCESSING
2024-02-15 11:39:47,067 tenable.io.TenableIO DEBUG Request: {"method": "GET", "url": "https://cloud.tenable.com/vulns/export/708cf759-69ca-4015-9a5d-dbf5945fd568/status", "params": {}, "body": {}}
2024-02-15 11:39:47,290 urllib3.connectionpool DEBUG [https://cloud.tenable.com:443](https://cloud.tenable.com/) "GET /vulns/export/708cf759-69ca-4015-9a5d-dbf5945fd568/status HTTP/1.1" 200 323
2024-02-15 11:39:47,292 tenable.io.exports.iterator.ExportsIterator DEBUG vulns export 708cf759-69ca-4015-9a5d-dbf5945fd568 is currently FINISHED
2024-02-15 11:39:47,293 tenable.io.exports.iterator.ExportsIterator DEBUG {'uuid': '708cf759-69ca-4015-9a5d-dbf5945fd568', 'status': 'FINISHED', 'chunks_available': [], 'chunks_failed': [], 'chunks_cancelled': [], 'total_chunks': 1, 'chunks_available_count': 1, 'empty_chunks_count': 1, 'finished_chunks': 1, 'filters': {'severity': ['HIGH', 'CRITICAL'], 'state': ['OPEN', 'REOPENED'], 'tags': {}, 'since': 0, 'first_found': 0, 'last_found': 1705384800, 'last_fixed': 0, 'first_seen': 0, 'last_seen': 0, 'indexed_at': 0, 'indexed_at_end_value': 0}, 'num_assets_per_chunk': 1000, 'created': 1708018784824, 'chunks_unfinished': []} and []
2024-02-15 11:39:47,293 tenable_jira.transform.Tio2Jira INFO Closing Issues Marked as Fixed.
2024-02-15 11:39:47,295 tenable.io.TenableIO DEBUG Request: {"method": "POST", "url": "https://cloud.tenable.com/vulns/export", "params": {}, "body": {"num_assets": 1000, "include_unlicensed": true, "filters": {"last_fixed": 1705384800, "severity": ["high", "critical"], "state": ["fixed"]}}}
2024-02-15 11:39:47,528 urllib3.connectionpool DEBUG [https://cloud.tenable.com:443](https://cloud.tenable.com/) "POST /vulns/export HTTP/1.1" 200 74
2024-02-15 11:39:47,530 tenable.io.TenableIO DEBUG vulns export job 43e0713b-0386-4852-bacd-d8d59549bcb8 initiated
2024-02-15 11:39:47,530 tenable.io.TenableIO DEBUG Request: {"method": "GET", "url": "https://cloud.tenable.com/vulns/export/43e0713b-0386-4852-bacd-d8d59549bcb8/status", "params": {}, "body": {}}
2024-02-15 11:39:47,716 urllib3.connectionpool DEBUG [https://cloud.tenable.com:443](https://cloud.tenable.com/) "GET /vulns/export/43e0713b-0386-4852-bacd-d8d59549bcb8/status HTTP/1.1" 200 317
2024-02-15 11:39:47,718 tenable.io.exports.iterator.ExportsIterator DEBUG vulns export 43e0713b-0386-4852-bacd-d8d59549bcb8 is currently PROCESSING
2024-02-15 11:39:49,723 tenable.io.TenableIO DEBUG Request: {"method": "GET", "url": "https://cloud.tenable.com/vulns/export/43e0713b-0386-4852-bacd-d8d59549bcb8/status", "params": {}, "body": {}}
2024-02-15 11:39:49,926 urllib3.connectionpool DEBUG [https://cloud.tenable.com:443](https://cloud.tenable.com/) "GET /vulns/export/43e0713b-0386-4852-bacd-d8d59549bcb8/status HTTP/1.1" 200 291
2024-02-15 11:39:49,929 tenable.io.exports.iterator.ExportsIterator DEBUG vulns export 43e0713b-0386-4852-bacd-d8d59549bcb8 is currently FINISHED
2024-02-15 11:39:49,930 tenable.io.exports.iterator.ExportsIterator DEBUG {'uuid': '43e0713b-0386-4852-bacd-d8d59549bcb8', 'status': 'FINISHED', 'chunks_available': [], 'chunks_failed': [], 'chunks_cancelled': [], 'total_chunks': 1, 'chunks_available_count': 1, 'empty_chunks_count': 1, 'finished_chunks': 1, 'filters': {'severity': ['HIGH', 'CRITICAL'], 'state': ['FIXED'], 'tags': {}, 'since': 0, 'first_found': 0, 'last_found': 0, 'last_fixed': 1705384800, 'first_seen': 0, 'last_seen': 0, 'indexed_at': 0, 'indexed_at_end_value': 0}, 'num_assets_per_chunk': 1000, 'created': 1708018787466, 'chunks_unfinished': []} and []

Available IssueTypes

10003: Sub-task
10252: Sub-task
10368: Subtask
10227: Subtask
10427: Sub-task
10268: Subtask
10371: Sub-task
10160: Subtask
10479: Subtask
10486: Subtask
10282: Sub-task
10482: Subtask
10474: Subtask
10462: Subtask
10504: Sub-task
10028: Subtask
10457: Subtask
10492: Subtask
10056: Subtask
10121: Subtask
10265: Sub-task
10296: Subtask
10015: Subtask
10087: Subtask
10452: Subtask
10448: Subtask
10064: Subtask
10324: Subtask
10373: Sub-task
10394: Subtask
10422: Subtask
10469: Subtask
10398: Subtask
10344: Subtask
10442: Subtask
10150: Subtask
10341: Subtask
10383: Subtask
10067: Subtask
10338: Subtask
10289: Subtask
10349: Sub-task
10157: Subtask
10415: Subtask
10409: Subtask
10412: Subtask
10498: Sub-Task
10327: Subtask
10361: Subtask
10419: Subtask
10325: Task
10322: Task
10339: Task
10336: Task
10348: Task
10342: Task
10413: Task
10225: Task
10054: Task
10002: Task
10118: Task
10147: Task
10251: Task
10407: Task
10281: Task
10012: Task
10264: Task
10294: Task
10266: Task
10155: Task
10158: Task
10062: Task
10065: Task
10503: Task
10454: Task
10459: Task
10450: Task
10445: Task
10484: Task
10467: Task
10472: Task
10477: Task
10480: Task
10490: Task
10439: Task
10366: Task
10359: Task
10025: Task
10287: Task
10372: Task
10381: Task
10370: Task
10392: Task
10410: Task
10420: Task
/-------------------------------NOTICE-----------------------------------\ The output above is helpful for us to troubleshoot exactly what is happening within the code and offer a diagnosis for how to correct. Please note that while some basic redaction has already been performed that we ask you to review the information you're about to send and ensure that nothing deemed sensitive is transmitted.
-- Copy of output saved to "issue_debug.md"

------------------------------------------------------------------------/

jacksonblalock commented 6 months ago

bump

SteveMcGrath commented 6 months ago

Looks like you may have a permissions issue with the api keys you have associated to the integration. Please ensure that the user has the "can view" permission to "all assets" in TVM's access control

jacksonblalock commented 5 months ago

Replaced jira api key with new one, code ran same as last time but didn't populate the project with issues. View permissions are granted as the user account has admin permissions in the project. issue_debug.md

SteveMcGrath commented 5 months ago

Hmm, looks like the export is still not picking up any data.

2024-03-28 12:46:34,057 tenable.io.exports.iterator.ExportsIterator DEBUG {'uuid': 'e4a535e0-ba5a-40c2-93c4-70a2650afd4c', 'status': 'FINISHED', 'chunks_available': [], 'chunks_failed': [], 'chunks_cancelled': [], 'total_chunks': 1, 'chunks_available_count': 1, 'empty_chunks_count': 1, 'finished_chunks': 1, 'filters': {'severity': ['HIGH', 'CRITICAL'], 'state': ['OPEN', 'REOPENED'], 'tags': {}, 'since': 0, 'first_found': 0, 'last_found': 1709013600, 'last_fixed': 0, 'first_seen': 0, 'last_seen': 0, 'indexed_at': 0, 'indexed_at_end_value': 0}, 'num_assets_per_chunk': 1000, 'created': 1711647991641, 'chunks_unfinished': []} and []

The timestamp from the run is looking for vulnerabilities from "Tuesday, February 27, 2024 6:00:00 AM GMT" that are high and critical.

2024-03-28 12:46:31,441 tenable.io.TenableIO DEBUG Request: {"method": "POST", "url": "https://cloud.tenable.com/vulns/export", "params": {}, "body": {"num_assets": 1000, "include_unlicensed": true, "filters": {"last_found": 1709013600, "severity": ["high", "critical"]}}}

May I suggest you update the config file as such (note the spacing, yaml is picky about it)

jira:
  address: <REDACTED>
  api_token: <REDACTED>
  api_username: <REDACTED>
project:
  leadAccountId: <REDACTED>
tenable:
  access_key: <REDACTED>
  secret_key: <REDACTED>
  tio_age: 30
  tio_severities:
    - critical
    - high
    - medium
    - low

If that works, then you can likely update the config afterwards with a tio_age of 1

jacksonblalock commented 5 months ago

Tried again with tio_age: 30 and the spacing as below in the screenshot, getting same result Screenshot 2024-03-29 at 3 01 27 PM

Output of troubleshooting: issue_debug.md

SteveMcGrath commented 5 months ago

Reviewed the export logs from the debug and it appears that the API keys you have provided to the integration may not be able to see any vulnerabilities. It returned an empty vulnerability set from Feb 28th.

Not sure whats going on there but from what I can tell the issue isnt the integrations, but something revolving around the permissions for that API Keyset. No chunks available in either the asset or vuln exports to process.

SteveMcGrath commented 5 months ago

Checking back in here to see if the issue was resolved? If so, I'd like to close this issue out.

jacksonblalock commented 5 months ago

The Jira API keys are from an account with Jira administrator permission and the Tenable API keys are from my Tenable user - do you know how I would troubleshoot the permissions for the API keyset? Are they derived from the user who generated the key?

SteveMcGrath commented 5 months ago

I would recommend setting up a separate user within TVM (Tenable.io) with only API Key auth and make sure that the user has permissions to "Can View" for "All Assets".

I would never recommend API Key reuse for integrations.