]
Hynek Švábek commented on WFLY-7865:
------------------------------------
No, there is not path resource named java.io.tmpdir. It was only example. I don't
think it is possible to get this functionality through relative-to. What do you think?
It doesn't matter how but I expect some way to define path to CS file outside of EAP
folder.
We cannot define CS file location outside of EAP directory
----------------------------------------------------------
Key: WFLY-7865
URL:
https://issues.jboss.org/browse/WFLY-7865
Project: WildFly
Issue Type: Bug
Components: Security
Reporter: Hynek Švábek
Assignee: Peter Skopek
Priority: Critical
We aren't able define location of CS file outside of EAP directory. When user has CS
file on NFS he isn't able to reach this file.
Define CS file location to JBOSS_HOME/Standalone/data directory:
{code}
/subsystem=elytron/credential-store=CredStore001:add(uri="cr-store://test/cs123.jceks?create.storage=true",
credential-reference={clear-text=pass123}, relative-to=jboss.server.data.dir)
{code}
When I try set relative to TEMP directory:
{code}
/subsystem=elytron/credential-store=CredStore002:add(uri="cr-store://test/cs123.jceks?create.storage=true",
credential-reference={clear-text=pass123}, relative-to=java.io.tmpdir)
{code}
I get this error
{code}
{
"outcome" => "failed",
"failure-description" => {
"WFLYCTL0412: Required services that are not installed:" =>
["jboss.server.path.\"java.io.tmpdir\""],
"WFLYCTL0180: Services with missing/unavailable dependencies" =>
["org.wildfly.security.credential-store.CredStore002 is missing
[jboss.server.path.\"java.io.tmpdir\"]"]
},
"rolled-back" => true
}
{code}
*NOTE:*
*relative-to* is resolved here
https://github.com/wildfly-security/elytron-subsystem/blob/c223be428b9a6f...