-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.php
More file actions
executable file
·215 lines (198 loc) · 6.43 KB
/
Copy pathconfig.php
File metadata and controls
executable file
·215 lines (198 loc) · 6.43 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<?php
/**
* @copyright Copyright (c) PutYourLightsOn
*/
/**
* Sherlock config.php
*
* This file exists only as a template for the Sherlock settings.
* It does nothing on its own.
*
* Don't edit this file, instead copy it to 'craft/config' as 'sherlock.php'
* and make your changes there to override default settings.
*
* Once copied to 'craft/config', this file will be multi-environment aware as
* well, so you can have different settings groups for each environment, just as
* you do for 'general.php'
*/
return [
'*' => [
// Whether to monitor scans. If enabled, control panel alerts will be shown to all users that have access to the Sherlock plugin and notification emails will be sent if the site scan status changes from pass to fail and if any critical updates are detected.
//'monitor' => false,
// Enter the email addresses (separated by commas) that should be notified of security issues.
//'notificationEmailAddresses' => '',
// Whether Sherlock should be extra critical of security issues and the resulting warnings.
//'highSecurityLevel' => false,
// Protects your site by setting HTTP response headers that provide added security.
//'headerProtectionSettings' => [
// 'enabled' => true,
// 'headers' => [
// [true, 'Strict-Transport-Security', 'max-age=31536000'],
// [true, 'X-Content-Type-Options', 'nosniff'],
// [true, 'X-Frame-Options', 'SAMEORIGIN'],
// [true, 'X-Xss-Protection', '1; mode=block'],
// ]
//],
// Enables a content security policy on the front-end of your site.
// See https://content-security-policy.com/
//'contentSecurityPolicySettings' => [
// 'enabled' => false,
// 'enforce' => false,
// 'header' => false,
// 'directives' => [[]],
//],
// A random 32 character string that will allow calls to the plugin API.
//'apiKey' => '',
// Restrict access to the control panel to the following IP addresses (logged in admins always have access).
//'restrictControlPanelIpAddresses' => = [],
// Restrict access to the front-end to the following IP addresses (logged in admins always have access).
//'restrictFrontEndIpAddresses' => = [],
// Add tests to disable to the array.
//'disabledTests' => [],
/**
* =========================================================================
* Individual test settings.
* =========================================================================
*
// Updates
'criticalCraftUpdates' => [
'forceFail' => true,
],
'criticalPluginUpdates' => [
'forceFail' => true,
],
'craftUpdates' => [],
'pluginUpdates' => [],
// HTTPS
'httpsControlPanel' => [
'forceFail' => true,
],
'httpsFrontEnd' => [
'forceFail' => true,
],
// System
'craftFilePermissions' => [
'canFail' => true,
],
'craftFolderPermissions' => [
'canFail' => true,
],
'craftFoldersAboveWebRoot' => [
'canFail' => true,
],
'phpVersion' => [
'canFail' => true,
'thresholds' => [
'7.0' => '2018-12-03',
'7.1' => '2019-12-01',
'7.2' => '2020-11-30',
'7.3' => '2021-12-06',
'7.4' => '2022-11-28',
'8.0' => '2023-11-26',
'8.1' => '2024-11-25',
'8.2' => '2025-12-08',
],
],
// Setup
'adminUsername' => [],
'requireEmailVerification' => [
'canFail' => true,
],
'webAliasInSiteBaseUrl => [
'forceFail' => true,
],
'webAliasInVolumeBaseUrl => [
'forceFail' => true,
],
// Headers
'contentSecurityPolicy' => [
'canFail' => true,
],
'cors' => [
'forceFail' => true,
],
'expectCT' => [
'canFail' => true,
],
'referrerPolicy' => [
'canFail' => true,
],
'strictTransportSecurity' => [
'canFail' => true,
],
'xContentTypeOptions' => [
'canFail' => true,
],
'xFrameOptions' => [
'canFail' => true,
],
'xXssProtection' => [],
// General config settings
'blowfishHashCost' => [
'threshold' => 13,
],
'cooldownDuration' => [
'threshold' => 300, // 5 minutes
],
'cpTrigger' => [],
'defaultDirMode' => [
'canFail' => true,
'threshold' => 0775,
],
'defaultFileMode' => [
'canFail' => true,
'threshold' => 0664,
],
'defaultTokenDuration' => [
'canFail' => true,
'threshold' => 86400, // 1 day
],
'deferPublicRegistrationPassword' => [],
'devMode' => [
'forceFail' => true,
],
'elevatedSessionDuration' => [
'canFail' => true,
'threshold' => 300, // 5 minutes
],
'enableCsrfProtection' => [
'canFail' => true,
],
'invalidLoginWindowDuration' => [
'threshold' => 3600, // 1 hour
],
'maxInvalidLogins' => [
'canFail' => true,
'threshold' => 5,
],
'preventUserEnumeration' => [
'canFail' => true,
],
'rememberedUserSessionDuration' => [
'threshold' => 1209600, // 14 days
],
'requireMatchingUserAgentForSession' => [],
'requireUserAgentAndIpForSession' => [],
'sanitizeSvgUploads' => [
'canFail' => true,
],
'testToEmailAddress' => [
'canFail' => true,
],
'translationDebugOutput' => [
'canFail' => true,
],
'userSessionDuration' => [
'canFail' => true,
'threshold' => 3600, // 1 hour
],
'useSecureCookies' => [
'canFail' => true,
],
'verificationCodeDuration' => [
'canFail' => true,
'threshold' => 86400, // 1 day
],
*/
],
];