FluxCD Helm Repository - chart pull error: 401
Objective: Many of us used Flux CD helm repository and helm release with open repository on which anonymous access was allowed, but when we are using the authentication-enabled repository, it's difficult to fix helm release. In my organization, we use JFrog Artifactory and we enabled authentication for all the repos. So I prepared the helm release and helm repository with an authentication-enabled method. Simple helm repository with credential got this error chart pull error: failed to download chart for remote reference: failed to fetch https://repo.ops.homelab.com/artifactory/dcops-helm-repo/keda-2.16.1.tgz : 401 apiVersion: source.toolkit.fluxcd.io/v1 kind: HelmRepository metadata: name: dcops-helm-repo namespace: flux-system spec: interval: 15m provider: generic passCredentials: true #fix url: "https://repo.ops.homelab.com/artifactory/helm-repo" secretRef: name: artifact-credential

Objective: Many of us used Flux CD helm repository and helm release with open repository on which anonymous access was allowed, but when we are using the authentication-enabled repository, it's difficult to fix helm release.
In my organization, we use JFrog Artifactory and we enabled authentication for all the repos. So I prepared the helm release and helm repository with an authentication-enabled method.
Simple helm repository with credential got this error
chart pull error: failed to download chart for remote reference: failed to fetch https://repo.ops.homelab.com/artifactory/dcops-helm-repo/keda-2.16.1.tgz : 401
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: dcops-helm-repo
namespace: flux-system
spec:
interval: 15m
provider: generic
passCredentials: true #fix
url: "https://repo.ops.homelab.com/artifactory/helm-repo"
secretRef:
name: artifact-credential