<?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>9457</bug_id>
          
          <creation_ts>2016-04-13 13:52:38 +0000</creation_ts>
          <short_desc>patchtest: document deployment with isolation features</short_desc>
          <delta_ts>2017-12-06 16:52:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Patchwork/Patchtest</product>
          <component>Patchtest</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>anibal.limon</cc>
    
    <cc>bluelightning</cc>
    
    <cc>mariano.lopez</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61152</commentid>
    <comment_count>0</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-04-13 13:52:38 +0000</bug_when>
    <thetext>patchtest can take malicious patches and in the testing/execution phase, these may do some damage on the system that patchtest is running.  The framework should either work in isolation (container?) or find a way to detect malicious patches before processing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62960</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-06-14 14:07:57 +0000</bug_when>
    <thetext>This work is in progress and should be finished early 2.2M2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63208</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-06-21 16:59:47 +0000</bug_when>
    <thetext>Moving back to M1. Any change on milestone must be discussed previously with the CCB.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65392</commentid>
    <comment_count>3</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-08-22 15:43:39 +0000</bug_when>
    <thetext>Current proposal is being reviewed internally, so moving the bug&apos;s status.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65640</commentid>
    <comment_count>4</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-08-31 14:41:46 +0000</bug_when>
    <thetext>The approach suggested to isolate the patchtest execution was the following: a qemu machine as VM, launched with arguments  indicating a common share folder (virtualized with virtFS) previously populated with all required data: repos and mboxes. Once launched, the machine will automatically execute patchtest and created a folder with results. Once all mboxes are tested, the machine will shutdown; host would parse the output folder and post results. 

Moving to In Progress Implementation because the qemu machine is not yet ready. What is missing is a custom layer containing two main things: a init script (to launch the execution and shutdown) and required recipes/packages for the final image.

The above approach was considered secured enough so this allows to expose patchtest and patchtest-oe code **once** the qemu machine is ready.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66146</commentid>
    <comment_count>5</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-09-14 16:14:56 +0000</bug_when>
    <thetext>Documentation/code being reviewed internally (security team) before it can go public.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66886</commentid>
    <comment_count>6</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-10-04 19:26:18 +0000</bug_when>
    <thetext>The security team has fully approved the approach taken to isolate patchtest, so the source code (both patchtest and patchtest-oe) can go public.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>