You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terraform version: v1.9.8
Provider version: tested with both 3.0.0-pre1 and 2.17.0
Kubernetes version: v1.32
Affected Resource(s)
resource_helm_release
data_helm_template
Terraform Configuration Files
# we do not need to use any configurations for the helm provider for this exampledata"helm_template""argocd" {
name="argocd"namespace="argocd"chart="argo-cd"version="7.8.0"kube_version=data.aws_eks_cluster.cluster.versionrepository="oci://<self-hosted registry with self-signed cert>/argoproj/argo-helm"repository_username="<username>"repository_password="<password>"repository_ca_file=local_file.self_signed_certificate.filename
}
resource"local_file""self_signed_certificate" {
content="<content of self-signed certificate>"filename="${path.root}/.terraform/self-signed-cert"
}
Fails with the error message
Failed to log in to OCI registry
"oci://<self-hosted registry with self-signed cert>/argoproj/argo-helm":
could not login to OCI registry
"<self-hosted registry with self-signed cert>": Get "https://gdis-docker-virtual.artifact-repository.generali-gruppe.de/v2/": tls: failed to verify certificate: x509: certificate signed by unknown authority}
Steps to Reproduce
replace the placeholder <self-hosted registry with self-signed cert> with the URL of a self-hosted registry with a self-signed certificate
replace the placeholder <content of self-signed certificate> with the content of the self-signed certificate
terraform apply
Expected Behavior
the self-signed certificate provided with the repository_ca_file variable is used in all relevant helm actions, including the registry login
Actual Behavior
certificate error occurs during registry login
from examining the code in data_helm_template.go the self-signed certificate provided with the repository_ca_file is not used for the registry login step (function call OCIRegistryLogin)
Important Factoids
This is a lack of feature parity to the Helm CLI which supports this through the --ca-file option
Terraform, Provider, Kubernetes and Helm Versions
Affected Resource(s)
Terraform Configuration Files
Fails with the error message
Steps to Reproduce
replace the placeholder <self-hosted registry with self-signed cert> with the URL of a self-hosted registry with a self-signed certificate
replace the placeholder <content of self-signed certificate> with the content of the self-signed certificate
terraform apply
Expected Behavior
repository_ca_file
variable is used in all relevant helm actions, including the registry loginActual Behavior
data_helm_template.go
the self-signed certificate provided with therepository_ca_file
is not used for the registry login step (function call OCIRegistryLogin)Important Factoids
This is a lack of feature parity to the Helm CLI which supports this through the
--ca-file
optionCommunity Note
The text was updated successfully, but these errors were encountered: