Is there built-in support for enabling SSL on Azure Container Instances?

喜欢而已 提交于 2020-06-10 02:55:06

问题


Is there built-in support for enabling SSL on Azure Container Instances? If not, can we hook up to SSL providers like Lets Encrypt?


回答1:


There is nothing built-in today. You need to load the certs into the container and terminate SSL there. Soon, we will enable support for ACI containers to join an Azure virtual network, at which point you could front your containers with Azure Application Gateway and terminate SSL there.




回答2:


As said above, no support today for built-in SSL when using ACI. I'm using Azure Application Gateway to publish my container endpoint using the HTTP-to-HTTPS bridge. This way, App Gateway needs a regular HTTPS cert (and you can use whichever model works best for you as long as you can introduce a .PFX file during provisioning or later during configuratiorn) and it will then use HTTP to talk to your (internally facing) ACI-based container. This approach becomes more secure if you bind your ACI-based container to a VNET and restrict traffic from elsewhere.

To use SSL within the ACI-container you'd need to introduce your certification while provisioning the container, and then somehow automate certificate expiration and renewal. As this is not supported in a reasonable way, I chose to use the App Gateway to resolve this. You could also use API Management but that is obviously slightly more expensive and introduces a lot more moving parts.

I blogged about this configuration here and the repo with provisioning scripts is here.




回答3:


You can add SSL support at the API Gateway and simply configure the underlying API over HTTP.

You will need the secrete key to execute above api method!

You can access the underlying API hosted at the Azure Container Instance. This method does not require jwt token as this is a demo api.



来源:https://stackoverflow.com/questions/47259584/is-there-built-in-support-for-enabling-ssl-on-azure-container-instances

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!