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

jdk_security3_0 FAILED SecurityException: Property jdk.tls.disabledAlgorithms cannot be set programmatically when in FIPS mode #20790

Open
JasonFengJ9 opened this issue Dec 9, 2024 · 3 comments

Comments

@JasonFengJ9
Copy link
Member

Failure link

From internal Test_openjdk17_j9_extended.openjdk_ppc64le_linux_fips140_3_openjceplusfips (rhel8le-rtp-rt6-1)

java version "17.0.14-beta" 2025-01-21
IBM Semeru Runtime Certified Edition 17.0.14+6-202412071534 (build 17.0.14-beta+6-202412071534)
Eclipse OpenJ9 VM 17.0.14+6-202412071534 (build master-501751012f, JRE 17 Linux ppc64le-64-Bit Compressed References 20241207_827 (JIT enabled, AOT enabled)
OpenJ9   - 501751012f
OMR      - b893b2be2
JCL      - 5c70595969 based on jdk-17.0.14+6)

Rerun in Grinder - Change TARGET to run only the failed test targets

Optional info

Failure output (captured from console output)

[2024-12-07T16:40:42.546Z] variation: Mode150
[2024-12-07T16:40:42.546Z] JVM_OPTIONS:  -XX:+UseCompressedOops -Xverbosegclog  -Dsemeru.fips=true -Dsemeru.customprofile=OpenJCEPlusFIPS

[2024-12-07T16:41:33.938Z] TEST: javax/net/ssl/ciphersuites/TLSWontNegotiateDisabledCipherAlgos.java#Server

[2024-12-07T16:41:33.940Z] STDERR:
[2024-12-07T16:41:33.940Z] java.lang.SecurityException: Property 'jdk.tls.disabledAlgorithms' cannot be set programmatically when in FIPS mode
[2024-12-07T16:41:33.940Z] 	at java.base/openj9.internal.security.RestrictedSecurity.checkSetSecurityProperty(RestrictedSecurity.java:448)
[2024-12-07T16:41:33.940Z] 	at java.base/java.security.Security.setProperty(Security.java:806)
[2024-12-07T16:41:33.940Z] 	at TLSWontNegotiateDisabledCipherAlgos.main(TLSWontNegotiateDisabledCipherAlgos.java:61)
[2024-12-07T16:41:33.940Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2024-12-07T16:41:33.940Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[2024-12-07T16:41:33.940Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2024-12-07T16:41:33.940Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:575)
[2024-12-07T16:41:33.940Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
[2024-12-07T16:41:33.940Z] 	at java.base/java.lang.Thread.run(Thread.java:853)
[2024-12-07T16:41:33.940Z] 
[2024-12-07T16:41:33.940Z] JavaTest Message: Test threw exception: java.lang.SecurityException: Property 'jdk.tls.disabledAlgorithms' cannot be set programmatically when in FIPS mode

[2024-12-07T16:59:42.683Z] jdk_security3_0_FAILED

FYI @jasonkatonica

Copy link

github-actions bot commented Dec 9, 2024

Issue Number: 20790
Status: Open
Recommended Components: comp:jclextensions, comp:test, comp:vm

@jasonkatonica
Copy link
Contributor

This should be ignored and we plan on adding it to the ignore list.

@JasonFengJ9
Copy link
Member Author

Excluded by ibmruntimes/openj9-openjdk-jdk17#422

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

No branches or pull requests

2 participants