New issue
Advanced search Search tips

Issue 760879 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2018
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature

Blocking:
issue 680153



Sign in to add a comment

Update the signer to write a report file

Project Member Reported by sjg@google.com, Aug 31 2017

Issue description

When the signer completes it writes a new file into the firmware updater containing information about what keys it used and what it signed (JSON format):

model name
key id
phase (pre-mp, mp)
hash of root key

 

Comment 1 by sjg@chromium.org, Aug 31 2017

Blocking: 680153
Owner: shapiroc@chromium.org
Owner: sjg@chromium.org
I downloaded the latest enguarde signed image and reviewed the signer code and I don't see this packed into the shellball anywhere.

I see VERSION.signer, but this is an empty file that just indicates the firmware was signed.

Comment 4 by sjg@google.com, Sep 1 2017

Cc: hungte@chromium.org
Sorry, this is confusing. I mean it *should* write such a file. Hung-Te mentioned it is useful to know which key was used to sign (pre-mp or mp)
Owner: shapiroc@chromium.org
we already write signer_config.csv into the shellball with model, keyid, and bios path

anything past that seems redundant

the phase isn't know by the signer, it just knows which keyset it used (which we could pattern match on, but seems unnecessary to do in the signer)

Comment 6 by sjg@chromium.org, Sep 4 2017

Cc: sjg@chromium.org
Owner: hungte@chromium.org
Hi Hung-Te, can you please add a few more details here on what you need and how the signer might get this information?

Comment 7 by hungte@chromium.org, Dec 15 2017

I remember the keyset folders were named as PreMP or MPv1 etc in its path. Can we have that key folder names and try to derive phase from there?

The other thing I need is hash of root and recovery keys that is signed.

Comment 8 by sjg@chromium.org, Dec 18 2017

Owner: shapiroc@chromium.org

Comment 9 by sjg@chromium.org, Dec 18 2017

Labels: -Type-Bug Type-Feature
I think what I want was what carried in README.signer.
Just downloaded a Coral build and found it becoming empty.

Can we get something back?

Comment 11 by sjg@chromium.org, Dec 22 2017

Over to Charles to take a look
Project Member

Comment 12 by bugdroid1@chromium.org, Jan 12 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+/fde7cdc134d66ff0ad1350901b716c4d7d158fa8

commit fde7cdc134d66ff0ad1350901b716c4d7d158fa8
Author: Marco Chen <marcochen@chromium.org>
Date: Fri Jan 12 13:49:45 2018

image_signing: Fix the wrong output to VERSION.signer.

The helper function - info redirects msg to stderr and appends some
backslash escapes so
  1. it can't be redirected to VERSION.signer via stdout again.
  2. Even if change to stderr, we also don't want these appended
     msg.

BUG= chromium:760879 
TEST==~/trunk/src/platform/vboot_reference/scripts/image_signing/sign_official_build.sh
recovery ../build/images/coral/latest/recovery_image.bin
../platform/vboot_reference/tests/devkeys
BRANCH=None

Change-Id: I46d560fb4cb93756fd02e32412410afb3a4db0e2
Reviewed-on: https://chromium-review.googlesource.com/861694
Commit-Ready: Marco Chen <marcochen@chromium.org>
Tested-by: Marco Chen <marcochen@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[modify] https://crrev.com/fde7cdc134d66ff0ad1350901b716c4d7d158fa8/scripts/image_signing/sign_official_build.sh

Project Member

Comment 13 by bugdroid1@chromium.org, Jan 16 2018

Labels: merge-merged-firmware-fizz-10139.B
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+/281b6e35a70d7d77b7b8232d5915078de3001acd

commit 281b6e35a70d7d77b7b8232d5915078de3001acd
Author: Marco Chen <marcochen@chromium.org>
Date: Tue Jan 16 21:53:10 2018

image_signing: Fix the wrong output to VERSION.signer.

The helper function - info redirects msg to stderr and appends some
backslash escapes so
  1. it can't be redirected to VERSION.signer via stdout again.
  2. Even if change to stderr, we also don't want these appended
     msg.

BUG= chromium:760879 
TEST==~/trunk/src/platform/vboot_reference/scripts/image_signing/sign_official_build.sh
recovery ../build/images/coral/latest/recovery_image.bin
../platform/vboot_reference/tests/devkeys
BRANCH=None

Change-Id: I46d560fb4cb93756fd02e32412410afb3a4db0e2
Reviewed-on: https://chromium-review.googlesource.com/861694
Commit-Ready: Marco Chen <marcochen@chromium.org>
Tested-by: Marco Chen <marcochen@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
(cherry picked from commit fde7cdc134d66ff0ad1350901b716c4d7d158fa8)
Reviewed-on: https://chromium-review.googlesource.com/868835
Reviewed-by: Shelley Chen <shchen@chromium.org>
Commit-Queue: Shelley Chen <shchen@chromium.org>
Tested-by: Shelley Chen <shchen@chromium.org>

[modify] https://crrev.com/281b6e35a70d7d77b7b8232d5915078de3001acd/scripts/image_signing/sign_official_build.sh

Status: Fixed (was: Untriaged)

Sign in to add a comment