Unable to find a solution for this in discuss so I thought I would ask. I am not entirely sure what information to provide since I am new to both InsightConnect and to Discuss so I am trying to include anything that might be relevant to the issue I am asking for help with. If there is any information I am leaving out, please let me know and sorry for the long post.
I have a workflow that I am building with the goal of creating tickets in ServiceNow for Vulns discovered by Tenable.SC that use trigger from MS Teams. The end game is that we would have a command in Teams that includes the server name and any plugin ids for vulns we want patched. The workflow will create a ticket per-plugin in ServiceNow. The trigger will eventually be !vuln_ticket_sc <server FQDN|IP to be patched> …
The issue i am running into is that when I kick the workflow off from Teams, it fails stating ‘Invalid or unreachable endpoint provided.’.
The entire error message is:
Connect: Configuring REST details
404 Not Found
Connect: Connecting…
rapid7/HTTP Requests:6.0.7. Step name: get
Plugin exception instantiated. cause=‘Invalid or unreachable endpoint provided.’, assistance=‘Verify the URLs or endpoints in your configuration are correct.’, data='Not Found
The requested URL was not found on this server.
', preset='not_found' An error occurred during plugin execution!Invalid or unreachable endpoint provided. Verify the URLs or endpoints in your configuration are correct. Response was:
404 Not FoundNot Found
The requested URL was not found on this server.
Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/insightconnect_plugin_runtime-5.4.4-py3.9.egg/insightconnect_plugin_runtime/plugin.py", line 413, in handle_step output = self.start_step( File "/usr/local/lib/python3.9/site-packages/insightconnect_plugin_runtime-5.4.4-py3.9.egg/insightconnect_plugin_runtime/plugin.py", line 616, in start_step output = func(params) File "/usr/local/lib/python3.9/site-packages/rest_rapid7_plugin-6.0.7-py3.9.egg/komand_rest/actions/get/action.py", line 23, in run response = self.connection.api.call_api(method="GET", path=path, data=data, headers=headers) File "/usr/local/lib/python3.9/site-packages/rest_rapid7_plugin-6.0.7-py3.9.egg/komand_rest/util/util.py", line 249, in call_api return self.response_handler(response) File "/usr/local/lib/python3.9/site-packages/rest_rapid7_plugin-6.0.7-py3.9.egg/komand_rest/util/util.py", line 199, in response_handler raise PluginException(preset=PluginException.Preset.NOT_FOUND, data=response.text) insightconnect_plugin_runtime.exceptions.PluginException: An error occurred during plugin execution!Invalid or unreachable endpoint provided. Verify the URLs or endpoints in your configuration are correct. Response was:
404 Not FoundNot Found
The requested URL was not found on this server.
As of now, I removed all of the complexity and whittled the workflow down to a very basic workflow in the hopes of making it easier to troubleshoot this part.
The HTTP Request connection is setup using the current version 6.0.7 and is working:
I have the connection for Tenable.SC setup (using on premises orchestrator) setup to use the base URL of https://<tenable.sc URL>/rest and, for now, the route in the rest action hardcoded as /plugin/155250. This way the request is using the URI of https://<tenable.sc URL>/rest/plugin/155250.
I have verified with Postman that the URI returns valid data as well as logging into the orchestrator and using curl and verified valid data is returned. Side note: Hardcoding the plugin id is only being done for testing, if I can get this working, then I will replace the plugin value I put in with a variable.
I found that I have to delete the rest action when I make changes to it otherwise, I get errors that the keys are invalid. I will be submitting a support request for that issue.
I have done the following:
- verified the HTTP connection works, i have the base route set with https://<tenable.sc server fqdn>/rest/plugin
- set the route to be appended in the rest action as /166250 (with plans to replace it with a variable)
- set the route to be appended in the rest action as {/166250}
- set the route to be appended in the rest action as {{/166250}}
- set the route to be appended in the rest action as blank as it would return all plugins
- confirmed that I can get data from our Tenable.SC server using Postman
- confirmed that I can get data from our Tenable.SC by remoting into our orchestrator and running using curl
- recreated the HTTP connection
At this point I feel like I am out of options of what I could try. As I mentioned in the beginning, I am new to InsightConnect so I will not be offended if I am told I am doing it wrong.
Thanks in advance.