diff --git a/add-on/TA-Demisto/appserver/static/js/build/globalConfig.json b/add-on/TA-Demisto/appserver/static/js/build/globalConfig.json index 395eef2..1ff3599 100644 --- a/add-on/TA-Demisto/appserver/static/js/build/globalConfig.json +++ b/add-on/TA-Demisto/appserver/static/js/build/globalConfig.json @@ -1,273 +1,266 @@ { - "meta": { - "name": "TA-Demisto", - "displayName": "Demisto Add-on for Splunk", - "version": "4.1.1", - "restRoot": "TA_Demisto", - "schemaVersion": "0.0.3" - }, - "pages": { - "configuration": { - "title": "Configuration", - "description": "Set up XSOAR add-on", - "tabs": [ + "meta": { + "name": "TA-Demisto", + "displayName": "Demisto Add-on for Splunk", + "version": "4.1.2", + "restRoot": "TA_Demisto", + "schemaVersion": "0.0.3" + }, + "pages": { + "configuration": { + "title": "Configuration", + "description": "Set up XSOAR add-on", + "tabs": [ + { + "name": "account", + "title": "XSOAR Instances", + "table": { + "header": [ + { + "field": "name", + "label": "XSOAR Instance name" + }, + { + "field": "username", + "label": "XSOAR Server URL" + } + ], + "actions": ["edit", "delete", "clone"] + }, + "entity": [ + { + "field": "name", + "label": "XSOAR Instance name", + "type": "text", + "required": true, + "help": "Enter a unique name for this instance.", + "validators": [ { - "name": "account", - "title": "XSOAR Instances", - "table": { - "header": [ - { - "field": "name", - "label": "XSOAR Instance name" - }, - { - "field": "username", - "label": "XSOAR Server URL" - } - ], - "actions": [ - "edit", - "delete", - "clone" - ] - }, - "entity": [ - { - "field": "name", - "label": "XSOAR Instance name", - "type": "text", - "required": true, - "help": "Enter a unique name for this instance.", - "validators": [ - { - "type": "string", - "minLength": 1, - "maxLength": 50, - "errorMsg": "Length of Instance name should be between 1 and 50" - }, - { - "type": "regex", - "pattern": "^[a-zA-Z]\\w*$", - "errorMsg": "Instance name must start with a letter and followed by alphabetic letters, digits or underscores." - } - ] - }, - { - "field": "username", - "label": "XSOAR Server URL", - "type": "text", - "required": true, - "help": "Enter the server URL for this instance.", - "options": { - "placeholder": "e.g. https://localhost:443" - }, - "validators": [ - { - "type": "string", - "minLength": 1, - "maxLength": 200, - "errorMsg": "Length of username should be between 1 and 200" - } - ] - }, - { - "field": "password", - "label": "API Key", - "type": "text", - "encrypted": true, - "required": true, - "help": "Enter the API key for this instance.", - "validators": [ - { - "type": "string", - "minLength": 1, - "maxLength": 8192, - "errorMsg": "Length of API key should be between 1 and 8192" - } - ] - } - ] + "type": "string", + "minLength": 1, + "maxLength": 50, + "errorMsg": "Length of Instance name should be between 1 and 50" }, { - "name": "proxy", - "title": "Proxy", - "entity": [ - { - "field": "proxy_enabled", - "label": "Enable", - "type": "checkbox" - }, - { - "field": "proxy_type", - "label": "Proxy Type", - "type": "singleSelect", - "options": { - "disableSearch": true, - "autoCompleteFields": [ - { - "label": "http", - "value": "http" - }, - { - "label": "socks4", - "value": "socks4" - }, - { - "label": "socks5", - "value": "socks5" - } - ] - }, - "defaultValue": "http" - }, - { - "field": "proxy_url", - "label": "Host", - "type": "text", - "validators": [ - { - "type": "string", - "minLength": 0, - "maxLength": 4096, - "errorMsg": "Max host length is 4096" - } - ] - }, - { - "field": "proxy_port", - "label": "Port", - "type": "text", - "validators": [ - { - "type": "number", - "range": [ - 1, - 65535 - ] - } - ] - }, - { - "field": "proxy_username", - "label": "Username", - "type": "text", - "validators": [ - { - "type": "string", - "minLength": 0, - "maxLength": 50, - "errorMsg": "Max length of username is 50" - } - ] - }, - { - "field": "proxy_password", - "label": "Password", - "type": "text", - "encrypted": true, - "validators": [ - { - "type": "string", - "minLength": 0, - "maxLength": 8192, - "errorMsg": "Max length of password is 8192" - } - ] - }, - { - "field": "proxy_rdns", - "label": "Remote DNS resolution", - "type": "checkbox" - } - ], - "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; }" - } - }, + "type": "regex", + "pattern": "^[a-zA-Z]\\w*$", + "errorMsg": "Instance name must start with a letter and followed by alphabetic letters, digits or underscores." + } + ] + }, + { + "field": "username", + "label": "XSOAR Server URL", + "type": "text", + "required": true, + "help": "Enter the server URL for this instance.", + "options": { + "placeholder": "e.g. https://localhost:443" + }, + "validators": [ { - "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" - } - ] - }, + "type": "string", + "minLength": 1, + "maxLength": 200, + "errorMsg": "Length of username should be between 1 and 200" + } + ] + }, + { + "field": "password", + "label": "API Key", + "type": "text", + "encrypted": true, + "required": true, + "help": "Enter the API key for this instance.", + "validators": [ + { + "type": "string", + "minLength": 1, + "maxLength": 8192, + "errorMsg": "Length of API key should be between 1 and 8192" + } + ] + } + ] + }, + { + "name": "proxy", + "title": "Proxy", + "entity": [ + { + "field": "proxy_enabled", + "label": "Enable", + "type": "checkbox" + }, + { + "field": "proxy_type", + "label": "Proxy Type", + "type": "singleSelect", + "options": { + "disableSearch": true, + "autoCompleteFields": [ + { + "label": "http", + "value": "http" + }, + { + "label": "socks4", + "value": "socks4" + }, + { + "label": "socks5", + "value": "socks5" + } + ] + }, + "defaultValue": "http" + }, + { + "field": "proxy_url", + "label": "Host", + "type": "text", + "validators": [ + { + "type": "string", + "minLength": 0, + "maxLength": 4096, + "errorMsg": "Max host length is 4096" + } + ] + }, + { + "field": "proxy_port", + "label": "Port", + "type": "text", + "validators": [ + { + "type": "number", + "range": [1, 65535] + } + ] + }, + { + "field": "proxy_username", + "label": "Username", + "type": "text", + "validators": [ + { + "type": "string", + "minLength": 0, + "maxLength": 50, + "errorMsg": "Max length of username is 50" + } + ] + }, + { + "field": "proxy_password", + "label": "Password", + "type": "text", + "encrypted": true, + "validators": [ + { + "type": "string", + "minLength": 0, + "maxLength": 8192, + "errorMsg": "Max length of password is 8192" + } + ] + }, + { + "field": "proxy_rdns", + "label": "Remote DNS resolution", + "type": "checkbox" + } + ], + "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; }" + } + }, + { + "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" + } + ] + }, + { + "name": "additional_parameters", + "title": "Additional Settings", + "entity": [ + { + "field": "ssl_cert_loc", + "label": "Location to Certificate", + "type": "text", + "help": "Enter the full path to the SSL Certificate in the Splunk server to if you are using Self Signed/Internal CA signed certificate", + "required": false, + "defaultValue": "", + "validators": [ + { + "type": "string", + "minLength": 0, + "maxLength": 8192, + "errorMsg": "Max length of text input is 8192" + } + ] + }, + { + "field": "validate_ssl", + "label": "Validate SSL", + "type": "checkbox", + "help": "This option is not open for Splunk Cloud users.", + "required": false, + "defaultValue": 1 + }, + { + "field": "timeout_val", + "label": "Timeout Value", + "type": "text", + "help": "Enter the desired timeout value for creating the incident. Default is 10.", + "required": false, + "defaultValue": "10", + "validators": [ { - "name": "additional_parameters", - "title": "Additional Settings", - "entity": [ - { - "field": "ssl_cert_loc", - "label": "Location to Certificate", - "type": "text", - "help": "Enter the full path to the SSL Certificate in the Splunk server to if you are using Self Signed/Internal CA signed certificate", - "required": false, - "defaultValue": "", - "validators": [ - { - "type": "string", - "minLength": 0, - "maxLength": 8192, - "errorMsg": "Max length of text input is 8192" - } - ] - }, - { - "field": "validate_ssl", - "label": "Validate SSL", - "type": "checkbox", - "help": "This option is not open for Splunk Cloud users.", - "required": false, - "defaultValue": 1 - }, - { - "field": "timeout_val", - "label": "Timeout Value", - "type": "text", - "help": "Enter the desired timeout value for creating the incident. Default is 10.", - "required": false, - "defaultValue": "10", - "validators": [ - { - "type": "string", - "minLength": 0, - "maxLength": 8192, - "errorMsg": "Max length of text input is 8192" - } - ] - } - ] + "type": "string", + "minLength": 0, + "maxLength": 8192, + "errorMsg": "Max length of text input is 8192" } - ] + ] + } + ] } + ] } -} \ No newline at end of file + } +}