Skip to contentSkip to conversation

fetch2/svn: Use server certificates going forward

PATCH New Richard Purdie 1 participant 1 message Feb 11

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fetch2/svn: Use server certificates going forward

In the past, broken SSL certificates were common on subversion servers. As such, the subversion fetcher used to ignore these issues.

Cert infrastructure has massively improved since that decision was made and things like self signed certificates should no longer be common place.

We should follow good security practises and not have this as a default anymore, remove the --trust-server-cert commandline option by default.

---
 lib/bb/fetch2/svn.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/fetch2/svn.py +1 -1
index 0852108e7d9..a097ffb76b5 100644
@@ -34,7 +34,7 @@ class Svn(FetchMethod):
         if not "module" in ud.parm:
             raise MissingParameterError('module', ud.url)
 
-        ud.basecmd = d.getVar("FETCHCMD_svn") or "/usr/bin/env svn --non-interactive --trust-server-cert"
+        ud.basecmd = d.getVar("FETCHCMD_svn") or "/usr/bin/env svn --non-interactive"
 
         ud.module = ud.parm["module"]