Open wSedlacek opened 7 hours ago
After looking at some code I believe TLS
could be configured here:
https://github.com/pulumi/pulumi-docker-build/blob/7479f9f2a54d31aae4f8d945629e0f40a3f920e5/provider/internal/cli.go#L150
Example from regctl tests: https://github.com/regclient/regclient/blob/5fbf76c4f6bbab7d622c0ba6ee509a786b9c4363/config/host_test.go#L251
The problem would be how to know if TLS should be enabled or not there?
Would it be reasonable to add insecure
to the registries
and map that through to this point?
Or should there be some logic with the outputs/inputs looking for the exports[].registry.insecure
key?
What happened?
Pushing a
dockerBuild.Image
to a registry is possible usingexports: [ { registry: { insecure: true } } ]
But when usingrefresh
ordockerBuild.Index
an https client is always attempted to be used with no configuration for insecure registries.Example
Output of
pulumi about
Additional context
(Note: I use
pnpm
sopackage-lock.json or yarn.lock
do not exist)Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).