-
Notifications
You must be signed in to change notification settings - Fork 10
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
Running with Azureite in Https mode? #28
Comments
Any feedback on this?. I have the same error :( |
Hi @richardjharding / @richard-leon-130524 , We don't support running Azurite in HTTPs mode today. I would like to know more about your topology and understand if it's blocking your use cases. Could you please elaborate more? |
The reason for preferring to run azurite in https mode is that where possible we want to make use of the Azure Default Credentials to make the code portable from developing locally to then running in azure with a managed identity. The ideal would be if we could also connect to the event hub emulator in the same way by passing just the host and default credential as we do when developing against the real event hub in azure |
Exact same use case as @richardjharding today. When running Azurite under HTTPS+OAuth, you could use this: var fullyQualifiedEndpoint = new Uri("https://127.0.0.1:10000/devstoreaccount1/blobcontainername"/*example value, different when deployed*/);
var blobClient = new BlobContainerClient(fullyQualifiedEndpoint, new DefaultAzureCredential());
blobClient.CreateIfNotExists(); That would work in both scenarios with local and cloud environment. You just have to configure the endpoint of the storage. But currently you can't have a way to make eventhub-emulator work with such resource (because of no OAuth and HTTPS support).
I'm stuck looking at this list trying to consider what is the best option... |
@victor-malod-se For Option 4 : Spinning up an isolated instance of Azurite container specifically for Emulator Azurite With Custom Endpoints Docker Compose and not reusing same within client code would mitigate the the need for code changes around AzureBlob connections. EH Client will be connection string based given the current capabilities of the Emulator ; and will still require test code bifurcation when using Managed Identities. @Saglodha for visibility : "Feature Request : Managed identity support for EH Emulator." |
Is it possible to have the azureite container run in https enabled mode (by supplying key files via volume mount)
when I tried I observed the following in the logs
I assume this is as the azureite connection is fixed to use HTTP? - can it be overridden somehow?
It would make it easier to use the single azureite container for multiple purposes
The text was updated successfully, but these errors were encountered: