Skip to content

Offline install not working in helm 4 unless you --verify=false #1071

Closed

Description

@matthew-pakulski

Steps to reproduce:

# Optional, run test in a container
docker run --rm -it -w /root/test redhat/ubi9
# in clean container environment

# 1. Install helm (and git, required by helm for plugin verification)
dnf -y install git
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-4 | bash

# 2. Download and create gpg keyring from databus23.gpg
curl -fsSL https://github.com/databus23.gpg | gpg --dearmor > helm-diff-keyring.gpg

# 3. Download tar and prov
curl -LO https://github.com/databus23/helm-diff/releases/download/v3.15.13/helm-diff-linux-amd64.tgz
curl -LO https://github.com/databus23/helm-diff/releases/download/v3.15.13/helm-diff-linux-amd64.tgz.prov

# 4. Install offline version
helm plugin install helm-diff-linux-amd64.tgz --keyring helm-diff-keyring.gpg

Output:

Verifying plugin signature...
Error: plugin.yaml not found in expected directory /tmp/helm-plugin-extract-3045794961/helm-diff-linux-amd64: stat /tmp/helm-plugin-extract-3045794961/helm-diff-linux-amd64/plugin.yaml: no such file or directory

Additional info:

# The following works, but with --verify=false

# (Run steps 1-3 above)

# Rename the file diff.tgz
# The diff.tgz has a diff/ directory; renaming it now matches what helm expects
mv helm-diff-linux-amd64.tgz diff.tgz

# works
# but the provenance file wants it to be called helm-diff-linux-amd64.tgz so we must --verify=false
helm plugin install diff.tgz --verify=false

helm plugin list # note "mismatched provenance"
NAME    VERSION TYPE    APIVERSION      PROVENANCE              SOURCE 
diff    3.15.13 cli/v1  legacy          mismatched provenance   unknown
# The following works, but not from an offline install

# (Run steps 1-3 above)
helm plugin install https://github.com/databus23/helm-diff/releases/latest/download/helm-diff-linux-amd64.tgz --verify --keyring helm-diff-keyring.gpg

helm plugin list
Verifying plugin signature...
Signed by: Fabian Ruff (helm-diff release key) <[email protected]>
Using Key With Fingerprint: C5645EF47482257A1F806D2BEA17A2A206AFF8CD
Plugin Hash Verified: sha256:c004219c405e5be665e0b573378cf07f0182f2da7466a4c5a580a3c7162e7ae8
Binary already present at /root/.local/share/helm/plugins/helm-diff-linux-amd64/bin/diff, skipping download
NAME    VERSION TYPE    APIVERSION      PROVENANCE      SOURCE 
diff    3.15.13 cli/v1  legacy          unknown         unknown

Activity

  1. changed the title [-]Offline install not working in helm 4[/-] [+]Offline install not working in helm 4 unless you --verify=false[/+] on Sep 11, 2026
  2. matthew-pakulski commented on Sep 11, 2026

    @matthew-pakulski
    Author

    Nevermind, I can't read the instructions. This was what I was missing:

    tar xzf helm-diff-linux-amd64.tgz
    helm plugin install ./diff

    Though, I wonder if this could be improved upon still to work like I originally had thought it should. Installing from a directory is meant for development mode, and doesn't perform the checks that --verify does.

  3. yxxhero commented on Sep 11, 2026

    @yxxhero
    Collaborator
  4. added a commit that references this issue on Sep 17, 2026
    0654e56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions