Skip to content

Conversation

@taoliult
Copy link
Contributor

This is a back port PR from PR: ibmruntimes/openj9-openjdk-jdk#1125

Added logic to handle restricted security profile sunset behavior using -Dsemeru.restrictedsecurity.suppresssunsetwarning and -Dsemeru.restrictedsecurity.ignoresunsetexpiration system properties.

When suppresssunsetwarning is true, all sunset warning messages are suppressed; if the profile is expired and
ignoresunsetexpiration is false, the JVM exits silently with status 1.

When suppresssunsetwarning is false. If the profile has expired and ignoresunsetexpiration is false, a fatal error is printed and the JVM terminates. If expired and ignoresunsetexpiration is true, a warning message is printed indicating uncertified cryptography may be active. If the profile will expire within six months, a generic warning message is printed.

@keithc-ca keithc-ca self-requested a review November 25, 2025 22:34
Added logic to handle restricted security profile sunset
behavior using -Dsemeru.restrictedsecurity.suppresssunsetwarning
and -Dsemeru.restrictedsecurity.ignoresunsetexpiration system
properties.

When suppresssunsetwarning is true, all sunset warning messages
are suppressed; if the profile is expired and
ignoresunsetexpiration is false, the JVM exits silently with
status 1.

When suppresssunsetwarning is false. If the profile has expired
and ignoresunsetexpiration is false, a fatal error is printed and
the JVM terminates. If expired and ignoresunsetexpiration is true,
a warning message is printed indicating uncertified cryptography
may be active. If the profile will expire within six months, a
generic warning message is printed.

Signed-off-by: Tao Liu <[email protected]>
@keithc-ca
Copy link
Member

Jenkins test sanity alinux jdk21

@keithc-ca
Copy link
Member

Testing jdk_restricted_security passed in https://openj9-jenkins.osuosl.org/job/Grinder/4867.

@keithc-ca keithc-ca merged commit 8bf8758 into ibmruntimes:openj9 Nov 26, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants