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

Implement a sign command #91

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

Commits on Dec 16, 2021

  1. Implement a sign command

    Signed-off-by: Pieter Lexis <[email protected]>
    pieterlexis committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    b6c2b19 View commit details
    Browse the repository at this point in the history
  2. Add "sign" action

    Signed-off-by: Pieter Lexis <[email protected]>
    pieterlexis committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    1b4109a View commit details
    Browse the repository at this point in the history
  3. Change Invocation Environment and Parameters type

    According to the SLSA specification, these are [JSON
    objects](https://slsa.dev/provenance/v0.1). This commit changes their
    type from raw json to the more correct `map[string]interface{}`.
    
    Signed-off-by: Pieter Lexis <[email protected]>
    pieterlexis committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    1eac193 View commit details
    Browse the repository at this point in the history
  4. Add more signing tests

    This checks if we can actually verify the signature and if the data in
    the payload actually matches what we put in.
    
    Signed-off-by: Pieter Lexis <[email protected]>
    pieterlexis committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    97f4f3b View commit details
    Browse the repository at this point in the history
  5. Canonicalize JSON before signing

    This is required by the [in-toto spec](https://github.com/in-toto/docs/blob/master/in-toto-spec.md#4-document-formats).
    
    Signed-off-by: Pieter Lexis <[email protected]>
    pieterlexis committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    d5630fb View commit details
    Browse the repository at this point in the history
  6. sign: test if in-toto tools verify our signatures

    Signed-off-by: Pieter Lexis <[email protected]>
    pieterlexis committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    2ef1cc2 View commit details
    Browse the repository at this point in the history
  7. signing add docs

    Signed-off-by: Pieter Lexis <[email protected]>
    pieterlexis committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    8ce9e27 View commit details
    Browse the repository at this point in the history