-
Notifications
You must be signed in to change notification settings - Fork 111
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
Support insecure registries in non-daemon case #524
Comments
Discussion on Feb 11 - Attendees agree and an RFC will be produced to capture details. |
Another platform specific use case (Tekton) where this feature would be useful: buildpacks/tekton-integration#31 (comment) |
Any progress on this? Or is there a definite plan? Is there anything I can do? |
Thank you, @wanjunlei - at this point, I believe what we'd need to move forward is an RFC defining the user interface to the lifecycle (it could build off of @jromero's proposal above or be something different). Would you be interested in helping with that? If so, I'd be happy to help guide you through the process. You can find me as narellano in CNCF Slack for real-time conversation. |
I had created an RFC buildpacks/rfcs#229 @natalieparellano . |
Hi @natalieparellano , the RFC had merged, what do I need to do next, start coding or update the platform API? |
Hi @wanjunlei, the final implementation requires several updates in different repositories. the following The issues there are marked as to be done, so in my opinion you can start working on the lifecycle implementation, later we can work on creating and filling the issues on the other repositories. Also, you can create a draft PR in the spec repository and start collecting feedback there, once the issue is created in the spec repo you can link the PR to it. |
OK, I will start working on the lifecycle implementation first. |
Most of the work was already done in #1140 - but, we need to expose this functionality by declaring the lifecycle supports Platform 0.13 |
I'm going to close this one out as #1287 will likely add 0.13 to the list of supported Platform APIs. |
Summary
As a developer, I'd like to be able to publish app images to an "insecure" registry in the non-daemon case.
(NOTE: I mention non-daemon case because the daemon case is controlled/configured via Docker Desktop.)
Currently, this partly works in some local setups because GGCR attempts to detect protocol.
In my current development environment, it doesn't work because I'm routing to the registry from inside a container and thereby referencing it as
host.docker.internal
which doesn't match GGCR's logic.A potential solution may be to go to GGCR and request that
host.docker.internal
be added to their detection logic BUT it seems like this may be desirable in other scenarios. (See prior art).Proposed Solution
Since there are multiple images at play sometimes, instead of a single global flag
--insecure
(like kaniko) add a variadic flag + matching character separated env var for insecure registries.For example:
CNB_INSECURE_REGISTRIES="my-registry.com/here/;host.docker.internal" analyzer ...
Prior Art
The text was updated successfully, but these errors were encountered: