Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OEM-> User transfer of devices ownership wizard, triggered by the presence of an empty /boot/oem file #507

Commits on Jan 5, 2018

  1. Configuration menu
    Copy the full SHA
    df4438a View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2018

  1. Configuration menu
    Copy the full SHA
    d740fe4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    df8462a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aa2d3cd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    533f18a View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2018

  1. Configuration menu
    Copy the full SHA
    921010f View commit details
    Browse the repository at this point in the history
  2. gpg2 library fixes

    tlaurion authored and osresearch committed Sep 19, 2018
    Configuration menu
    Copy the full SHA
    cb418ca View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cc062bd View commit details
    Browse the repository at this point in the history
  4. typo on pinentry

    osresearch committed Sep 19, 2018
    Configuration menu
    Copy the full SHA
    8fbe910 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2018

  1. required changes to apply on top of osresearch/gpg2 for gpg2 to actua…

    …lly work, tools and libs updated to latest versions
    tlaurion committed Oct 5, 2018
    Configuration menu
    Copy the full SHA
    87c85ca View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2018

  1. Configuration menu
    Copy the full SHA
    d9220f5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0978cb4 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2018

  1. Configuration menu
    Copy the full SHA
    42a13bc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    91886bb View commit details
    Browse the repository at this point in the history
  3. gpg needs to be called with --no-tty at that point, since pintentry-t…

    …ty is used to enter passphrase. Else, gpg complaints of not being able to open /dev/tty, even though GPG_TTY environmenent variable is forced in init
    tlaurion committed Nov 15, 2018
    Configuration menu
    Copy the full SHA
    cc89d68 View commit details
    Browse the repository at this point in the history
  4. GPG_TTY is forced to /dev/console under init. Ash console is never ca…

    …lled; trying to get console tty from the tty returns "no console". NEEDs BETTER FIX.
    tlaurion committed Nov 15, 2018
    Configuration menu
    Copy the full SHA
    6623374 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a2e9e4c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5d3ac09 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2018

  1. Configuration menu
    Copy the full SHA
    478af24 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2019

  1. Preliminary support for GnuPG2

    druimalban authored and tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    af5d59d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    de724c4 View commit details
    Browse the repository at this point in the history
  3. switch to gpg2 for qemu targets

    osresearch authored and tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    7ab0b60 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2710a25 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    45018c4 View commit details
    Browse the repository at this point in the history
  6. gpg2 library fixes

    tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    420d5de View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    89b7896 View commit details
    Browse the repository at this point in the history
  8. typo on pinentry

    osresearch authored and tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    b70c9f8 View commit details
    Browse the repository at this point in the history
  9. required changes to apply on top of osresearch/gpg2 for gpg2 to actua…

    …lly work, tools and libs updated to latest versions
    tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    dfa7043 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    bb7a1ec View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    e07bbfb View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    dbef0de View commit details
    Browse the repository at this point in the history
  13. gpg needs to be called with --no-tty at that point, since pintentry-t…

    …ty is used to enter passphrase. Else, gpg complaints of not being able to open /dev/tty, even though GPG_TTY environmenent variable is forced in init
    tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    5f6f050 View commit details
    Browse the repository at this point in the history
  14. GPG_TTY is forced to /dev/console under init. Ash console is never ca…

    …lled; trying to get console tty from the tty returns "no console". NEEDs BETTER FIX.
    tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    abe7f38 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    d1364e4 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    947d9a1 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    c1603af View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    c8f3122 View commit details
    Browse the repository at this point in the history
  19. Add empty keyring detection, clean up main menu

    To help with onboarding new users to Heads, this change will detect when
    Heads does not have any keys in its keyring and will guide the user
    through adding a key to the running BIOS. It's important that this
    happen *before* guiding them through setting up an initial TOTP/HOTP
    secret because adding a GPG key changes the BIOS, so the user would have
    to generate TOTP/HOTP secrets 2x unless we handle the keyring case
    first.
    
    In addition to this change I've simplified the main menu so that the
    majority of the options appear under an 'advanced' menu.
    kylerankin authored and tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    38b67fb View commit details
    Browse the repository at this point in the history
  20. Set GPG_TTY before calling gpg in key-init

    gpg2 needs GPG_TTY set to function properly.  We set it in /init so it
    is inherited by all children.  The call to $(tty) must be after /dev and
    (preferably) /dev/pts are mounted.
    
    Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
    jandryuk authored and tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    5530d7e View commit details
    Browse the repository at this point in the history
  21. Move GPG check outside TPM failure

    We want to catch the missing GPG keyring error regardless of TPM failure
    or even in the case of a system without a TPM at all so we need to move
    that section up above the TPM check.
    kylerankin authored and tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    4c19a87 View commit details
    Browse the repository at this point in the history
  22. Update version #s for Librem coreboot, add Librem Key detection dialog

    The Librem coreboot is labeled with the current version and is visible
    from dmidecode and is supposed to reflect the current version of
    coreboot, however it was out of date and reflected 4.7 when Heads has
    moved on to 4.8.1.
    
    I've also added a simple change to further simplify onboarding by
    warning users who have Librem Key configured when they boot without it
    being inserted.
    kylerankin authored and tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    85dd856 View commit details
    Browse the repository at this point in the history
  23. Fix column width for error output

    kylerankin authored and tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    ec0378d View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    b02910b View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    fcefa03 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    3fb4395 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    8a2db7a View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    5065b6f View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    18c59dc View commit details
    Browse the repository at this point in the history
  30. Moving reencrypt code into gui-init

    file selection code duplicated into gui-init
    tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    3d0e929 View commit details
    Browse the repository at this point in the history
  31. Adding public keyword to the file list to be removed from rom prior t…

    …o adding key and otrust output after GPG card key generation.
    tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    fffd515 View commit details
    Browse the repository at this point in the history
  32. reencrypt: Validate that partitions contain LUKS header through isLuk…

    …s instead of luksDump.
    tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    c0b8ca6 View commit details
    Browse the repository at this point in the history
  33. WiP: OEM Onboarding

    tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    03fb857 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    54ad232 View commit details
    Browse the repository at this point in the history
  35. /initrd/etc/functions: removal of cryptsetup-reencrypt

    /initrd/bin/gui-init:
    -inclusion of cryptsetup-reencrypt code
    -WiP: Onboarding menu enforced by /boot/oem file being present
    --State of onboarding progress is appended in that file.
    tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    a79da5b View commit details
    Browse the repository at this point in the history
  36. WiP: oem Onboarding addition:

    -tpm ownership added into ownership process
    -cryptsetup forced to change password on slot0. Learned my lesson: not specifying it makes cryptsetup writes the new password into slot 1, leaving slot 0 empty. As a result, the luksKillslot done by setting a new default wiped out the recovery password, making the Luks container without any key to unlock it.
    tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    6b6cf5d View commit details
    Browse the repository at this point in the history
  37. WiP onboarding:

    Removing cryptsetup Whital yessno menu for a textbox. Was misleading to the user.
    We want the user to not have any choice but continue the onboarding process until it's done.
    
    TODO: move gpg2 code from /etc/functions to gui-init.
    tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    bbe8755 View commit details
    Browse the repository at this point in the history
  38. O (ReOwnership menu) is called when /boot/oem file exists and file is…

    … non empty.
    
    check_onboarding_progress inserts "onboarding" when it first checks checks that file.
    Afterward, the C (Continue Ownership) is triggered when the /boot/oem file is found unempty.
    
    check_onboarding_progress checks for status updates being inserted in /boot/oem and selects the proper menu until all unboarding is done.
    In successive stages, the user is invited to:
    Rencrypt LUKS container with a new key and Recovery passphrase
    Factory reset it's GPG card, own it, genrate keys and insert public and trusdb export into reflashed rom.
    TPM/HOTP reownership and sealing. (Might not be needed)
    
    New menus are provided:
    R: Reencrypt LUKS container and change it's password
    F: Factory reset GPG card
    tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    d90e297 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    22b7e3d View commit details
    Browse the repository at this point in the history
  40. Merge branch 'gpg2' into x230_FBWhiptail_GPG2_clean_LibremKey-empty_k…

    …eyring_detection-reown_hardware
    tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    5adb46b View commit details
    Browse the repository at this point in the history
  41. GPG tty dynamic tty fix

    tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    d523320 View commit details
    Browse the repository at this point in the history
  42. CONFIG_GPG->CONFIG_GPG2

    tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    9c9b301 View commit details
    Browse the repository at this point in the history
  43. CONFIG_GPG->CONFIG_GPG2

    tlaurion committed Jan 18, 2019
    Configuration menu
    Copy the full SHA
    3e72971 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2019

  1. Configuration menu
    Copy the full SHA
    54a45a1 View commit details
    Browse the repository at this point in the history
  2. lvm2: add support for thin volumes and snapshots, so that cryptsetup …

    …can grow LUKS container if needed from recovery shell
    tlaurion committed Jan 19, 2019
    Configuration menu
    Copy the full SHA
    65cf0b3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    23cecdd View commit details
    Browse the repository at this point in the history
  4. Merge branch 'x230_FBWhiptail_GPG2_clean_LibremKey-empty_keyring_dete…

    …ction-reown_hardware' of github.com:tlaurion/heads into x230_FBWhiptail_GPG2_clean_LibremKey-empty_keyring_detection-reown_hardware
    tlaurion committed Jan 19, 2019
    Configuration menu
    Copy the full SHA
    0bb3214 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    18806d3 View commit details
    Browse the repository at this point in the history
  6. Add "Factory reset, own GPG card, generate and add key into running B…

    …IOS" option when no GPG key is found into rom.
    tlaurion committed Jan 19, 2019
    Configuration menu
    Copy the full SHA
    a34ebef View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    70a19ce View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2019

  1. Configuration menu
    Copy the full SHA
    ecb12c3 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2019

  1. For some reason, changing Whiptail height and width don't change a th…

    …ing. Switching back to 30 90, which is used everywhere else.
    tlaurion committed Jan 26, 2019
    Configuration menu
    Copy the full SHA
    8927ca5 View commit details
    Browse the repository at this point in the history