-
Notifications
You must be signed in to change notification settings - Fork 3
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
Flatpak update prompts about unsigned artifacts for previously installed PGP-signed artifacts #3
Comments
Hi @mickaelistria Is this because you get the migration wizard? |
Hi @mbooth101 ! Yes, I think the migration wizard, and the fact that it tried to reinstall things that were already installed/trusted previously causes the issue. I'm pretty sure the issue is reproducible without flatpak, but I don't have a scenario yet. |
@mickaelistria This will happen in any read-only installation scenario. E.g. if we still had RPMs you would see it there too -- it is not a Flatpak-specific problem. Here's how to reproduce it with upstream eclipse.org I-build tarballs: StepsStep 1: Extract an I-build (not the latest, because we want to upgrade during the test) and make it a read-only installation (you can easily do it just by changing ownership to root):
Step 2: Start Eclipse with a configuration area in a place where your user has write permissions:
Step 3: Install test framework bundles to match the I-build, e.g. from: https://download.eclipse.org/eclipse/downloads/drops4/I20220213-0600/eclipse-test-framework-I20220213-0600.zip Now we get the Trust dialog for the following five bundles: • assertj-core Hit "trust selected" and close Eclipse. Step 4: Let's simulate upgrade to the latest I-build how Flatpak and RPM would; by deleting the old installation and installing from scratch:
Step 4: Start Eclipse again with same configuration area as last time:
Now we get the Migration Wizard -- this is normal for read-only installations. Since your p2 profile lives in the configuration area and not the installation area, the profile is now out of date because it contains references to the old I-build bundles. It must be regenerated to include the new I-build bundles and the bundles previously installed into the configuration area. It seems to do this by just reinstalling them into a new p2 profile. Now we get the Trust dialog again -- same five bundles as last time. QuestionsAre these untrusted bundles really unsigned? Let's inspect. You can see the plug-ins installed into your writable configuration area, and not the Eclipse installation directory:
List the contents of one of these jars:
|
@mickaelistria I hope you can see from the above that this is a p2 issue, not a Flatpak issue, so I will probably close this bug. If you think the behaviour should be different here, or there is a genuine bug with p2 checking GPG signatures then please file a bug against p2 -- feel free to copy/paste my reproduction instructions above into such a bug :-) Edit: I forgot to mention that you only see the Migration Wizard when the platform is upgraded. You probably didn't realise that your platform was upgraded because IIRC on recent Fedoras gnome-software and/or flatpak is configured by default to automatically update your installed flatpak applications in the background. |
Thanks. Are you willing to open the p2 bug or should I? I think you deserve the honor since you identified steps to reproduce :) |
What is the status of this one? Should it be closed now? |
Closing due to no reply in years. |
Steps to reproduce:
EXPECTED: everything is fine
GOT: a popup requesting to update test framework (is it really necessary here?), and then a popup mentioning artifacts are unsigned.
There can be many approach to this issue:
The text was updated successfully, but these errors were encountered: