argo-cd: Argocd app diff failing with the URL scheme 'secrets' is not allowed

Checklist:

  • I’ve searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I’ve included steps to reproduce the bug.
  • I’ve pasted the output of argocd version.

Describe the bug I have configured my helm.valuesFilesSchemes.

    helm.valuesFileSchemes: http, https, secrets

However, when I run argocd app diff with the application that has a secrets://values.yaml valuesfile, it fails with the error the URL scheme 'secrets' is not allowed. The application works however, if deployed. But diff fails To Reproduce

  • configure helm.valuesFilesSchemes to allow secrets
  • Create an argocd helm application that references a values file using secrets://<values-file>
  • Run argocd app diff <app-name> --local . --local-repo-root . Expected behavior

Screenshots

Version

argocd: v2.3.3+07ac038.dirty
  BuildDate: 2022-03-30T05:20:18Z
  GitCommit: 07ac038a8f97a93b401e824550f0505400a8c84e
  GitTreeState: dirty
  GoVersion: go1.18
  Compiler: gc
  Platform: darwin/amd64
argocd-server: v2.3.3+07ac038
  BuildDate: 2022-03-30T00:06:18Z
  GitCommit: 07ac038a8f97a93b401e824550f0505400a8c84e
  GitTreeState: clean
  GoVersion: go1.17.6
  Compiler: gc
  Platform: linux/amd64
  Ksonnet Version: v0.13.1
  Kustomize Version: v4.4.1 2021-11-11T23:36:27Z
  Helm Version: v3.8.0+gd141386
  Kubectl Version: v0.23.1
  Jsonnet Version: v0.18.0

Logs

Paste any relevant application logs here.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 21 (12 by maintainers)

Most upvoted comments

Hi, I updated ArgoCD to 5.14.1 and added config: helm.valuesFileSchemes: http, https, secrets and issue seems to be resolved.

Reopening this issue as it appear to still persists. I’ve not tested this because I no longer use sops secrets. I thought following the release of serverside generated manifests it would resolve this issue, but it seems still pending.

Hello, I have the same issue with and without the --server-side flag. Running 2.5.2 server and client.

argocd: v2.5.2+unknown
  BuildDate: 2022-11-09T22:25:07Z
  GitCommit: 
  GitTreeState: 
  GitTag: 2.5.2
  GoVersion: go1.19.3
  Compiler: gc
  Platform: linux/amd64
argocd-server: v2.5.2+148d8da
  BuildDate: 2022-11-07T16:42:47Z
  GitCommit: 148d8da7a996f6c9f4d102fdd8e688c2ff3fd8c7
  GitTreeState: clean
  GoVersion: go1.18.8
  Compiler: gc
  Platform: linux/amd64
  Kustomize Version: v4.5.7 2022-08-02T16:35:54Z
  Helm Version: v3.10.1+g9f88ccb
  Kubectl Version: v0.24.2
  Jsonnet Version: v0.18.0