summaryrefslogtreecommitdiff
path: root/examples/dtail.schema.json
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2023-06-21 10:56:41 +0000
committerPaul Buetow <pbuetow@mimecast.com>2023-06-21 10:56:41 +0000
commit51747cc62ae47af7d369e3e43d41f156835e9dfa (patch)
tree691e46f0930804e6a8ad0a234f293db917859f5a /examples/dtail.schema.json
parentdaaca90c2c1c9debc339ff28c3f0b928b5041d3e (diff)
parentc5fd63e099cec30154e2a9c0b5ee7715491263bf (diff)
Merge branch 'develop' into 'master'v4.2.0
DTail: Restrict SSH MAC algorithms allowed - Update of few dependencies See merge request Storage/dtail!7
Diffstat (limited to 'examples/dtail.schema.json')
-rwxr-xr-xexamples/dtail.schema.json532
1 files changed, 532 insertions, 0 deletions
diff --git a/examples/dtail.schema.json b/examples/dtail.schema.json
new file mode 100755
index 0000000..d13b133
--- /dev/null
+++ b/examples/dtail.schema.json
@@ -0,0 +1,532 @@
+{
+ "$schema": "https://json-schema.org/2019-09/schema",
+ "description": "Schema for dtail.json",
+ "definitions": {
+ "userPermission": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "userPermissions": {
+ "type": "object",
+ "patternProperties": {
+ "^.*$": {
+ "$ref": "#/definitions/userPermission"
+ }
+ }
+ },
+ "loglevel": {
+ "type": "string",
+ "enum": [
+ "None",
+ "Fatal",
+ "Error",
+ "Warn",
+ "Info",
+ "Default",
+ "Verbose",
+ "Debug",
+ "Devel",
+ "Trace",
+ "All"
+ ]
+ },
+ "logger": {
+ "type": "string",
+ "enum": [
+ "None",
+ "Stdout",
+ "File",
+ "Fout"
+ ]
+ },
+ "logrotation": {
+ "type": "string",
+ "enum": [
+ "Daily",
+ "Signal"
+ ]
+ },
+ "color": {
+ "type": "string",
+ "enum": [
+ "Black",
+ "Red",
+ "Green",
+ "Yellow",
+ "Blue",
+ "Magenta",
+ "Cyan",
+ "White"
+ ]
+ },
+ "attribute": {
+ "type": "string",
+ "enum": [
+ "None",
+ "Bold",
+ "Dim",
+ "Italic",
+ "Underline",
+ "Blink",
+ "SlowBlink",
+ "RapidBlink",
+ "Reverse",
+ "Hidden"
+ ]
+ }
+ },
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "Client": {
+ "additionalProperties": false,
+ "properties": {
+ "TermColorsEnable": {
+ "type": "boolean"
+ },
+ "TermColors": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "Remote": {
+ "additionalProperties": false,
+ "properties": {
+ "DelimiterAttr": {
+ "$ref": "#/definitions/attribute"
+ },
+ "DelimiterBg": {
+ "$ref": "#/definitions/color"
+ },
+ "DelimiterFg": {
+ "$ref": "#/definitions/color"
+ },
+ "RemoteAttr": {
+ "$ref": "#/definitions/attribute"
+ },
+ "RemoteBg": {
+ "$ref": "#/definitions/color"
+ },
+ "RemoteFg": {
+ "$ref": "#/definitions/color"
+ },
+ "CountAttr": {
+ "$ref": "#/definitions/attribute"
+ },
+ "CountBg": {
+ "$ref": "#/definitions/color"
+ },
+ "CountFg": {
+ "$ref": "#/definitions/color"
+ },
+ "HostnameAttr": {
+ "$ref": "#/definitions/attribute"
+ },
+ "HostnameBg": {
+ "$ref": "#/definitions/color"
+ },
+ "HostnameFg": {
+ "$ref": "#/definitions/color"
+ },
+ "IDAttr": {
+ "$ref": "#/definitions/attribute"
+ },
+ "IDBg": {
+ "$ref": "#/definitions/color"
+ },
+ "IDFg": {
+ "$ref": "#/definitions/color"
+ },
+ "StatsOkAttr": {
+ "$ref": "#/definitions/attribute"
+ },
+ "StatsOkBg": {
+ "$ref": "#/definitions/color"
+ },
+ "StatsOkFg": {
+ "$ref": "#/definitions/color"
+ },
+ "StatsWarnAttr": {
+ "$ref": "#/definitions/attribute"
+ },
+ "StatsWarnBg": {
+ "$ref": "#/definitions/color"
+ },
+ "StatsWarnFg": {
+ "$ref": "#/definitions/color"
+ },
+ "TextAttr": {
+ "$ref": "#/definitions/attribute"
+ },
+ "TextBg": {
+ "$ref": "#/definitions/color"
+ },
+ "TextFg": {
+ "$ref": "#/definitions/color"
+ }
+ }
+ },
+ "Client": {
+ "additionalProperties": false,
+ "properties": {
+ "DelimiterAttr": {
+ "$ref": "#/definitions/attribute"
+ },
+ "DelimiterBg": {
+ "$ref": "#/definitions/color"
+ },
+ "DelimiterFg": {
+ "$ref": "#/definitions/color"
+ },
+ "ClientAttr": {
+ "$ref": "#/definitions/attribute"
+ },
+ "ClientBg": {
+ "$ref": "#/definitions/color"
+ },
+ "ClientFg": {
+ "$ref": "#/definitions/color"
+ },
+ "HostnameAttr": {
+ "$ref": "#/definitions/attribute"
+ },
+ "HostnameBg": {
+ "$ref": "#/definitions/color"
+ },
+ "HostnameFg": {
+ "$ref": "#/definitions/color"
+ },
+ "TextAttr": {
+ "$ref": "#/definitions/attribute"
+ },
+ "TextBg": {
+ "$ref": "#/definitions/color"
+ },
+ "TextFg": {
+ "$ref": "#/definitions/color"
+ }
+ }
+ },
+ "Server": {
+ "additionalProperties": false,
+ "properties": {
+ "DelimiterAttr": {
+ "#ref": "#/definitions/attribute"
+ },
+ "DelimiterBg": {
+ "#ref": "#/definitions/color"
+ },
+ "DelimiterFg": {
+ "#ref": "#/definitions/color"
+ },
+ "ServerAttr": {
+ "#ref": "#/definitions/attribute"
+ },
+ "ServerBg": {
+ "#ref": "#/definitions/color"
+ },
+ "ServerFg": {
+ "#ref": "#/definitions/color"
+ },
+ "HostnameAttr": {
+ "#ref": "#/definitions/attribute"
+ },
+ "HostnameBg": {
+ "#ref": "#/definitions/color"
+ },
+ "HostnameFg": {
+ "#ref": "#/definitions/color"
+ },
+ "TextAttr": {
+ "#ref": "#/definitions/attribute"
+ },
+ "TextBg": {
+ "#ref": "#/definitions/color"
+ },
+ "TextFg": {
+ "#ref": "#/definitions/color"
+ }
+ }
+ },
+ "Common": {
+ "additionalProperties": false,
+ "properties": {
+ "SeverityErrorAttr": {
+ "#ref": "#/definitions/attribute"
+ },
+ "SeverityErrorBg": {
+ "#ref": "#/definitions/color"
+ },
+ "SeverityErrorFg": {
+ "#ref": "#/definitions/color"
+ },
+ "SeverityFatalAttr": {
+ "#ref": "#/definitions/attribute"
+ },
+ "SeverityFatalBg": {
+ "#ref": "#/definitions/color"
+ },
+ "SeverityFatalFg": {
+ "#ref": "#/definitions/color"
+ },
+ "SeverityWarnAttr": {
+ "#ref": "#/definitions/attribute"
+ },
+ "SeverityWarnBg": {
+ "#ref": "#/definitions/color"
+ },
+ "SeverityWarnFg": {
+ "#ref": "#/definitions/color"
+ }
+ }
+ },
+ "MaprTable": {
+ "additionalProperties": false,
+ "properties": {
+ "DataAttr": {
+ "#ref": "#/definitions/attribute"
+ },
+ "DataBg": {
+ "#ref": "#/definitions/color"
+ },
+ "DataFg": {
+ "#ref": "#/definitions/color"
+ },
+ "DelimiterAttr": {
+ "#ref": "#/definitions/attribute"
+ },
+ "DelimiterBg": {
+ "#ref": "#/definitions/color"
+ },
+ "DelimiterFg": {
+ "#ref": "#/definitions/color"
+ },
+ "HeaderAttr": {
+ "#ref": "#/definitions/attribute"
+ },
+ "HeaderBg": {
+ "#ref": "#/definitions/color"
+ },
+ "HeaderFg": {
+ "#ref": "#/definitions/color"
+ },
+ "HeaderDelimiterAttr": {
+ "#ref": "#/definitions/attribute"
+ },
+ "HeaderDelimiterBg": {
+ "#ref": "#/definitions/color"
+ },
+ "HeaderDelimiterFg": {
+ "#ref": "#/definitions/color"
+ },
+ "HeaderSortKeyAttr": {
+ "#ref": "#/definitions/attribute"
+ },
+ "HeaderGroupKeyAttr": {
+ "#ref": "#/definitions/attribute"
+ },
+ "RawQueryAttr": {
+ "#ref": "#/definitions/attribute"
+ },
+ "RawQueryBg": {
+ "#ref": "#/definitions/color"
+ },
+ "RawQueryFg": {
+ "#ref": "#/definitions/color"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "Server": {
+ "additionalProperties": false,
+ "properties": {
+ "SSHBindAddress": {
+ "type": "string"
+ },
+ "KeyExchanges": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "Ciphers": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "MACs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "HostKeyFile": {
+ "type": "string"
+ },
+ "HostKeyBits": {
+ "type": "integer",
+ "minimum": 2048
+ },
+ "MapreduceLogFormat": {
+ "type": "string"
+ },
+ "MaxConcurrentCats": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 20
+ },
+ "MaxConcurrentTails": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 200
+ },
+ "MaxConnections": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 200
+ },
+ "MaxLineLength": {
+ "type": "integer",
+ "minimum": 1024,
+ "maximum": 10240000
+ },
+ "Permissions": {
+ "type": "object",
+ "additionalProperties": true,
+ "patternProperties": {
+ "^Default$": {
+ "$ref": "#/definitions/userPermission"
+ },
+ "^Users$": {
+ "$ref": "#/definitions/userPermissions"
+ }
+ }
+ },
+ "Schedule": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "Name": {
+ "type": "string"
+ },
+ "Enable": {
+ "type": "boolean"
+ },
+ "AllowFrom": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "Servers": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "TimeRange": {
+ "type": "array",
+ "items": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "integer"
+ }
+ ]
+ },
+ "Files": {
+ "type": "string"
+ },
+ "Outfile": {
+ "type": "string"
+ },
+ "Query": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "Continuous": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "Name": {
+ "type": "string"
+ },
+ "Enable": {
+ "type": "boolean"
+ },
+ "AllowFrom": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "Servers": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "RestartOnDayChange": {
+ "type": "boolean"
+ },
+ "Files": {
+ "type": "string"
+ },
+ "Outfile": {
+ "type": "string"
+ },
+ "Query": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "Common": {
+ "additionalProperties": false,
+ "properties": {
+ "LogDir": {
+ "type": "string"
+ },
+ "Logger": {
+ "#ref": "#/definitions/logger"
+ },
+ "LogLevel": {
+ "#ref": "#/definitions/loglevel"
+ },
+ "LogRotation": {
+ "#ref": "#/definitions/logrotation"
+ },
+ "CacheDir": {
+ "type": "string"
+ },
+ "SSHPort": {
+ "type": "integer",
+ "minimum": 2,
+ "maximum": 16000
+ },
+ "ExperimentalFeaturesEnable": {
+ "type": "boolean"
+ }
+ }
+ }
+ },
+ "required": [
+ "Client",
+ "Server",
+ "Common"
+ ]
+}