buildpacks / pack

CLI for building apps using Cloud Native Buildpacks
https://buildpacks.io
Apache License 2.0
2.53k stars 285 forks source link

Support Insecure Registries #1916

Open dlion opened 11 months ago

dlion commented 11 months ago

I'm opening this issue to track the work that needs to be done on pack to enable the support for insecure registries.

Sample Command

pack build test_img --path apps/test-app --insecure-registry=insecure.host --builder insecure.host/my-builder 

Dependencies

Once this PR is merged the work on this issue can be started

Main tracking issue: https://github.com/buildpacks/rfcs/issues/246

jjbustamante commented 11 months ago

Waiting for https://github.com/buildpacks/lifecycle/pull/1140

jjbustamante commented 9 months ago

We need to wait for platform 0.13 to work on this

jjbustamante commented 7 months ago

We reviewed the Platform 0.13 scope yesterday during our WG meeting, I think we will unblock this issue soon

natalieparellano commented 7 months ago

It should be possible to work on this one already - though there isn't a released lifecycle that supports it, we should be able to verify that the flag is passed all the way down from the command line invocation to the "lifecycle execution"

natalieparellano commented 7 months ago

Adding a few notes here in case that makes it easier to pick up:

Questions:

cc @jjbustamante

jjbustamante commented 7 months ago

Thank you very much @natalieparellano, all those hints are great for new contributors.

Questions: Do we need to add warnings anywhere when insecure registry options are provided?

I will say Yes, using an insecure registry is probably something just for development and it is valuable to add some warnings

jjbustamante commented 6 months ago

@prashantrewar what about this one? do you want to give it a try?

prashantrewar commented 6 months ago

@prashantrewar what about this one? do you want to give it a try?

Sure, I will try.

Thank you so much @jjbustamante

prashantrewar commented 6 months ago

/assign

prashantrewar commented 6 months ago

Hey @jjbustamante and @natalieparellano I have a question related to image.NewFetcher.

pkg/client/client.go

How should I pass the insecureRegistries values to the client?

prashantrewar commented 6 months ago

@natalieparellano, could you please describe me more on the [rebase] (https://github.com/buildpacks/pack/blob/8ed450d44de15cefe5875c22ae87293cc625e69d/pkg/client/rebase.go#L116) about what changes are you expecting?

jjbustamante commented 6 months ago

hi @prashantrewar!

I think for the rebase we need the following:

prashantrewar commented 6 months ago

Hey, @jjbustamante and @natalieparellano I created a PR on this issue. Could you please take a look and suggest any changes if required?

Thank you for the help.