-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Brave apt repo key expired #4097
Comments
Do this, it appears to have fixed it for me: curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add - |
Thanks, that fixed it. Closing.. |
Without trying to sound alarmist, that ticks every checkbox in a packing server compromise. With the old key:
The key isn't expired. You downloaded a key from the same server that throws a signature error, ie you just used the attacker's key to verify the compromised package (and subsequently got no error, since that's how signature verification works). This bug isn't closed. The documentation still mentions the old key, so we need an official answer on what happened since the old key isn't yet expired. |
@deZillium You make a good point. Re-opened. |
@deZillium I found this on brave community forum. https://community.brave.com/t/linux-users-please-update-your-linux-repos/53810 So it's probably not compromised. (Unless an attacker infiltrated the support staff, but that's just tinfoil hat) |
I may be paranoid, but I'm still not satisfied with that. The post mentions that the key expires on April 13th. The key (as shown above by me) actually expires on August 8th (that's a 4 months difference, so not a typo). I may need a new tin-foil hat, mine is getting pretty worn out by now. |
@deZillium Then why did the key expire yesterday? I've had the key in my system for a long time. Only yesterday did it show "EXPKEYSIG 4FE13824E3FFC656" which I'm pretty sure means expired. |
Just saying what "apt-key list" shows me. There are two "different" keys in apt-key: one source is trusted.gpg (output below) and the other is trusted.gpg.d/brave-browser-release.gpg (output above). Why the "same" key appears twice with matching IDs and different expirations is beyond me, unless someone extended the expiration date (but then shouldn't the key in trusted.gpg be updated?).
(notice how the fingerprint matches the previous output) |
We changed the installation instructions in #2509 so that the Brave key would no longer be in the global keyring ( So you can safely delete the old one now:
|
If you run through the installation instructions again, you will get the new key. It's actually the same key as before, but we extended the expiration on it since it was going to expire last Saturday. We are working on a proper key rotation mechanism that will be seamless, so make sure you have the |
Sorry you all experienced this. We are moving to have the signing key managed (optionally) by the brave-keyring package, which should have rotated this key out. I (as the author) did not expect old copies of the installation instructions to be installing the key in an alternative location (from an older version of the instructions). When the key went live, we also posted the new copy up at https://brave.com/signing-keys for verification. A future version of the brave-keyring package will handle removing these expired keys. Thank you for bringing them to our attention. I'll be deploying this later today, pending code review. |
This commit deletes the GPG key that was added by our users in older versions of the installation instructions. Although the signature is the same as the new unexpired key, only the expired key will be deleted due to the --keyring option passed. Fixes: brave/brave-browser#4097
@bkero Updating to the latest brave-keyring version (1.2) reports these warnings:
Not opening a separate bug report, since it's work on this bug that caused the warnings. As far as I can tell it's just the package dependencies that generate the warnings (manually checking the dependencies doesn't show any of the usual "Depends:" lines). Apt depends on those packages which gives ("apt-cache depends apt" output):
"apt-cache depends brave-keyring" on the other hand shows that there are no dependencies for the package:
|
I opened a separate bug for this to make sure it doesn't slip through the cracks and gets fixed: https://github.com/brave/brave-release/issues/4 (private repo) |
I've run Brave's updated installation instructions and am still getting this error:
|
@nikolas You may have an old key in a different location on your system. Try the Debian installation instructions I suggested in #1986 (comment). |
@fmarier thank you, all good now. |
In case you wondered, the source for Brave that causes this error is not in the usual location, but here (enough to comment it out to repair |
Hi, the Brave apt repo key is expired.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://brave-browser-apt-release.s3.brave.com bionic InRelease: The following signatures were invalid: EXPKEYSIG 4FE13824E3FFC656 Brave Software [email protected]
W: Failed to fetch https://brave-browser-apt-release.s3.brave.com/dists/bionic/InRelease The following signatures were invalid: EXPKEYSIG 4FE13824E3FFC656 Brave Software [email protected]
The text was updated successfully, but these errors were encountered: