-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
JRE RPM packages are not signed #611
Comments
Works for me. |
Are you sure you are installing the JRE packages? I downloaded all the packages manuall, and verified, that Signatures are missing: Example for temurin-17-jre (same for the others):
See, that it has Compare this to the JDK packages (Termurin 11 as an example):
It has a proper RSA/SHA256 signature with key ID 843c48a565f8f04b. |
I checked, and the build script seems fine: https://github.com/adoptium/installer/blob/master/linux/jre/redhat/build.gradle#L72 I guess this is a misconfiguration for the build host or the CI pipeline, as the gppKey variable comes from the GPG_KEY environment variable, set in: https://github.com/adoptium/installer/blob/master/linux/build.gradle#L44 |
You're absolutely right, I use
|
Just as an FYI (based on linked issue I submitted) - this also affects Centos and RHEL. |
I guess all RPM-format JRE packages are affected. The real question is: why are JRE packages present? Does anyone use them? |
I don’t think that’s the scope of this issue. |
I seem not to have access to the respective Jenkins executions (are they run on ci.adoptium.net?). If the manually triggered Jenkins job for the RPM JREs was parameterised with its default settings, the GPG signing should have been executed, cf. line 244 of the Jenkinsfile. You need to explicitly switch off GPG signing (cf. line 43) to prevent this. Could someone with proper access permissions please check the parameter settings for the RPM JRE builds (should still be visible in the Jenkins build history)? If it was switched off, please re-exec with GPG signing. |
@sxa @steelhead31 Could one of you have a look, please? Thanks! |
https://ci.adoptium.net/job/adoptium-packages-linux-pipeline_new is not restricted in terms of being able to view it - which job were you looking at? Unfortunately we don't seem to keep a huge amount of history on those jobs (That should be fixed...) but the RedHat= ones I can see were all executed with the |
I'll take a look once I've finished my current issue... Im fairly certain I ran them all with the signing flag set, however there were a number of bugs in the new jre installers, so it may be that it didnt work entirely correctly.. |
We should also verify the SLES ones since they are built separately |
Those JRE packages are fairly new. They are easy to install and quite handy if you want to run Temurin on a Linux system (VM, container etc.). |
Just a note, I took a quick look around, and indeed the Jenkins jobs appear to have the GPG signing arg set, even on JRE builds. But the Jenkinsfiles and Bash scripts etc all have nice little checks like
So the jobs won't fail if the file is not present. I'm assuming the key mounts are messed up somewhere during the Docker build, but that's just what it is, a pure guess. And I agree that the solution is to fix the signing of the JRE packages and not the removal of them. |
Yes, but it is only called with this method parameter set, if the GPG key is available, otherwise the Jenkins credential helper should already fail. Additionally, it is the very same path which is used for JDKs. It was introduced by me to test on a Jenkins without proper GPG keys available, but the change only set the GPG_KEY parameter as optional (but it's existence is guaranteed by the caller of the method). |
There were quite a few people who missed them when we initially made the decision not to produce JRE downloads in JDK11+, so I suspect the answer is still "yes". Ref: https://adoptium.net/blog/2021/12/eclipse-temurin-jres-are-back/ |
I've identified the root cause of this issue, and its related to docker caches being out of date, and not being updated. Im working on a fix, which should prevent this issue going forward. |
All JDK/JRE RPMS for Java versions 8,11,17 & 19 have been signed and re-uploaded to artifactory. |
Can confirm.
Thanks a lot! |
A little more detail about the root cause.. |
Ah yes, it's always the cache, I just added |
I can verify the following:
temurin-{8,11,17,19}-{jdk,jre}
packages are present in the repository and can be downloaded.temurin-{8,11,17,19}-jdk
packages can be installed.temurin-{8,11,17,19}-jre
packages are not signed, thus cannot be installed.Please check the signing of the JRE packages.
Originally posted by @persicsb in #566 (comment)
The text was updated successfully, but these errors were encountered: