-
Notifications
You must be signed in to change notification settings - Fork 140
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
validate_certs=no not work in helm module #694
Comments
I get the same error with the helm module when referencing a self hosted harbor registry in our test environment. I interpret this to be the connection to the k8s API only, not any other resources connected to via helm or k8s. Retrying the commands ansible logs on the server directly does indeed show, that helm tries to contact the oci address without any 'insecure' flags. Example: helm show chart 'oci://<url>/repo' results in: Error: failed to do request: Head "https://<url>/v2/<path>/manifests/<tag>": tls: failed to verify certificate: x509: certificate signed by unknown authority Which is the expected behaviour. I would rather mark this thread as feature request, as you cannot set the Doing this would result in the following: helm show chart 'oci://<url>/repor' --insecure-skip-tls-verify output: Pulled: <url>/repo:tag
Digest: sha256:xxxxxxxxxxxxxxxxx
apiVersion: xx
appVersion: xxxx
description: xxxxxxxxxxxxx
name: xxxxxx
type: application EDIT: Looking at the code, I would be happy to supply a pull request, as it seems quite easy to integrate on first glance, however for this I would need some time. Let me know, if I can help. |
@noahlehmann If you would like to submit a PR, we can review it. Thanks for being willing to contribute to this collection! |
@gravesm, will do, thanks for the reply. Would appreciate your advise, this would be my first contribution. |
With 4 files, I would just bundle those changes into one PR. They're all addressing the same issue and it shouldn't be too big. |
Currently have a finished implementation for review done, but will need to wait for helm diff upstream issue to be resolved and merged. Will add the PR as draft if this helps for first feedback @gravesm. For anyone stumbling upon this add the self signed cert of the repo to the trusted certs of the host running the helm tasks for now, e.g. in ubuntu: cp self-signed.crt /usr/local/share/ca-certificates
update-ca-certificates Might be the safer solution anyways. |
SUMMARY
install oci chart from our self-built harbor registry with
validate_certs=no
, but show erros.It is success to use helm cli directly with
--insecure-skip-tls-verify
ISSUE TYPE
COMPONENT NAME
helm module
ANSIBLE VERSION
COLLECTION VERSION
The text was updated successfully, but these errors were encountered: