summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2020-08-07 00:59:52 +0100
committerBen Hutchings <ben.hutchings@codethink.co.uk>2020-08-12 14:34:26 +0100
commitbdfa301998218e879281de58e1ab8097d34d6f08 (patch)
tree7fbb7f8588fad90e40870fa9e3231a18b22ad702 /README.md
parente24858ad11582082f0a329650325c1f8b0fda277 (diff)
downloadlorry-bdfa301998218e879281de58e1ab8097d34d6f08.tar.gz
lorry: Enable TLS server certificate validation by default
Lorry is not only used in Baserock, and it's reasonable to assume that there is normally a useful CA certificate store available. It's also no longer common for open source projects to avoid the "CA cartel" by using self-signed or CAcert certificates. * Enable validation by default for Bazaar, Git, and Mercurial * Add a configuration option to disable it * Add and document a .lorry keyword to disable it We already validate server certificates for file downloads since the Python standard library enabled it by default. We also never disabled validation for Subversion. Since this seems to have worked OK, don't add the option to disable it for these upstream types. Closes #9.
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index a5845f3..a3e4905 100644
--- a/README.md
+++ b/README.md
@@ -98,6 +98,12 @@ all of them will be processed by lorry. The following shows two repositories.
Lorry can import other version control systems into git.
+When the URL uses the `https:` scheme, Lorry will validate the SSL/TLS
+server certificate by default. If necessary, this can be disabled for
+a Bazaar, Git, and Mercurial server by adding the key:
+
+ "check-certificates": false
+
### Mercurial
Mercurial is very similar to git, just change the type field to "hg"