-
Bug
-
Resolution: Done
-
Major
-
7.1.0.DR17
-
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".
- is cloned by
-
ELY-1125 WildFly Elytron Tool, Omitting --location for Vault command leads to wrong credential store storage file in tool output and in summary output.
- Resolved
- is incorporated by
-
JBEAP-10411 WildFly Elytron Tool, Summary output must reflect chosen option, now there is always CLI command for add new credential store.
- Closed
-
JBEAP-11127 Upgrade Wildfly-Elytron-Tool to 1.0.0.Beta6
- Closed
- is related to
-
JBEAP-9934 CS tool, Without --location parameter a credential store storage file isn't saved (or save as is expected).
- Closed