Skip to content

Fix output when --verify flag used #7624

Closed

Description

@mattfarina

Output of helm version: 3.1.0

Here's some example output...

$ helm pull --verify --keyring foo.pgp demo-repo/foo
Verification: &{0xc0008c80a0 sha256:f8a4e6e3ebf8a3fac95396b698f5517d43e0f5275bac3c484b6f38428b90b578 foo-0.1.0.tgz}

Don't think this is what we expect to see.

Activity

  1. added
    bug
    v3.x
    on Feb 18, 2020
  2. mattfarina commented on Feb 20, 2020

    @mattfarina
    CollaboratorAuthor

    Doing more digging I found that the UI output pattern was explicitly put in this way. It looks like it was via the commit 593718d. Later commits around this just updated it or added tests to show it.

    Because this is a UI change it would be considered breaking to change this. We might need to put this off to Helm v4. Unless this was an unintended bug that's lasted a long time. Paging @technosophos

    Prior to this change more useful information, such as who signed, was provided.

  3. mattfarina commented on Feb 20, 2020

    @mattfarina
    CollaboratorAuthor

    Doing more research... Here's how it works when things fail...

    The case where the sha's do not match

    $ helm pull --verify --keyring foo.pgp demo-repo/foo
    Error: sha256 sum does not match for foo-0.1.0.tgz: "sha256:892f11be3dfbe09079da5e7bdfb23701e8df8b6919a0cd39c7e3fff51ab4a86c" != "sha256:a5611acf74b0372a36de0a49cb17985fdb1260b5dd4ed25fbfe3bb55a10239f6"
    

    When the key is not in the keychain used for verification...

    $ helm pull --verify --keyring foo2.pgp demo-repo/foo
    Error: openpgp: signature made by unknown entity
    

    And, when the signature is from some known and the hash listed matches the file but the sig is for something else...

    $ helm pull --verify --keyring foo.pgp demo-repo/foo
    Error: openpgp: invalid signature: hash tag doesn't match
    

    The issue is with the information when the verification passes.

  4. technosophos commented on Feb 21, 2020

    @technosophos
    Member

    This was most definitely a bug that I introduced.

  5. added a commit that references this issue on Feb 28, 2020
    a3f92f6
  6. added a commit that references this issue on Mar 12, 2020
    47a79b5
  7. added a commit that references this issue on May 8, 2020
    f68c282
  8. added a commit that references this issue on Oct 2, 2020
    2b2b7a5
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

    bugv3.x

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions