From 423a44287cf0f966eadd8b9a294f51f582c0e4bf Mon Sep 17 00:00:00 2001 From: Joseph Richey Date: Mon, 12 Sep 2022 14:01:32 -0700 Subject: [PATCH] Measure Separator event in container launcher. (#247) Signed-off-by: Joe Richey --- launcher/container_runner.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/launcher/container_runner.go b/launcher/container_runner.go index 452aa565d..9ddbc5ddc 100644 --- a/launcher/container_runner.go +++ b/launcher/container_runner.go @@ -321,7 +321,11 @@ func (r *ContainerRunner) measureContainerClaims(ctx context.Context) error { } } - return nil + separator := cel.CosTlv{ + EventType: cel.LaunchSeparatorType, + EventContent: nil, // Success + } + return r.attestAgent.MeasureEvent(separator) } // Retrieves an OIDC token from the attestation service, and returns how long