You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Software: with Azure Blob Storage misconfigured, adding a package shows the raw Azure SDK errorΒ #57329
#g-auto-patchingProduct group focused on auto patching softwarebugSomething isn't working as documented~unreleased bugThis bug was found in an unreleased version of Fleet.
Discovered: main (e41c3c3), Azure Blob Storage via Azurite 3.35.0
Web browser and operating system: Chrome (Playwright) on macOS
π₯ Actual behavior
With Azure Blob Storage configured, if the account key is wrong or the container doesn't exist, adding a custom package fails with a 500 and the error message is the raw Azure SDK response: request URL, a dashed separator, the XML error body and the RequestId. The server starts normally in both cases, so this is the first sign of the misconfiguration.
With S3, the same mistake (a bucket that doesn't exist) returns api error NoSuchBucket: The specified bucket does not exist.
π οΈ Expected behavior
A short error that names the problem, like the S3 one (e.g. the container doesn't exist, or authentication failed).
@marko-lisica: let's be explicit and help user resolve the issue. Error:
Cloud storage is misconfigured. <error_from_vendor_sdk>
π§βπ» Steps to reproduce
These steps:
Have been confirmed to consistently lead to reproduction in multiple Fleet instances.
Describe the workflow that led to the error, but have not yet been reproduced in multiple Fleet instances.
Start Fleet Premium with cloud_storage.azure.files_account_name, files_account_key and files_container set, where the container doesn't exist (or the key is valid base64 but wrong).
Added in #53670 (story #54774). The Azure store wraps the SDK error as-is: server/datastore/azure/common_file_store.go (Put: "uploading software installer to Azure Blob store"; Exists: "checking existence of software installer in Azure Blob store"). A wrong key fails on Exists (403), a missing container on Put (404).
@marko-lisica Sure i can take care of that no worries :) Should i add the prefix only for Azure or add this change for S3 as well? Also i understood you want to have a more detailed error message that is "closer" to the vendor error to help the user/admin pinpoint the issue?
@alt-Rational I was thinking to have Fleet's prefix for both Azure and S3 + error from the vendor, e.g.
Cloud storage is misconfigured. Azure: api error AuthenticationFailed: Forbidden or
Cloud storage is misconfigured. S3: api error NoSuchBucket: The specified bucket does not exist
so anything after Azure: or S3: comes from the SDKs. This way user understands it's Cloud storage server config issue, and then can look at more details (e.g. bucket doesn't exist or auth error)
QA Pass β 8/8 checks on main (841e1cec) vs 4.95.0 RC (5790b6ca), on servers using Azure Blob Storage (Azurite) and S3 with a missing container/bucket or wrong credentials.
#
Type
Case
Pre-fix
Fixed
1
Core
Azure container doesn't exist, add a custom package (API)
β reproduced: raw SDK dump, 14 lines (request URL, XML body, RequestId)
β one line: Cloud storage is misconfigured. Azure: api error ContainerNotFound: The specified container does not exist. (container: does-not-exist)
2
Core
Azure account key is wrong
β reproduced: raw SDK dump, 8 lines
β Cloud storage is misconfigured. Azure: api error AuthorizationFailure: Forbidden (container: β¦)
3
Core
Software βΊ Add software βΊ Custom package with the container missing (UI)
β reproduced: toast shows the full dump
β toast shows the one-line message
4
Core
S3 bucket doesn't exist
β short message, no prefix
β Cloud storage is misconfigured. S3: api error NoSuchBucket: β¦ (bucket: β¦)
5
Core
S3 secret is wrong
β short message, no prefix
β Cloud storage is misconfigured. S3: api error Forbidden: Forbidden (bucket: β¦)
6
Halo
Download an existing package with the Azure key wrong
β raw SDK dump
β same one-line message
7
Regression
Valid Azure config: add, download, delete
β works
β unchanged
8
Regression
Installer file missing from the container, download
#g-auto-patchingProduct group focused on auto patching softwarebugSomething isn't working as documented~unreleased bugThis bug was found in an unreleased version of Fleet.
Activity
cdcme commentedon Nov 3, 2026
@marko-lisica Do we want to pass through the error intentionally here, or do what's described above?
marko-lisica commentedon Nov 5, 2026
@cdcme I added it under expected behavior. I thinke let's add prefix to these kinds of errors.
cc @alt-Rational I see you already followed up, so if you can add this prefix, would be great. Thanks!
alt-Rational commentedon Nov 5, 2026
@marko-lisica Sure i can take care of that no worries :) Should i add the prefix only for Azure or add this change for S3 as well? Also i understood you want to have a more detailed error message that is "closer" to the vendor error to help the user/admin pinpoint the issue?
marko-lisica commentedon Nov 5, 2026
@alt-Rational I was thinking to have Fleet's prefix for both Azure and S3 + error from the vendor, e.g.
Cloud storage is misconfigured. Azure: api error AuthenticationFailed: ForbiddenorCloud storage is misconfigured. S3: api error NoSuchBucket: The specified bucket does not existso anything after
Azure:orS3:comes from the SDKs. This way user understands it's Cloud storage server config issue, and then can look at more details (e.g. bucket doesn't exist or auth error)Unify S3 and Azure storage misconfiguration errors (#57623)
Brajim20 commentedon Nov 20, 2026
QA Pass β 8/8 checks on
main(841e1cec) vs 4.95.0 RC (5790b6ca), on servers using Azure Blob Storage (Azurite) and S3 with a missing container/bucket or wrong credentials.Cloud storage is misconfigured. Azure: api error ContainerNotFound: The specified container does not exist. (container: does-not-exist)Cloud storage is misconfigured. Azure: api error AuthorizationFailure: Forbidden (container: β¦)Cloud storage is misconfigured. S3: api error NoSuchBucket: β¦ (bucket: β¦)Cloud storage is misconfigured. S3: api error Forbidden: Forbidden (bucket: β¦)