[
https://issues.jboss.org/browse/WFCORE-3009?page=com.atlassian.jira.plugi...
]
Brian Stansberry updated WFCORE-3009:
-------------------------------------
Component/s: CLI
I'm adding the CLI component to this as I see nothing in the server side code that
would change the value of this vault-option. The vault-option attribute is an opaque
key/value map to the server side management code, which just takes the attribute's DMR
value, does a simple generic conversion into a Map<String, String> and passes that
to the PicketBox code.
[~jfdenise] might the CLI be modifying this value client side?
Incorrect path separator added to the end of the ENC_FILE_DIR
property when defining a vault in Windows
-------------------------------------------------------------------------------------------------------
Key: WFCORE-3009
URL:
https://issues.jboss.org/browse/WFCORE-3009
Project: WildFly Core
Issue Type: Bug
Components: CLI, Domain Management, Security
Affects Versions: 3.0.0.Beta27
Reporter: Matthew Casperson
Priority: Minor
Executing this command:
{code:java}
/host=master/core-service=vault:add(vault-options={"KEYSTORE_URL" =>
"C:\wildfly_slave\wildfly-11.0.0.Alpha1\domain\configuration\keystore.vault",
"KEYSTORE_PASSWORD" => "Password01", "KEYSTORE_ALIAS"
=> "vault", "SALT" => "12345678",
"ITERATION_COUNT" => "50", "ENC_FILE_DIR" =>
"C:\wildfly_slave\wildfly-11.0.0.Alpha1\domain\configuration\vault"})
{code}
Will result in this element in the XML:
{code:xml}
</extensions>
<vault>
<vault-option name="KEYSTORE_URL"
value="C:\wildfly_slave\wildfly-11.0.0.Alpha1\domain\configuration\keystore.vault"/>
<vault-option name="KEYSTORE_PASSWORD"
value="MASK-223/wEo1GLELe8EuQa5u20"/>
<vault-option name="KEYSTORE_ALIAS" value="vault"/>
<vault-option name="SALT" value="12345678"/>
<vault-option name="ITERATION_COUNT" value="50"/>
<vault-option name="ENC_FILE_DIR"
value="C:\wildfly_slave\wildfly-11.0.0.Alpha1\domain\configuration\vault/"/>
</vault>
{code}
Note the incorrect slash on the end of the ENC_FILE_DIR option. I assume this value is
being normalised to include a trailing slash, but the wrong character is being selected on
a Windows system.
WildFly seems quite happy with this incorrect character, but external tools reading this
path have to account for the unexpected value.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)