Property file passed via CLI does not resolve expressions with relative path value
Issue
- EAP 7 does not resolve expressions with relative path value from property file during CLI execution
/jboss-cli.sh --connect --file=vault.cli --properties=vault.properties
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0211: Cannot resolve expression '${vault.keystore.url}'",
"rolled-back" => true
}
Sample cli file and property file
vault.cli:
/core-service=vault:add( \
vault-options=[ \
("KEYSTORE_URL" => "${vault.keystore.url}"), \
("KEYSTORE_PASSWORD" => "${vault.keystore.password}"), \
("KEYSTORE_ALIAS" => "${vault.keystore.alias}"), \
("SALT" => "${vault.salt}"), \
("ITERATION_COUNT" => "${vault.iteration}"), \
("ENC_FILE_DIR" => "${vault.encfiledir}") \
] \
)
/core-service=vault:read-resource(recursive=true)
vault.properties:
vault.keystore.url=${jboss.server.config.dir}/vault/vault.keystore
vault.keystore.password=MASK-20z/5hRIeZClI0h6Wztl9Z
vault.keystore.alias=vault
vault.salt=12345678
vault.iteration=50
vault.encfiledir=${jboss.server.config.dir}/vault/
Environment
- Red Hat JBoss Enterprise Application Platform
- 7.0.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
