Good afternoon.
In continuation of this topic, I would like to highlight a solution that will allow to avoid passwords appearing in plaintext in jboss-cli history and in audit log when encrypting them, as well as to reduce the number of commands and possible errors when executing them.
WF comes with a utility elytron-tool.sh, which allows you to perform various operations related to vaults in the Elytron subsystem. Among them is the password encryption operation.
The command for encryption will look like this:
$WILDFLY_HOME/bin/elytron-tool.sh credential-store --location /path/to/credential-store --type PropertiesCredentialStore --encrypt key --clear-text “<password>”
Command output:
Clear text encrypted to token 'RUxZAUMQbD0V34xzetwIDY5WsV/u/e49GPEdlzE******' using alias 'key'.
From this output you need to parse the token (bolded) and paste it into the following form:
${ENC::<resolver>:<token>}
This finished form can be used in the WF configuration.
As I said earlier, information about this command is not output to the jboss-cli history or audit log, because this utility does not interact with them directly.
вторник, 6 мая 2025 г. в 09:09:58 UTC+10, Brian Stansberry: