Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Blob Storage SDK - unable to set custom httpAgent #32288

Open
2 of 6 tasks
paulabazalgette-dayshape opened this issue Dec 18, 2024 · 1 comment
Open
2 of 6 tasks
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)

Comments

@paulabazalgette-dayshape
  • Package Name:@azure/storage-blob
  • Package Version: 12.26.0
  • Operating system:Windows
  • nodejs
    • version: 23.4.0
  • browser
    • name/version:
  • typescript
    • version:5.7.2
  • Is the bug related to documentation in

Describe the bug
In the development environment, we're using Azurite with self-signed certificate generated using mkcert as per azurite documentation. This works correctly with the .net SDK, however with the JS one, when listing the blobs the method fails with resterror: unable to verify the first certificate.
To get around I'd like to set up a custom agent with additional certificates similar to per stackoverflow article which uses enableGlobalHttpAgent.
Is that possible?

To Reproduce
Steps to reproduce the behavior:

  1. Setup Azurite with self-signed certificate
  2. Create a blob client with default credentials
const blobServiceClient = new BlobServiceClient("https://127.0.0.1:10001/devstoreaccount1", new AzureCliCredential());
const .containerClient = blobServiceClient.getContainerClient("test-container");
  1. List blobs
let blobList: BlobItem[] = [];
try {
    for await (const blob of this.containerClient.listBlobsFlat()) {
        blobList.push(blob);
    }
} catch (error: any) {
console.error("An error Occured: ", error.message);
}

Expected behavior
There should be a way to use the global agent and add new certs

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files) labels Dec 18, 2024
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

2 participants