On Thu, 2024-09-12 at 14:00 -0500, Xing, Cedric wrote:I read that long time ago. Really a great article!
Unfortunately this is true, because this log format has different
design objectives than pretty much all existing log formats. Another
notable difference is this ABI is log oriented, vs. most existing log
formats are digest oriented. A log oriented design allows
applications to generate identical logs regardless of the underlying
CC arch.
So you're saying in order to get this to work successfully you have to
design a better log. I'm afraid I now have to quote xkcd 927 to you:
https://xkcd.com/927/
Using CEL terms, ELCD (Event Log Critical Data) could be easily
encapsulated in both TCG2 and CEL, but ELID (Event Log Informative
Data - i.e., lines starting with '#') is not. One use of ELID is to
support off-log extension, designed to help migrating existing
applications. The `SYNC` lines (necessary after off-log extensions,
see Patch 2 for details) would also require special treatments from
the verifier. Therefore, converting this log to a TCG2 or CEL log is
NOT always doable. It'll be better to convert log format only when
needed (and before any off-log extensions have been done).
You seem to be hung up on requiring a single log format. That horse
left the stable decades ago and isn't coming back (the CEL attempt to
corral it was ultimately not successful). I'm saying we accept that
fact and simply expose and extend logs in whatever format they exist in
today without forcing them to change.