Skip to content

Commit c69c531

Browse files
MaskOpts param [HZG-362] (#1705)
New maskOpts parameter to mask sensitive data --------- Co-authored-by: Jack Green <JackPGreen@Gmail.com>
1 parent 6c9a8de commit c69c531

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/modules/configuration/pages/jvm-parameters.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,19 @@ You can use the `JAVA_OPTS` also to pass additional properties to Hazelcast:
2929
----
3030
JAVA_OPTS=-Dhazelcast.operation.thread.count=4 bin/jet-start
3131
----
32+
33+
To mask sensitive data in logs passed via `JAVA_OPTS`, use the `maskOpts` parameter.
34+
`maskOpts` should contain a comma-separated list of option keys to mask.
35+
This parameter must be included within `JAVA_OPTS`.
36+
37+
Usage example:
38+
[source,bash]
39+
----
40+
JAVA_OPTS="-Djavax.net.ssl.keyStorePassword=keypassword -Djavax.net.ssl.trustStorePassword=trustpassword -DmaskOpts=javax.net.ssl.keyStorePassword,javax.net.ssl.trustStorePassword"
41+
----
42+
This will produce logs like:
43+
44+
[source,bash]
45+
----
46+
... -Djavax.net.ssl.keyStorePassword=**** -Djavax.net.ssl.trustStorePassword=***
47+
----

0 commit comments

Comments
 (0)