dotnet / sdk-container-builds

Libraries and build tooling to create container images from .NET projects using MSBuild
https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container
MIT License
175 stars 30 forks source link

Support insecure registries with untrusted HTTPS certificates #576

Open baronfel opened 3 weeks ago

baronfel commented 3 weeks ago
          @baronfel when configuring a registry as insecure, both podman and docker allow the connection to be either unencrypted HTTP or HTTPS with an untrusted certificate.

The implementation added in https://github.com/dotnet/sdk/pull/39840 is only supporting the first.

Originally posted by @tmds in https://github.com/dotnet/sdk-container-builds/issues/571#issuecomment-2150252629

Our existing implementation should look at the configurations for both tools and configure the HttpClient instances to support the specific endpoints with untrusted certs.