Bug 15299 - Unable to fetch sstate from Azure blob while SAS token is needed
Summary: Unable to fetch sstate from Azure blob while SAS token is needed
Status: NEW
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 6.1
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2023-11-28 00:30 UTC by Marcin Bajer
Modified: 2026-03-19 01:05 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Proposed patch (706 bytes, patch)
2023-11-28 00:44 UTC, Marcin Bajer
no flags Details | Diff
Patch generated with commit description (1.46 KB, patch)
2023-11-28 00:55 UTC, Marcin Bajer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Bajer 2023-11-28 00:30:27 UTC
Commit 89ccf603d8119c34f5398dbd737e6a0b805234d3 of Poky (https://github.com/yoctoproject/poky/commit/89ccf603d8119c34f5398dbd737e6a0b805234d3) removes all not needed elements from URI in checkstatus method. This breaks az.py fetcher in case of using SAS authenicated access. To check if blob exists SAS token needs to be adds to URL (https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview#sas-token)
Comment 1 Marcin Bajer 2023-11-28 00:44:59 UTC
Created attachment 4990 [details]
Proposed patch
Comment 2 Marcin Bajer 2023-11-28 00:55:20 UTC
Created attachment 4991 [details]
Patch generated with commit description
Comment 3 Randy MacLeod 2023-11-30 15:35:38 UTC
Can you send the attached patch to the appropriate email list?
If there isn't testing there already, can you add a test please?
Comment 4 Randy MacLeod 2024-01-11 15:51:16 UTC
Seems like a real bug but we need to investigate since there seems to be conflicting requirements about the URL.

Marcin, if you want to get the ball rolling, please send a patch to the oe-core list.

Moving to unassigned since Marcin did not reply yet.
Comment 5 Randy MacLeod 2024-01-11 15:52:37 UTC
Move to New state.
Comment 6 Randy MacLeod 2024-04-25 01:23:52 UTC
Build move to 5.1
Comment 7 Randy MacLeod 2025-05-01 14:07:06 UTC
Bulk move of all unassigned 5.2 medium importance bugs to 5.3.
Comment 8 Randy MacLeod 2026-03-19 01:05:33 UTC
Bumping to 6.1.
Marcin, I assume this is still broken. 
If not please say so and ideally provide a link to the fix commit.