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

archiveArtifacts fingerprint #5635

Open
llxia opened this issue Sep 19, 2024 · 0 comments
Open

archiveArtifacts fingerprint #5635

llxia opened this issue Sep 19, 2024 · 0 comments

Comments

@llxia
Copy link
Contributor

llxia commented Sep 19, 2024

If the OS is in FIPS mode, MD5 is not available and we will get the following error in the test build

[2024-09-19T15:00:25.907Z] Archiving artifacts
[2024-09-19T15:00:26.471Z] Recording fingerprints
[2024-09-19T15:00:26.930Z] ERROR: Failed to record fingerprints
[2024-09-19T15:00:26.930Z] java.security.ProviderException: Error in Native Digest
[2024-09-19T15:00:26.930Z] 	at [email protected]/sun.security.provider.NativeDigest.<init>(NativeDigest.java:91)
[2024-09-19T15:00:26.930Z] 	at [email protected]/sun.security.provider.NativeMD5.<init>(NativeMD5.java:38)
[2024-09-19T15:00:26.930Z] 	at [email protected]/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
[2024-09-19T15:00:26.930Z] 	at [email protected]/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
[2024-09-19T15:00:26.930Z] 	at [email protected]/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
[2024-09-19T15:00:26.930Z] 	at [email protected]/java.security.Provider$Service.newInstanceOf(Provider.java:1953)
[2024-09-19T15:00:26.930Z] 	at [email protected]/java.security.Provider$Service.newInstanceUtil(Provider.java:1960)
[2024-09-19T15:00:26.930Z] 	at [email protected]/java.security.Provider$Service.newInstance(Provider.java:1935)
[2024-09-19T15:00:26.930Z] Caused: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: MD5, provider: SUN, class: sun.security.provider.NativeMD5)
[2024-09-19T15:00:26.930Z] 	at [email protected]/java.security.Provider$Service.newInstance(Provider.java:1942)
[2024-09-19T15:00:26.930Z] 	at [email protected]/sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
[2024-09-19T15:00:26.930Z] 	at [email protected]/sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
[2024-09-19T15:00:26.930Z] 	at [email protected]/java.security.MessageDigest.getInstance(MessageDigest.java:185)
[2024-09-19T15:00:26.930Z] 	at Jenkins v2.462.2//hudson.Util.getMd5(Util.java:666)
[2024-09-19T15:00:26.930Z] 	at Jenkins v2.462.2//hudson.Util.getDigestOf(Util.java:642)
[2024-09-19T15:00:26.930Z] Caused: java.io.IOException: MD5 not installed

internal issue

Jenkins can record the 'fingerprint' of files (most often jar files) to keep track of where/when those files are produced and used. https://www.jenkins.io/doc/pipeline/steps/core/

I think we don't need to record the fingerprints when we archive. If so, I would propose to turn it off. Otherwise, we will need to add the switch to turn it on and off based on whether the OS is in FIPS mode (as a workaround for now).

@smlambert what do you think?

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

No branches or pull requests

1 participant