-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoolclad.toml
More file actions
32 lines (26 loc) · 893 Bytes
/
toolclad.toml
File metadata and controls
32 lines (26 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Project-level custom type definitions for ToolClad.
#
# Types defined here can be referenced by any .clad.toml manifest
# in this project using type = "custom_type_name".
#
# Each custom type inherits validation from a base type and adds
# constraints (allowed values, patterns, min/max ranges).
[types.severity_level]
base = "enum"
allowed = ["info", "low", "medium", "high", "critical"]
[types.service_protocol]
base = "enum"
allowed = ["ssh", "ftp", "http", "https", "smtp", "dns", "rdp", "smb", "telnet", "snmp"]
[types.scan_rate]
base = "integer"
min = 1
max = 10000
[types.hostname]
base = "string"
pattern = "^[a-zA-Z0-9]([a-zA-Z0-9\\-]*[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9\\-]*[a-zA-Z0-9])?)*$"
[types.safe_identifier]
base = "string"
pattern = "^[a-zA-Z_][a-zA-Z0-9_\\-]{0,63}$"
[types.port_range]
base = "string"
pattern = "^\\d{1,5}(-\\d{1,5})?(,\\d{1,5}(-\\d{1,5})?)*$"