-
Bug
-
Resolution: Done
-
Major
-
None
-
None
Omitting --location for Vault command leads to wrong credential store storage file in tool output and in summary output.
In this case when is omitted --location
- tool output contains credential store storage file name with "enc-dir" path prefix.
- summary output contains in location double slash in case of enc-dir value ends by slash
Expected behaviour:
Tool output must show only storage file name.
Summary output must not contain double slash in location
How to reproduce
Download all attachments to same location as wildfly-elytron-tool.jar
option --location must be omitted, --enc-dir must end by slash.
[hsvabek@dhcp-10-40-5-100 003]$ java -jar wildfly-elytron-tool.jar vault --enc-dir ./ --keystore server.store --keystore-password secretsecret --alias jboss -f Vault (enc-dir="./";keystore="server.store") converted to credential store ".//converted-vault.cr-store" Vault Conversion summary: -------------------------------------- Vault Conversion Successful CLI command to add new credential store: /subsystem=elytron/credential-store=cs:add(relative-to=jboss.server.data.dir,location=".//converted-vault.cr-store",implementation-properties={},credential-reference={clear-text="MASK-13KrO2ZNhwNg3UxmIt.02D;12345678;23"})
Now you can see ".//converted-vault.cr-store" on tool output right value is "converted-vault.cr-store"
and location=".//converted-vault.cr-store" in summary output for which is correct value "./converted-vault.cr-store".
- clones
-
JBEAP-10692 WildFly Elytron Tool, Omitting --location for Vault command leads to wrong credential store storage file in tool output and in summary output.
- Closed