-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathPolicy.json
More file actions
138 lines (138 loc) · 3.73 KB
/
Copy pathPolicy.json
File metadata and controls
138 lines (138 loc) · 3.73 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"$ref": "#/definitions/Policy",
"definitions": {
"Policy": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[a-z_][a-z0-9_]*$",
"description": "Policy Name"
},
"password": {
"type": "object",
"properties": {
"minLength": {
"type": "number",
"default": 8
},
"requireUppercase": {
"type": "boolean",
"default": true
},
"requireLowercase": {
"type": "boolean",
"default": true
},
"requireNumbers": {
"type": "boolean",
"default": true
},
"requireSymbols": {
"type": "boolean",
"default": false
},
"expirationDays": {
"type": "number",
"description": "Force password change every X days"
},
"historyCount": {
"type": "number",
"default": 3,
"description": "Prevent reusing last X passwords"
}
},
"additionalProperties": false
},
"network": {
"type": "object",
"properties": {
"trustedRanges": {
"type": "array",
"items": {
"type": "string"
},
"description": "CIDR ranges allowed to access (e.g. 10.0.0.0/8)"
},
"blockUnknown": {
"type": "boolean",
"default": false,
"description": "Block all IPs not in trusted ranges"
},
"vpnRequired": {
"type": "boolean",
"default": false
}
},
"required": [
"trustedRanges"
],
"additionalProperties": false
},
"session": {
"type": "object",
"properties": {
"idleTimeout": {
"type": "number",
"default": 30,
"description": "Minutes before idle session logout"
},
"absoluteTimeout": {
"type": "number",
"default": 480,
"description": "Max session duration (minutes)"
},
"forceMfa": {
"type": "boolean",
"default": false,
"description": "Require 2FA for all users"
}
},
"additionalProperties": false
},
"audit": {
"type": "object",
"properties": {
"logRetentionDays": {
"type": "number",
"default": 180
},
"sensitiveFields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Fields to redact in logs (e.g. password, ssn)"
},
"captureRead": {
"type": "boolean",
"default": false,
"description": "Log read access (High volume!)"
}
},
"required": [
"sensitiveFields"
],
"additionalProperties": false
},
"isDefault": {
"type": "boolean",
"default": false,
"description": "Apply to all users by default"
},
"assignedProfiles": {
"type": "array",
"items": {
"type": "string"
},
"description": "Apply to specific profiles"
}
},
"required": [
"name"
],
"additionalProperties": false
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}