Skip to content

Commit

Permalink
Fix Endorsement proto field IDs
Browse files Browse the repository at this point in the history
Bug: 389127980
Bug: 389165562
Change-Id: Ie93d440d5ef28a98adca737b864348d815c2193b
  • Loading branch information
ipetr0v committed Jan 13, 2025
1 parent 88bb1bc commit e85f675
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions oak_proto_rust/generated/oak.attestation.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -909,16 +909,16 @@ pub struct ContainerEndorsement {
#[derive(Clone, PartialEq, ::prost_derive::Message)]
pub struct Endorsements {
/// Endorsement that proves the TEE platform authenticity.
#[prost(message, optional, tag = "5")]
#[prost(message, optional, tag = "8")]
pub platform: ::core::option::Option<super::super::Variant>,
/// Endorsement corresponding to the initial measurement done by the TEE
/// platform.
/// Initial endorsement is not included in the event log, because
/// events can only be generated after the TEE starts up.
#[prost(message, optional, tag = "6")]
#[prost(message, optional, tag = "9")]
pub initial: ::core::option::Option<super::super::Variant>,
/// Endorsements corresponding to the event log.
#[prost(message, repeated, tag = "7")]
#[prost(message, repeated, tag = "10")]
pub events: ::prost::alloc::vec::Vec<super::super::Variant>,
/// TODO: b/380407219 - Remove this field once Oak clients switch to policies.
#[prost(oneof = "endorsements::Type", tags = "1, 2, 3")]
Expand Down
8 changes: 5 additions & 3 deletions proto/attestation/endorsement.proto
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,16 @@ message Endorsements {
}

// Endorsement that proves the TEE platform authenticity.
oak.Variant platform = 5;
oak.Variant platform = 8;

// Endorsement corresponding to the initial measurement done by the TEE
// platform.
// Initial endorsement is not included in the event log, because
// events can only be generated after the TEE starts up.
oak.Variant initial = 6;
oak.Variant initial = 9;

// Endorsements corresponding to the event log.
repeated oak.Variant events = 7;
repeated oak.Variant events = 10;

reserved 4 to 7;
};

0 comments on commit e85f675

Please sign in to comment.