Bug 15384

Summary: AWS_SESSION_TOKEN ignored by s3 fetcher
Product: [Build System, Metadata & Runtime] BitBake Reporter: Toni Lammi <toni.lammi>
Component: bitbakeAssignee: Toni Lammi <toni.lammi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, randy.macleod, richard.purdie
Version: unspecified   
Target Milestone: 5.0   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Toni Lammi 2024-02-06 09:51:41 UTC
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.
Comment 1 Randy MacLeod 2024-02-08 15:34:41 UTC
Can you send a patch to the oe-core/bitbake email list?
Comment 2 Toni Lammi 2024-02-09 08:10:07 UTC
(In reply to Randy MacLeod from comment #1)
> Can you send a patch to the oe-core/bitbake email list?

Sure.