<?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>15384</bug_id>
          
          <creation_ts>2024-02-06 09:51:41 +0000</creation_ts>
          <short_desc>AWS_SESSION_TOKEN ignored by s3 fetcher</short_desc>
          <delta_ts>2024-02-19 16:53:03 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>All</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>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Toni Lammi">toni.lammi</reporter>
          <assigned_to name="Toni Lammi">toni.lammi</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>98140</commentid>
    <comment_count>0</comment_count>
    <who name="Toni Lammi">toni.lammi</who>
    <bug_when>2024-02-06 09:51:41 +0000</bug_when>
    <thetext>Fetching s3:// URLs does not work when passing credentials via environment variables if AWS is configured to use temporary AWS credentials.

With temporary credentials the environment variables include AWS_SESSION_TOKEN.
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html

This should be easily fixed by adding the variable in
FETCH_EXPORT_VARS in lib/bb/fetch2/__init__.py
https://git.openembedded.org/bitbake/tree/lib/bb/fetch2/__init__.py#n854

My guess is that this affects all bitbake versions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98156</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-02-08 15:34:41 +0000</bug_when>
    <thetext>Can you send a patch to the oe-core/bitbake email list?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98170</commentid>
    <comment_count>2</comment_count>
    <who name="Toni Lammi">toni.lammi</who>
    <bug_when>2024-02-09 08:10:07 +0000</bug_when>
    <thetext>(In reply to Randy MacLeod from comment #1)
&gt; Can you send a patch to the oe-core/bitbake email list?

Sure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98232</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2024-02-19 16:53:03 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/poky/commit/?id=e834e8ee91b844bce1c0723ea0e0f94691d44074</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>