Skip to content

Commit

Permalink
Rename Tenable Settings to Tenable.io Connector (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-osinger authored and sfc-gh-afedorov committed Nov 21, 2019
1 parent 613caf5 commit eafcb77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/connectors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from . import gsuite_logs
from . import okta
from . import osquery_log
from . import tenable_settings
from . import tenable_io
from . import crowdstrike_devices
from . import cisco_umbrella
from . import meraki_devices
Expand All @@ -32,7 +32,7 @@
'meraki_devices',
'okta',
'osquery_log',
'tenable_settings',
'tenable_io',
'crowdstrike_devices',
'cisco_umbrella',
'assetpanda',
Expand All @@ -54,7 +54,7 @@
'meraki_devices': meraki_devices,
'okta': okta,
'osquery_log': osquery_log,
'tenable_settings': tenable_settings,
'tenable_io': tenable_io,
'crowdstrike_devices': crowdstrike_devices,
'cisco_umbrella': cisco_umbrella,
'assetpanda': assetpanda,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Tenable Settings
Collect Tenable Settings using a Service User’s API Key
"""Tenable.io
Collect Tenable.io Data using a Service User’s API Key
"""

from datetime import datetime, timezone
Expand All @@ -22,8 +22,8 @@
],
'default': 'user',
'name': 'connection_type',
'title': "Settings Type",
'prompt': "The type of Tenable Settings information you are ingesting to Snowflake.",
'title': "Data Type",
'prompt': "The type of Tenable information you are ingesting to Snowflake.",
'required': True,
},
{
Expand Down Expand Up @@ -178,13 +178,13 @@ def ingest_agents(table_name, options):

def connect(connection_name, options):
ctype = options['connection_type']
ctable = f'data.tenable_settings_{connection_name}_{ctype}_connection'
ctable = f'data.tenable_io_{connection_name}_{ctype}_connection'
cols = {
'user': USER_LANDING_TABLE,
'agent': AGENT_LANDING_TABLE,
'vuln': VULN_LANDING_TABLE,
}[ctype]
comment = yaml_dump(module='tenable_settings', **options)
comment = yaml_dump(module='tenable_io', **options)

db.create_table(ctable, cols=cols, comment=comment)
db.execute(f'GRANT INSERT, SELECT ON {ctable} TO ROLE {SA_ROLE}')
Expand Down

0 comments on commit eafcb77

Please sign in to comment.