Skip to content

Commit

Permalink
Add canonicalized Rekor Bundle message
Browse files Browse the repository at this point in the history
Signed-off-by: Lily Sturmann <lsturman@redhat.com>
  • Loading branch information
lkatalin committed Apr 1, 2024
1 parent a57a7ca commit de70969
Show file tree
Hide file tree
Showing 7 changed files with 227 additions and 46 deletions.
187 changes: 141 additions & 46 deletions gen/pb-go/rekor/v1/sigstore_rekor.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions gen/pb-ruby/lib/sigstore_rekor_pb.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,27 @@ pub struct InclusionPromise {
#[prost(bytes = "vec", tag = "1")]
pub signed_entry_timestamp: ::prost::alloc::vec::Vec<u8>,
}
/// The RekorBundle is the signed material used to produce the Signed Entry
/// Timestamp signature. See notes on the InclusionPromise above.
#[derive(
sigstore_protobuf_specs_derive::Deserialize_proto,
sigstore_protobuf_specs_derive::Serialize_proto
)]
#[derive(::prost_reflect::ReflectMessage)]
#[prost_reflect(message_name = "dev.sigstore.rekor.v1.RekorBundle")]
#[prost_reflect(file_descriptor_set_bytes = "crate::FILE_DESCRIPTOR_SET_BYTES")]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RekorBundle {
#[prost(bytes = "vec", tag = "1")]
pub body: ::prost::alloc::vec::Vec<u8>,
#[prost(int64, tag = "2")]
pub integrated_time: i64,
#[prost(string, tag = "3")]
pub log_id: ::prost::alloc::string::String,
#[prost(int64, tag = "4")]
pub log_index: i64,
}
/// TransparencyLogEntry captures all the details required from Rekor to
/// reconstruct an entry, given that the payload is provided via other means.
/// This type can easily be created from the existing response from Rekor.
Expand Down
Binary file not shown.
36 changes: 36 additions & 0 deletions gen/pb-typescript/src/__generated__/sigstore_rekor.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions protos/sigstore_rekor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ message InclusionPromise {
bytes signed_entry_timestamp = 1 [(google.api.field_behavior) = REQUIRED];
}

// The RekorBundle is the signed material used to produce the Signed Entry
// Timestamp signature. See notes on the InclusionPromise above.
message RekorBundle {
bytes body = 1 [(google.api.field_behavior) = REQUIRED];
int64 integrated_time = 2 [(google.api.field_behavior) = REQUIRED];
string log_id = 3 [(google.api.field_behavior) = REQUIRED];
int64 log_index = 4 [(google.api.field_behavior) = REQUIRED];
}

// TransparencyLogEntry captures all the details required from Rekor to
// reconstruct an entry, given that the payload is provided via other means.
// This type can easily be created from the existing response from Rekor.
Expand Down

0 comments on commit de70969

Please sign in to comment.