)]}'
{
  "commit": "a50e845df333a4d7531793e3fed61ca8411384f5",
  "tree": "d27ebc111fce076181d9ddda5c06882334f91823",
  "parents": [
    "ed0503cbe3c2d85d138f2604b87d73417be6c940"
  ],
  "author": {
    "name": "Lorenz Brun",
    "email": "lorenz@nexantic.com",
    "time": "Wed Sep 09 17:09:27 2020 +0200"
  },
  "committer": {
    "name": "Lorenz Brun",
    "email": "lorenz@nexantic.com",
    "time": "Wed Sep 09 17:09:27 2020 +0200"
  },
  "message": "Introduce TPM event log infrastructure\n\nThis adds support for reading the local TPM event log and for parsing the\nresulting blob. Reading the log is implemented as part of our TPM library, but\nfor reading and processing the event log binary structure we rely on Google\u0027s\ngo-attestation. Since they don\u0027t separate their event log processing from the rest\nof the package, I imported the relevant files here directly.\n\nSince TPM event logs are really terrible (see included workarounds and\nhttps://github.com/google/go-attestation/blob/master/docs/event-log-disclosure.md)\nit\u0027s probably a bad idea to use them for anything where we can avoid it.\nSo this will likely only be used for EFI boot / secure boot attestation and\neverything we measure will be part of our TPM library with a much less insane format.\n\nTest Plan:\nManually smoke-tested using a custom fixture on a Ryzen 3000 fTPM.\nWe cannot really test this until we have a way of generating and loading\nsecure boot keys since an empty secure boot setup generates no events.\n\nX-Origin-Diff: phab/D622\nGitOrigin-RevId: e730a3ea69c4055e411833c80530f630d77788e4\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "acc554865030ade602fadd42811d6d76b0be2a53",
      "old_mode": 33188,
      "old_path": "build/fietsje/main.go",
      "new_id": "ef291ae4a1308678143c06876abff9fdfa69491d",
      "new_mode": 33188,
      "new_path": "build/fietsje/main.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "fd73133d8eaee79529ef097fa60d644b0dd12176",
      "new_mode": 33188,
      "new_path": "core/pkg/tpm/eventlog/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2d3298cd63b3853810461adb349f38c935b1d325",
      "new_mode": 33188,
      "new_path": "core/pkg/tpm/eventlog/LICENSE-3RD-PARTY.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f83972bc637d14b9daf4a5ca071fa6c099003866",
      "new_mode": 33188,
      "new_path": "core/pkg/tpm/eventlog/compat.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "49a8a2643e42053d4109f85738505e4663d6c207",
      "new_mode": 33188,
      "new_path": "core/pkg/tpm/eventlog/eventlog.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "80293f4c570e21571df9393cb7120418f44bc323",
      "new_mode": 33188,
      "new_path": "core/pkg/tpm/eventlog/internal/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d9b933b977f99e2c93950a448b3d10418bf80c74",
      "new_mode": 33188,
      "new_path": "core/pkg/tpm/eventlog/internal/events.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "5540a0e82119dce8736d29e6f6dd206930ec06f2",
      "new_mode": 33188,
      "new_path": "core/pkg/tpm/eventlog/secureboot.go"
    },
    {
      "type": "modify",
      "old_id": "d659d3acf2d5907205e3e2716f162b076e132d2d",
      "old_mode": 33188,
      "old_path": "core/pkg/tpm/tpm.go",
      "new_id": "5914b358216cf64c9eeb3abb8e80137f2a412236",
      "new_mode": 33188,
      "new_path": "core/pkg/tpm/tpm.go"
    },
    {
      "type": "modify",
      "old_id": "39fbda0087f30c0549e7439bb32a3dff9acec34f",
      "old_mode": 33188,
      "old_path": "third_party/go/repositories.bzl",
      "new_id": "dd79302c3f1b8f1aecb727a5b0d5cf2d05c7b36c",
      "new_mode": 33188,
      "new_path": "third_party/go/repositories.bzl"
    },
    {
      "type": "modify",
      "old_id": "ead136d89a8717198577621ef8c8c22cc5bacc25",
      "old_mode": 33188,
      "old_path": "third_party/go/shelf.pb.text",
      "new_id": "6eb9603683f4b98e30a984ec1b48c321f0a7303f",
      "new_mode": 33188,
      "new_path": "third_party/go/shelf.pb.text"
    }
  ]
}
