@@ -59,14 +59,17 @@ public void testParseVmArgsHandlesArgNormalization(String raw, String expectedIn
5959 }
6060
6161 @ TableTest ({
62- "scenario | raw | isIncluded | vmArg " ,
63- "java password excluded | -Djava.net.password=hunter2 | false | -Djava.net.password=hunter2 " ,
64- "sun token excluded | -Dsun.auth.token=abc123 | false | -Dsun.auth.token=abc123 " ,
65- "dd api key excluded | -Ddd.api-key=deadbeef | false | -Ddd.api-key=deadbeef " ,
66- "dd app key excluded | -Ddd.app-key=deadbeef | false | -Ddd.app-key=deadbeef " ,
67- "dd application key excluded | -Ddd.application-key=deadbeef | false | -Ddd.application-key=deadbeef " ,
68- "java logging kept | -Djava.util.logging.config.file=x | true | -Djava.util.logging.config.file=x" ,
69- "osgi install kept | -Dosgi.install.area=/opt/app | true | -Dosgi.install.area=/opt/app "
62+ // Exclusion patterns are aligned with JDK JEP-8372760 (JFR In-Process Data Redaction).
63+ "scenario | raw | isIncluded | vmArg " ,
64+ "jaas login config excluded | -Djava.security.auth.login.config=/etc/jaas.conf | false | -Djava.security.auth.login.config=/etc/jaas.conf " ,
65+ "java socks password excluded | -Djava.net.socks.password=hunter2 | false | -Djava.net.socks.password=hunter2 " ,
66+ "dd pwd excluded | -Ddd.db.pwd=hunter2 | false | -Ddd.db.pwd=hunter2 " ,
67+ "dd passphrase excluded | -Ddd.ssl.passphrase=topsecret | false | -Ddd.ssl.passphrase=topsecret " ,
68+ "dd api key excluded | -Ddd.api-key=deadbeef | false | -Ddd.api-key=deadbeef " ,
69+ "dd app key excluded | -Ddd.app-key=deadbeef | false | -Ddd.app-key=deadbeef " ,
70+ "dd application key excluded | -Ddd.application-key=deadbeef | false | -Ddd.application-key=deadbeef " ,
71+ "java logging kept | -Djava.util.logging.config.file=/opt/logging.props | true | -Djava.util.logging.config.file=/opt/logging.props " ,
72+ "osgi install kept | -Dosgi.install.area=/opt/app | true | -Dosgi.install.area=/opt/app "
7073 })
7174 public void testParseVmArgsExcludesSecretLikeSystemProperties (
7275 String raw , boolean isIncluded , String vmArg ) {
0 commit comments