<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6150</bug_id>
          
          <creation_ts>2014-04-10 16:38:46 +0000</creation_ts>
          <short_desc>SVN fetching trusts certificates by default</short_desc>
          <delta_ts>2026-10-01 15:48:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>configuration</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>  </status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zoltan Kuscsik">zoltan.kuscsik</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>ankur.tyagi85</cc>
    
    <cc>pavel</cc>
    
    <cc>pokylinux</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>42556</commentid>
    <comment_count>0</comment_count>
    <who name="Zoltan Kuscsik">zoltan.kuscsik</who>
    <bug_when>2014-04-10 16:38:46 +0000</bug_when>
    <thetext>Default configuration for SVN fetching always trusts the server certificate:

meta/conf/bitbake.conf


This introduces some risks when using bitbake in a secure environment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42625</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-04-13 20:33:20 +0000</bug_when>
    <thetext>This has been the case for a long time, users tend to find it a pain to need to verify certificates for all svn urls. The user or distro can override the options from bitbake.conf for &quot;secure&quot; setups should that be necessary. I can&apos;t see a pressing need to change this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42628</commentid>
    <comment_count>2</comment_count>
    <who name="Zoltan Kuscsik">zoltan.kuscsik</who>
    <bug_when>2014-04-13 21:25:35 +0000</bug_when>
    <thetext>My view is that the current configuration should not be used in any build configuration where security is a concern. There are many situations where user don&apos;t need or don&apos;t care about downloading the source code securely, however, having this as a default configuration creates a false sense of security.

Without certificate verification an attacker could replace code sequences that will be built in to the target system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42818</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-04-22 15:05:06 +0000</bug_when>
    <thetext>I still don&apos;t see this to be a high priority issue however if you want to take it on and make it happen I have no objection, up to you really.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56671</commentid>
    <comment_count>4</comment_count>
    <who name="Zoltan Kuscsik">zoltan.kuscsik</who>
    <bug_when>2015-11-20 05:39:44 +0000</bug_when>
    <thetext>I suggest to make it a warning. Sent a patch to the mailing list.

//Zoli</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86102</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-01-23 16:18:05 +0000</bug_when>
    <thetext>We still do:
         ud.basecmd = d.getVar(&quot;FETCHCMD_svn&quot;) or &quot;/usr/bin/env svn --non-interactive --trust-server-cert&quot;
in lib/bb/fetch2/svn.py</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86105</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-01-23 16:40:35 +0000</bug_when>
    <thetext>FYI, the patch is here:
  http://lists.openembedded.org/pipermail/bitbake-devel/2015-November/016452.html

Zoltan, can you resend? If not, I&apos;ll get someone to test and submit the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92419</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-01-27 16:09:31 +0000</bug_when>
    <thetext>Can we just drop the option from the commandline?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>