Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for verifying attestations #8

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Commits on Jan 11, 2022

  1. Support different verification options per image

    Different images will require different verification options. This
    commit adds configuration that allows you to define different
    'verifiers' for specific image references, or image reference patterns.
    
    At the moment it supports verification by public key, or the existing
    options, but should be expanded to include all supported options.
    
    Also modifies the response from the provider to include an error
    per-image checked, rather than returning any error as a 'system' error.
    
    I've also removed the _invalid suffix from the key returned in the
    response when there's an error. The presence of the 'error' field
    indicates this better, I think.
    
    Signed-off-by: Rob Best <[email protected]>
    ribbybibby committed Jan 11, 2022
    Configuration menu
    Copy the full SHA
    7307a7b View commit details
    Browse the repository at this point in the history
  2. adding support for verifying attestations

    Signed-off-by: Tom Meadows <[email protected]>
    Tom Meadows committed Jan 11, 2022
    Configuration menu
    Copy the full SHA
    48085b9 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2022

  1. Allow multiple verifiers for images

    An image can have multiple signatures and therefore in some cases you'll
    want multiple verifiers for the same images.
    
    Signed-off-by: Rob Best <[email protected]>
    ribbybibby committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    5facf03 View commit details
    Browse the repository at this point in the history
  2. fixing for linter

    Signed-off-by: Tom Meadows <[email protected]>
    Tom Meadows committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    9353f2a View commit details
    Browse the repository at this point in the history
  3. added formatting to return payloads

    Signed-off-by: Tom Meadows <[email protected]>
    Tom Meadows committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    0368d29 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2022

  1. Multiple verifiers for image reference

    Modify the configuration so that multiple verifiers can be associated
    directly with an image reference/pattern. Images will only be verified
    for the first pattern they match.
    
    This makes it possible to provide multiple verification options for a
    specific image pattern/reference but also fall through to a less-specific
    pattern (with different verification options) for images that don't
    match a more specific pattern.
    
    Signed-off-by: Rob Best <[email protected]>
    ribbybibby committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    74e720a View commit details
    Browse the repository at this point in the history
  2. Remove redundant line from template

    Checking the count of errors is enough.
    
    Signed-off-by: Rob Best <[email protected]>
    ribbybibby committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    235527f View commit details
    Browse the repository at this point in the history
  3. rebasing and making changes to config

    Signed-off-by: Tom Meadows <[email protected]>
    Tom Meadows committed Jan 13, 2022
    Configuration menu
    Copy the full SHA
    aa94800 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2022

  1. Add license header

    Signed-off-by: Rob Best <[email protected]>
    ribbybibby committed Jan 16, 2022
    Configuration menu
    Copy the full SHA
    4fb8e4f View commit details
    Browse the repository at this point in the history
  2. Fix golangci-lint errors

    Signed-off-by: Rob Best <[email protected]>
    ribbybibby committed Jan 16, 2022
    Configuration menu
    Copy the full SHA
    69b8fb6 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2022

  1. resolving conflicts from merge with verifiers branch

    Signed-off-by: Tom Meadows <[email protected]>
    Tom Meadows committed Jan 17, 2022
    Configuration menu
    Copy the full SHA
    f23b1f2 View commit details
    Browse the repository at this point in the history