summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/config.rst11
-rw-r--r--doc/source/encryption.rst2
-rw-r--r--doc/source/features.rst15
3 files changed, 27 insertions, 1 deletions
diff --git a/doc/source/config.rst b/doc/source/config.rst
index e209ecb..d89d7f5 100644
--- a/doc/source/config.rst
+++ b/doc/source/config.rst
@@ -202,6 +202,17 @@ to explicitly whitelist some `stream wrappers <https://secure.php.net/manual/en/
202 sp.wrappers_whitelist.list("file,php,phar"); 202 sp.wrappers_whitelist.list("file,php,phar");
203 203
204 204
205Mandatory certificates validation
206^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
207
208:ref:`Mandatory certificate validation <mandatory-cert-validation>` ensures
209that it's not possible to turn off certificate validation for `cURL usage <https://secure.php.net/manual/en/book.curl.php>`__.
210
211::
212
213 sp.curl_verify_certificates.enable();
214
215
205Eval white and blacklist 216Eval white and blacklist
206^^^^^^^^^^^^^^^^^^^^^^^^ 217^^^^^^^^^^^^^^^^^^^^^^^^
207 218
diff --git a/doc/source/encryption.rst b/doc/source/encryption.rst
index dc5dadf..23f36b4 100644
--- a/doc/source/encryption.rst
+++ b/doc/source/encryption.rst
@@ -4,7 +4,7 @@ Cookies
4======= 4=======
5 5
6Some cookies-related features might prevent other extensions from hooking 6Some cookies-related features might prevent other extensions from hooking
7the `setcookie<https://secure.php.net/manual/en/function.setcookie.php>`__ 7the `setcookie <https://secure.php.net/manual/en/function.setcookie.php>`__
8function. Pay attention to the loading order of your extensions in this case. 8function. Pay attention to the loading order of your extensions in this case.
9 9
10auto_cookie_secure 10auto_cookie_secure
diff --git a/doc/source/features.rst b/doc/source/features.rst
index 540e982..f676468 100644
--- a/doc/source/features.rst
+++ b/doc/source/features.rst
@@ -344,6 +344,21 @@ Snuffleupagus can prevent the execution of this kind of file. A good practice
344would be to use a different user to run PHP than for administrating the website, 344would be to use a different user to run PHP than for administrating the website,
345and using this feature to lock this up. 345and using this feature to lock this up.
346 346
347
348.. _mandatory-cert-validation:
349
350Mandatory certificates validation
351^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
352
353It's a common practise to disable `certificate validation <https://en.wikipedia.org/wiki/Transport_Layer_Security>`__
354during development for convenience's sake. Unfortunately, it's equally common
355to forget to turn it back on.
356
357Snuffleupagus can prevent php code from turning off certificate validation
358for anything `cURL <https://secure.php.net/manual/en/book.curl.php>`__-based.
359
360
361
347.. _stream-wrapper-whitelist-feature: 362.. _stream-wrapper-whitelist-feature:
348 363
349Whitelist of stream-wrappers 364Whitelist of stream-wrappers