argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.22k stars 5.23k forks source link

Not able to add helm enable OCI Private repo through Argocd GUI as well as through command line #19086

Open nehasikarwar01 opened 1 month ago

nehasikarwar01 commented 1 month ago

Not able to add helm enable OCI Private repo through Argocd GUI as well as through command line using below cmd. I have checled the correct certificate is in place.

argocd repo add registry-rat.xyz.com --type helm --name reponame --enable-oci --username 'XYZ' --password 'XYZ ==> Failed

I am able to add Private repo through argocd command by passing Flag --insecure-skip-server-verification but App deployment failed using this repo with below error

argocd repo add registry-rat.xyz.com --type helm --name reponame --enable-oci --username 'XYZ' --password 'XYZ' --insecure-skip-server-verification

ERROR

Unable to create application: application spec for reponame is invalid: InvalidSpecError: repository not accessible: repositories not accessible: &Repository{Repo: "registry-rat.xyz.com", Type: "helm", Name: "oci", Project: ""}: repo client error while testing repository: rpc error: code = Unknown desc = error testing repository connectivity: helm registry login registry-rat.xyz.com --username ** --password ** --insecure failed exit status 1: WARNING: Using --password ** the CLI is insecure. Use --password-stdin. Error: Get " https://registry-rat.xyz.com/v2/": unauthorized: authentication required

nehasikarwar01 commented 1 month ago

Hi Team, Any update on it

nehasikarwar01 commented 1 month ago

with helm i am able to login harbor repo helm registry login xyz.harbor.vodafone.com --username 'XYZusername' --password 'XYZpassword' WARNING: Using --password via the CLI is insecure. Use --password-stdin. Login Succeeded

while adding private repo argocd repo add XYZ.harbor.vodafone.com --type helm --name ocihelm123 --enable-oci --username 'XYZusername' --password 'XYZPassword' FATA[0000] rpc error: code = Unknown desc = error testing repository connectivity: helm registry login XYZ.harbor.vodafone.com --username ****** --password ****** failed exit status 1: WARNING: Using --password ** the CLI is insecure. Use --password-stdin. time="2024-07-17T09:16:00Z" level=info msg="Error logging in to endpoint, trying next endpoint" error="Get \"https://registry-rat.prd.harbor.vodafone.com/v2/\": tls: failed to verify certificate: x509: certificate signed by unknown authority" Error: Get "https://XYZ.harbor.vodafone.com/v2/": tls: failed to verify certificate: x509: certificate signed by unknown authority

nehasikarwar01 commented 1 month ago

Hi Team.. Any Update on this