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

Signature error during prod install #706

Closed
conorsch opened this issue Jun 8, 2021 · 2 comments
Closed

Signature error during prod install #706

conorsch opened this issue Jun 8, 2021 · 2 comments

Comments

@conorsch
Copy link
Contributor

conorsch commented Jun 8, 2021

During a recent prod install (for testing #705), I observed a failure related to the FPF apt repo:

  ----------
            ID: configure-apt-test-apt-repo
      Function: pkgrepo.managed
          Name: deb [arch=amd64] https://apt.freedom.press buster main
        Result: False
       Comment: Failed to configure repo 'deb [arch=amd64] https://apt.freedom.press buster main': W: GPG error: https://apt.freedom.press buster Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 310F561200F4AD77
                E: The repository 'https://apt.freedom.press buster Release' is not signed.
       Started: 21:47:56.138879
      Duration: 5054.719 ms
       Changes:   
  ---------- 

Clearly related to #700, although we were careful to update the securedrop-keyring package to ensure both keys were present. The NO_PUBKEY message refers to the old/current key, suggesting that only the new key is present in the template.

The error output above is from the provisioning of whonix-gw-15, where we do install the keyring package, but only after initial provisioning. Unlike the SDW templates, there is no SD/FPF key present inside the template before we add packages to it, so the initial bootstrapping fails, since it used only the new key.

Solution would be to resign the buster Release file with the new key pronto.

@conorsch
Copy link
Contributor Author

conorsch commented Jun 8, 2021

As a temporary workaround, first-time installers can copy the old/current pubkey into whonix-gw-15 directly from dom0, at /srv/salt/sd/sd-workstation/securedrop-release-signing-pubkey-LEGACY.asc, then apt-key add - it in the TemplateVM.

@eloquence
Copy link
Member

This should no longer be an issue; the Release file is now exclusively signed with the new key (https://github.com/freedomofpress/securedrop-debian-packages-lfs/pull/54).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants