Skip to content
Snippets Groups Projects
  1. Mar 29, 2022
  2. Mar 11, 2022
  3. Mar 05, 2022
  4. Jan 25, 2022
  5. Dec 27, 2021
    • dlorenc's avatar
      Remove the attestation media type field. (#565) · 12d1a47c
      dlorenc authored
      
      This was never actually correct - these are technically "payloadTypes", which are
      not actually mediaTypes. Some implementations mistakenly sent incorrect media types, so
      it appeared to work. The GCS storage layer rejected correct implementations that sent the
      payloadType, because these are not valid mediaTypes.
      
      We never used this field anyway, so let's drop it. I verified that the API correctly ignores
      unknown fields, so removing this will not break clients that send it.
      
      Signed-off-by: default avatarDan Lorenc <lorenc.d@gmail.com>
      12d1a47c
  6. Dec 20, 2021
  7. Nov 22, 2021
  8. Oct 06, 2021
    • Bob Callaway's avatar
      Canonicalize JSON before inserting into trillian (#445) · 070f83e9
      Bob Callaway authored
      
      Each of the supported types has a Canonicalize() method that generates a
      JSON representation of the entry. If the golang library were to make a
      change to the order of keys when marshalling an object, it would cause
      a duplicate entry in the log for a semantically equivalent object.
      
      This change simply transforms the JSON into RFC8785-compliant
      canonicalized JSON protecting against any changes in JSON libraries
      going forward.
      
      Signed-off-by: default avatarBob Callaway <bob.callaway@gmail.com>
      070f83e9
  9. Jul 17, 2021
    • Bob Callaway's avatar
      Improve error messages for invalid content (#377) · 5e005eb1
      Bob Callaway authored
      
      Previously we returned an HTTP 500 "error canonicalizing entry" error if
      Rekor was unable to parse or verify the proposed content of a new log
      entry. This adds a new error type ValidationError that allows
      implementers of the Canonicalize method to delineate between internal,
      transient errors and errors that clients can rectify.
      
      With this patch, errors parsing or validating (provided or referenced)
      artifacts will return an HTTP 400 message to the client with a message
      about the issue.
      
      Fixes: #362
      
      Signed-off-by: default avatarBob Callaway <bob.callaway@gmail.com>
      5e005eb1
  10. Jul 14, 2021
  11. Jul 12, 2021
  12. Jul 08, 2021
  13. Jun 23, 2021
  14. Jun 16, 2021
  15. Jun 07, 2021
  16. May 06, 2021
  17. May 05, 2021
  18. Apr 29, 2021
  19. Apr 28, 2021
  20. Apr 15, 2021
  21. Apr 12, 2021
  22. Apr 10, 2021
    • Bob Callaway's avatar
      Update rekor REST API to match Trillian semantics (#250) · cce6cabf
      Bob Callaway authored
      
      This patch removes the /api/v1/log/entries/{uuid}/proof endpoint. If you
      have the UUID (aka the leaf Merkle hash), you likely want proof that the
      content represented by that hash is included in the log. There's no need
      for a separate /proof endpoint to deliver the same content.
      
      This commit also ensures that the getLogEntryByIndex and
      getLogEntryByUUID endpoints return an inclusion proof as part of their
      response content. The search endpoint also now returns the inclusion
      proof of all entries returned from the query.
      
      With this patch, Rekor no longer uses the deprecated `GetLeavesByHash`
      Trillian API.
      
      Fixes #229
      
      Signed-off-by: default avatarBob Callaway <bob.callaway@gmail.com>
      cce6cabf
  23. Mar 24, 2021
  24. Mar 14, 2021
  25. Mar 03, 2021
    • Bob Callaway's avatar
      Remove API key from path to new log entry (#185) · b0eae9b8
      Bob Callaway authored
      
      Since the API key can be specified as an environment variable and could
      be thought of as an authentication credential, it should not be included
      in the path to the created entry in the log.
      
      Previously we simply appended the new entry's UUID to the full URL,
      which was incorrect if an API key was specified as a query parameter.
      
      Fixes #182
      
      Signed-off-by: default avatarBob Callaway <bcallawa@redhat.com>
      b0eae9b8
  26. Feb 26, 2021
  27. Feb 25, 2021
  28. Feb 22, 2021
  29. Feb 09, 2021
  30. Jan 28, 2021
  31. Jan 21, 2021
  32. Jan 19, 2021
  33. Jan 05, 2021
  34. Jan 04, 2021
  35. Jan 03, 2021
  36. Dec 24, 2020
  37. Dec 19, 2020
    • Bob Callaway's avatar
      clean up and enhance error handling · 182adc3f
      Bob Callaway authored
      
      - adds trillian API object to context
      - improves request error logging pre and post validation
      - use consistent request context throughout all GRPC calls
      - improve validation of incoming UUID values
      - disable swagger UI endpoint
      - only print cacheable headers if response code is HTTP 2XX
      - use GetLeavesByRange instead of deprecated GetLeavesByIndex API
      
      Signed-off-by: default avatarBob Callaway <bcallawa@redhat.com>
      182adc3f
  38. Dec 17, 2020
  39. Dec 04, 2020
Loading