Skip to content

Software: with Azure Blob Storage misconfigured, adding a package shows the raw Azure SDK errorΒ #57329

Open

Description

@Brajim20

Fleet versions

  • 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.
  1. 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).
  2. Software β†’ Add software β†’ Custom package β†’ upload any .pkg β†’ Add software.

πŸ•―οΈ More info (optional)

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).

Activity

  1. added this to the 4.95.0 milestone on Nov 2, 2026
  2. added
    bug
    ~unreleased bug
    #g-auto-patching
    on Nov 2, 2026
  3. moved this from πŸ“¨ Inbox to πŸ₯š Ready in β€οΈβ€πŸ©Ή #g-auto-patchingon Nov 2, 2026
  4. cdcme commented on Nov 3, 2026

    @cdcme
    Member

    @marko-lisica Do we want to pass through the error intentionally here, or do what's described above?

  5. moved this from πŸ₯š Ready to 🚧 Blocked in β€οΈβ€πŸ©Ή #g-auto-patchingon Nov 4, 2026
  6. marko-lisica commented on Nov 5, 2026

    @marko-lisica
    Member

    @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!

  7. alt-Rational commented on Nov 5, 2026

    @alt-Rational
    Contributor

    @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?

  8. marko-lisica commented on Nov 5, 2026

    @marko-lisica
    Member

    @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)

  9. moved this from 🚧 Blocked to 🐣 In progress in β€οΈβ€πŸ©Ή #g-auto-patchingon Nov 9, 2026
  10. moved this from 🐣 In progress to πŸ₯ Ready for review in β€οΈβ€πŸ©Ή #g-auto-patchingon Nov 9, 2026
  11. modified the milestones: 4.95.0, 5.0.0 on Nov 9, 2026
  12. added a commit that references this issue on Nov 19, 2026
    555f592
  13. moved this from πŸ₯ Ready for review to βœ”οΈAwaiting QA in β€οΈβ€πŸ©Ή #g-auto-patchingon Nov 19, 2026
  14. Brajim20 commented on Nov 20, 2026

    @Brajim20
    MemberAuthor

    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 βœ… 404 "not found" βœ… unchanged, no "misconfigured" prefix
  15. moved this from βœ”οΈAwaiting QA to βœ… Ready for release in β€οΈβ€πŸ©Ή #g-auto-patchingon Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    #g-auto-patchingbug~unreleased bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions