-
Notifications
You must be signed in to change notification settings - Fork 172
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
unable to create a zarf package containing images from a registry with a self-signed certificate #1015
Labels
Comments
May relate to #561 |
This was referenced Jan 9, 2023
rishi-anand
added a commit
to spectrocloud/zarf
that referenced
this issue
Jan 12, 2023
6 tasks
jeff-mccoy
added a commit
that referenced
this issue
Feb 2, 2023
Migrated from #1191 ## Description Adding support for insecure flag for external registry in `zarf init`. Fixing `zarf package create` and `zarf package deploy` failures with external self signed cert registry as mentioned in #1190 and #1181 ## Related Issue Fixes # #1190 Fixes # #1181 Fixes # #561 Fixes # #1015 --------- Co-authored-by: Rishi <[email protected]>
Fixed in #1280 |
github-project-automation
bot
moved this from New Requests
to Done
in Zarf Project Board
Feb 13, 2023
Noxsios
pushed a commit
that referenced
this issue
Mar 8, 2023
Migrated from #1191 ## Description Adding support for insecure flag for external registry in `zarf init`. Fixing `zarf package create` and `zarf package deploy` failures with external self signed cert registry as mentioned in #1190 and #1181 ## Related Issue Fixes # #1190 Fixes # #1181 Fixes # #561 Fixes # #1015 --------- Co-authored-by: Rishi <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
We are attempting to package a helm chart which uses an image from a private internal docker registry. The registry is configured with a self-signed cert. Our local development environments are configured to properly trust and verify the cert, we are able to interact with the registry using (secure) docker commands.
Error Case
zarf package create
fails to pull images -- even when using the--insecure
flag.This may also impact genuinely insecure registries (configured entirely without https), though that is untested.
Environment
Device and OS: MacOS, Ubuntu22.04
Zarf version:
v0.22.2
Steps to reproduce
Run
zarf package create --insecure -l trace
on a package containing an image from a registry with an unverified or otherwise invalid cert.Expected result
Zarf/Crane will bypass any certificate validation errors while pulling images due to the
--insecure
flag, resulting in a successful zarf package creation..Actual Results
MacOS:
On MacOS, I believe this specific error is related to a golang issue involving a change to the crypto package. Additional testing indicated this was not the root of the problem -- to validate, we also tested on Ubuntu, shown below.
Ubuntu22.04:
Similarly on Ubuntu, if we eliminate the hostname matching altogether and attempt to pull from the server IP, we see the following despite using the
--insecure
flag:The text was updated successfully, but these errors were encountered: