Bug 1286677 - EAP CLI resolve-parameter-values set to true does not recognise vaulted strings
Summary: EAP CLI resolve-parameter-values set to true does not recognise vaulted strings
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: CLI
Version: 6.4.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Lin Gao
QA Contact: Petr Kremensky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-30 13:32 UTC by Tom Fonteyne
Modified: 2019-08-15 05:52 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-01-11 09:37:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker PRODMGT-1784 0 Major Pending Product Management Triage Vault Expression Resolution in CLI 2018-07-17 17:57:40 UTC
Red Hat Issue Tracker WFCORE-1274 0 Major Closed CLI resolve-parameter-values set to true does not recognise vaulted strings 2018-07-17 17:57:40 UTC

Description Tom Fonteyne 2015-11-30 13:32:50 UTC
When enabling

<resolve-parameter-values>true</resolve-parameter-values> 

in "bin\jboss-cli.xml"

vaulted string will get misinterpreted.

Example, if a command has "${VAULT::tom::tom::1}" then
the parser sees this as  ${name:defaultValue}  with

  name="VAULT"
  defaultValue=":tom::tom::1"

Escaping the $ sign in various ways did not help. The only way is to switch <resolve-parameter-values> back to false.

Ideally, the parser should recognise vaulted string and pass then in unchanged.

It could be argued that this is an RFE instead of a bug. Please let me know if you think so.

Comment 2 JBoss JIRA Server 2016-01-07 03:22:35 UTC
Lin Gao <lgao> updated the status of jira WFCORE-1274 to Coding In Progress

Comment 6 JBoss JIRA Server 2016-01-11 05:31:59 UTC
Lin Gao <lgao> updated the status of jira WFCORE-1274 to Closed

Comment 7 Lin Gao 2016-01-11 06:00:45 UTC
The preceding '$' to escape the expression in CLI was added as a feature when implementing: https://issues.jboss.org/browse/WFCORE-453, PR: https://github.com/wildfly/wildfly-core/pull/413, which introduced many changes beyond the '$' escape function.

And there is a workaround for this by adding a system property:

JAVA_OPTS="$JAVA_OPTS -Dvault.string=$\{VAULT::text::password::1\}"

in jboss-cli.sh, then specify the VAULT string:

/core-service=management/ldap-connection=ldap_connection:add(search-credential="${vault.string}", url="ldaps://myurl:636", search-dn="my=search-dn")

So I propose to nack it for EAP 6.4.x


Note You need to log in before you can comment on or make changes to this bug.