Skip to content

Commit

Permalink
Merge pull request #2 from RumbleDiscovery/bug/default-hostname
Browse files Browse the repository at this point in the history
Fix default configuration for Rumble hostname
  • Loading branch information
hdm authored Jan 14, 2022
2 parents 74d543e + c7ea571 commit c67cc78
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion TA_rumble_asset_sync/TA_rumble_asset_sync.aob_meta
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"meta": {"name": "TA_rumble_asset_sync", "displayName": "rumble-asset-sync", "version": "1.0.14", "apiVersion": "3.0.0", "restRoot": "TA_rumble_asset_sync"}, "pages": {"configuration": {"title": "Configuration", "description": "Configure your account, proxy, and log level.", "tabs": [{"name": "account", "title": "Account", "table": {"header": [{"field": "name", "label": "Account name"}, {"field": "api_endpoint", "label": "API Endpoint"}], "actions": ["edit", "delete", "clone"]}, "entity": [{"field": "name", "label": "Account name", "type": "text", "required": true, "help": "Enter a unique name for this account.", "validators": [{"type": "string", "minLength": 1, "maxLength": 50, "errorMsg": "Length of Account name should be between 1 and 50"}, {"type": "regex", "pattern": "^[a-zA-Z]\\w*$", "errorMsg": "Account name must start with a letter and followed by alphabetic letters, digits or underscores."}]}, {"field": "api_key", "label": "API Key", "type": "text", "encrypted": true, "required": true, "help": "Enter an Export Token or API Key for this account.", "validators": [{"type": "string", "minLength": 16, "maxLength": 256, "errorMsg": "Length of token should be between 16 and 256"}]}, {"field": "api_endpoint", "label": "API Endpoint Hostname or IP", "type": "text", "encrypted": false, "required": true, "help": "Enter an API endpoint hostname or IP. If you're hosting your own console, enter your console's external IP or hostname.", "defaultValue": "rumble.console.run", "validators": [{"type": "regex", "pattern": "^(?!https?:\\/\\/).+$", "errorMsg": "The URL should not contain http:// or https://"}]}]}, {"options": {"saveValidator": "function(formData) { if(!formData.proxy_enabled || formData.proxy_enabled === '0') {return true; } if(!formData.proxy_url) { return 'Proxy Host can not be empty'; } if(!formData.proxy_port) { return 'Proxy Port can not be empty'; } return true; }"}, "entity": [{"type": "checkbox", "label": "Enable", "field": "proxy_enabled"}, {"type": "singleSelect", "label": "Proxy Type", "options": {"autoCompleteFields": [{"value": "http", "label": "http"}], "disableSearch": true}, "field": "proxy_type", "defaultValue": "http"}, {"type": "text", "label": "Host", "field": "proxy_url", "validators": [{"type": "string", "maxLength": 4096, "errorMsg": "Max host length is 4096", "minLength": 0}]}, {"type": "text", "label": "Port", "field": "proxy_port", "validators": [{"type": "number", "range": [1, 65535]}]}, {"type": "text", "label": "Username", "field": "proxy_username", "validators": [{"type": "string", "maxLength": 50, "errorMsg": "Max length of username is 50", "minLength": 0}]}, {"type": "text", "label": "Password", "encrypted": true, "field": "proxy_password", "validators": [{"type": "string", "maxLength": 8192, "errorMsg": "Max length of password is 8192", "minLength": 0}]}, {"type": "checkbox", "label": "Remote DNS resolution", "field": "proxy_rdns"}], "name": "proxy", "title": "Proxy"}, {"name": "logging", "title": "Logging", "entity": [{"field": "loglevel", "label": "Log level", "type": "singleSelect", "options": {"disableSearch": true, "autoCompleteFields": [{"label": "DEBUG", "value": "DEBUG"}, {"label": "INFO", "value": "INFO"}, {"label": "WARNING", "value": "WARNING"}, {"label": "ERROR", "value": "ERROR"}, {"label": "CRITICAL", "value": "CRITICAL"}]}, "defaultValue": "INFO"}]}]}, "inputs": {"title": "Inputs", "description": "Manage your data inputs", "table": {"header": [{"field": "name", "label": "Name"}, {"field": "interval", "label": "Interval"}, {"field": "index", "label": "Index"}, {"field": "services", "label": "Import Services"}, {"field": "disabled", "label": "Status"}], "moreInfo": [{"field": "name", "label": "Name"}, {"field": "interval", "label": "Interval"}, {"field": "index", "label": "Index"}, {"field": "disabled", "label": "Status"}, {"field": "sync_type", "label": "Sync Type"}, {"field": "search_filter", "label": "Search Filter"}, {"field": "since", "label": "Since"}, {"field": "global_account", "label": "Global Account"}, {"field": "services", "label": "Import Services"}], "actions": ["edit", "enable", "delete", "clone"]}, "services": [{"name": "assets", "title": "Assets", "entity": [{"field": "name", "label": "Name", "type": "text", "help": "Enter a unique name for the data input", "required": true, "validators": [{"type": "regex", "pattern": "^[a-zA-Z]\\w*$", "errorMsg": "Input Name must start with a letter and followed by alphabetic letters, digits or underscores."}, {"type": "string", "minLength": 1, "maxLength": 100, "errorMsg": "Length of input name should be between 1 and 100"}]}, {"field": "interval", "label": "Interval", "type": "text", "required": true, "help": "Time interval of input in seconds.", "validators": [{"type": "regex", "pattern": "^\\-[1-9]\\d*$|^\\d*$", "errorMsg": "Interval must be an integer."}]}, {"field": "index", "label": "Index", "type": "singleSelect", "defaultValue": "default", "options": {"endpointUrl": "data/indexes", "blackList": "^_.*$", "createSearchChoice": true}, "required": true, "validators": [{"type": "string", "minLength": 1, "maxLength": 80, "errorMsg": "Length of index name should be between 1 and 80."}]}, {"field": "global_account", "label": "Global Account", "help": "", "required": true, "type": "singleSelect", "options": {"referenceName": "account"}}, {"field": "sync_type", "label": "Sync Type", "help": "The sync type determines whether to pull only new assets or all updated assets since the last sync.", "required": true, "type": "radio", "defaultValue": "created", "options": {"items": [{"value": "created", "label": "New Assets Only"}, {"value": "updated", "label": "All Updated Assets"}]}}, {"field": "search_filter", "label": "Search Filter", "help": "The search filter can be used to limit the types of assets returned by the asset sync. See the Rumble Query Syntax documentation for additional details.", "required": false, "type": "text", "validators": [{"type": "string", "minLength": 0, "maxLength": 8192, "errorMsg": "Max length of text input is 8192"}]}, {"field": "since", "label": "Since", "help": "Initial value of the checkpoint variable", "required": true, "type": "text", "defaultValue": "0", "validators": [{"type": "string", "minLength": 0, "maxLength": 8192, "errorMsg": "Max length of text input is 8192"}], "options": {"placeholder": "Initial value for the checkpoint variable (use 0)"}}, {"field": "services", "label": "Import Services", "help": "Enable or disable importing your services", "required": false, "type": "singleSelect", "defaultValue": "false", "options": {"disableSearch": true, "autoCompleteFields": [{"value": "true", "label": "Enabled"}, {"value": "false", "label": "Disabled"}]}}, {"field": "builtin_system_checkpoint_storage_type", "label": "Checkpoint type", "help": "", "required": false, "type": "singleSelect", "defaultValue": "auto", "options": {"disableSearch": true, "autoCompleteFields": [{"value": "auto", "label": "Auto"}, {"value": "file", "label": "File"}]}}]}]}}, "validation": {"validators": ["best_practice_validation", "data_model_mapping_validation", "field_extract_validation", "app_cert_validation"], "status": "job_started", "validation_id": "v_1631310405_25"}}
{"meta": {"name": "TA_rumble_asset_sync", "displayName": "rumble-asset-sync", "version": "1.0.15", "apiVersion": "3.0.0", "restRoot": "TA_rumble_asset_sync"}, "pages": {"configuration": {"title": "Configuration", "description": "Configure your account, proxy, and log level.", "tabs": [{"name": "account", "title": "Account", "table": {"header": [{"field": "name", "label": "Account name"}, {"field": "api_endpoint", "label": "API Endpoint"}], "actions": ["edit", "delete", "clone"]}, "entity": [{"field": "name", "label": "Account name", "type": "text", "required": true, "help": "Enter a unique name for this account.", "validators": [{"type": "string", "minLength": 1, "maxLength": 50, "errorMsg": "Length of Account name should be between 1 and 50"}, {"type": "regex", "pattern": "^[a-zA-Z]\\w*$", "errorMsg": "Account name must start with a letter and followed by alphabetic letters, digits or underscores."}]}, {"field": "api_key", "label": "API Key", "type": "text", "encrypted": true, "required": true, "help": "Enter an Export Token or API Key for this account.", "validators": [{"type": "string", "minLength": 16, "maxLength": 256, "errorMsg": "Length of token should be between 16 and 256"}]}, {"field": "api_endpoint", "label": "API Endpoint Hostname or IP", "type": "text", "encrypted": false, "required": true, "help": "Enter an API endpoint hostname or IP. If you're hosting your own console, enter your console's external IP or hostname.", "defaultValue": "console.rumble.run", "validators": [{"type": "regex", "pattern": "^(?!https?:\\/\\/).+$", "errorMsg": "The URL should not contain http:// or https://"}]}]}, {"options": {"saveValidator": "function(formData) { if(!formData.proxy_enabled || formData.proxy_enabled === '0') {return true; } if(!formData.proxy_url) { return 'Proxy Host can not be empty'; } if(!formData.proxy_port) { return 'Proxy Port can not be empty'; } return true; }"}, "entity": [{"type": "checkbox", "label": "Enable", "field": "proxy_enabled"}, {"type": "singleSelect", "label": "Proxy Type", "options": {"autoCompleteFields": [{"value": "http", "label": "http"}], "disableSearch": true}, "field": "proxy_type", "defaultValue": "http"}, {"type": "text", "label": "Host", "field": "proxy_url", "validators": [{"type": "string", "maxLength": 4096, "errorMsg": "Max host length is 4096", "minLength": 0}]}, {"type": "text", "label": "Port", "field": "proxy_port", "validators": [{"type": "number", "range": [1, 65535]}]}, {"type": "text", "label": "Username", "field": "proxy_username", "validators": [{"type": "string", "maxLength": 50, "errorMsg": "Max length of username is 50", "minLength": 0}]}, {"type": "text", "label": "Password", "encrypted": true, "field": "proxy_password", "validators": [{"type": "string", "maxLength": 8192, "errorMsg": "Max length of password is 8192", "minLength": 0}]}, {"type": "checkbox", "label": "Remote DNS resolution", "field": "proxy_rdns"}], "name": "proxy", "title": "Proxy"}, {"name": "logging", "title": "Logging", "entity": [{"field": "loglevel", "label": "Log level", "type": "singleSelect", "options": {"disableSearch": true, "autoCompleteFields": [{"label": "DEBUG", "value": "DEBUG"}, {"label": "INFO", "value": "INFO"}, {"label": "WARNING", "value": "WARNING"}, {"label": "ERROR", "value": "ERROR"}, {"label": "CRITICAL", "value": "CRITICAL"}]}, "defaultValue": "INFO"}]}]}, "inputs": {"title": "Inputs", "description": "Manage your data inputs", "table": {"header": [{"field": "name", "label": "Name"}, {"field": "interval", "label": "Interval"}, {"field": "index", "label": "Index"}, {"field": "services", "label": "Import Services"}, {"field": "disabled", "label": "Status"}], "moreInfo": [{"field": "name", "label": "Name"}, {"field": "interval", "label": "Interval"}, {"field": "index", "label": "Index"}, {"field": "disabled", "label": "Status"}, {"field": "sync_type", "label": "Sync Type"}, {"field": "search_filter", "label": "Search Filter"}, {"field": "since", "label": "Since"}, {"field": "global_account", "label": "Global Account"}, {"field": "services", "label": "Import Services"}], "actions": ["edit", "enable", "delete", "clone"]}, "services": [{"name": "assets", "title": "Assets", "entity": [{"field": "name", "label": "Name", "type": "text", "help": "Enter a unique name for the data input", "required": true, "validators": [{"type": "regex", "pattern": "^[a-zA-Z]\\w*$", "errorMsg": "Input Name must start with a letter and followed by alphabetic letters, digits or underscores."}, {"type": "string", "minLength": 1, "maxLength": 100, "errorMsg": "Length of input name should be between 1 and 100"}]}, {"field": "interval", "label": "Interval", "type": "text", "required": true, "help": "Time interval of input in seconds.", "validators": [{"type": "regex", "pattern": "^\\-[1-9]\\d*$|^\\d*$", "errorMsg": "Interval must be an integer."}]}, {"field": "index", "label": "Index", "type": "singleSelect", "defaultValue": "default", "options": {"endpointUrl": "data/indexes", "blackList": "^_.*$", "createSearchChoice": true}, "required": true, "validators": [{"type": "string", "minLength": 1, "maxLength": 80, "errorMsg": "Length of index name should be between 1 and 80."}]}, {"field": "global_account", "label": "Global Account", "help": "", "required": true, "type": "singleSelect", "options": {"referenceName": "account"}}, {"field": "sync_type", "label": "Sync Type", "help": "The sync type determines whether to pull only new assets or all updated assets since the last sync.", "required": true, "type": "radio", "defaultValue": "created", "options": {"items": [{"value": "created", "label": "New Assets Only"}, {"value": "updated", "label": "All Updated Assets"}]}}, {"field": "search_filter", "label": "Search Filter", "help": "The search filter can be used to limit the types of assets returned by the asset sync. See the Rumble Query Syntax documentation for additional details.", "required": false, "type": "text", "validators": [{"type": "string", "minLength": 0, "maxLength": 8192, "errorMsg": "Max length of text input is 8192"}]}, {"field": "since", "label": "Since", "help": "Initial value of the checkpoint variable", "required": true, "type": "text", "defaultValue": "0", "validators": [{"type": "string", "minLength": 0, "maxLength": 8192, "errorMsg": "Max length of text input is 8192"}], "options": {"placeholder": "Initial value for the checkpoint variable (use 0)"}}, {"field": "services", "label": "Import Services", "help": "Enable or disable importing your services", "required": false, "type": "singleSelect", "defaultValue": "false", "options": {"disableSearch": true, "autoCompleteFields": [{"value": "true", "label": "Enabled"}, {"value": "false", "label": "Disabled"}]}}, {"field": "builtin_system_checkpoint_storage_type", "label": "Checkpoint type", "help": "", "required": false, "type": "singleSelect", "defaultValue": "auto", "options": {"disableSearch": true, "autoCompleteFields": [{"value": "auto", "label": "Auto"}, {"value": "file", "label": "File"}]}}]}]}}, "validation": {"validators": ["best_practice_validation", "data_model_mapping_validation", "field_extract_validation", "app_cert_validation"], "status": "job_started", "validation_id": "v_1631310405_25"}}
2 changes: 1 addition & 1 deletion TA_rumble_asset_sync/app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": {
"group": null,
"name": "TA_rumble_asset_sync",
"version": "1.0.14"
"version": "1.0.15"
},
"author": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"meta": {
"name": "TA_rumble_asset_sync",
"displayName": "rumble-asset-sync",
"version": "1.0.14",
"version": "1.0.15",
"apiVersion": "3.0.0",
"restRoot": "TA_rumble_asset_sync",
"schemaVersion": "0.0.2"
Expand Down Expand Up @@ -76,7 +76,7 @@
"encrypted": false,
"required": true,
"help": "Enter an API endpoint hostname or IP. If you're hosting your own console, enter your console's external IP or hostname.",
"defaultValue": "rumble.console.run",
"defaultValue": "console.rumble.run",
"validators": [
{
"type": "regex",
Expand Down
2 changes: 1 addition & 1 deletion TA_rumble_asset_sync/default/app.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ install_source_checksum = ac596541d33a02444ad7cf69e7691a7d309dc953

[launcher]
author = RumbleDiscovery
version = 1.0.14
version = 1.0.15
description = This application synchronizes a Rumble Network Discovery inventory with Splunk, pulling newly-found or updated hosts as configured.

[ui]
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
rm -f TA_rumble_asset_sync.tar TA_rumble_asset_sync.tar.gz *.spl
tar cf TA_rumble_asset_sync.tar TA_rumble_asset_sync && gzip -9 TA_rumble_asset_sync.tar && mv TA_rumble_asset_sync.tar.gz TA_rumble_asset_sync-1.0.14.spl
tar cf TA_rumble_asset_sync.tar TA_rumble_asset_sync && gzip -9 TA_rumble_asset_sync.tar && mv TA_rumble_asset_sync.tar.gz TA_rumble_asset_sync-1.0.15.spl

0 comments on commit c67cc78

Please sign in to comment.