[jboss-jira] [JBoss JIRA] (WFLY-7137) Attribute "required" on key-store makes no difference of behaviour

Darran Lofthouse (JIRA) issues at jboss.org
Tue Oct 11 09:17:01 EDT 2016


     [ https://issues.jboss.org/browse/WFLY-7137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darran Lofthouse updated WFLY-7137:
-----------------------------------
    Fix Version/s: 11.0.0.Alpha1


> Attribute "required" on key-store makes no difference of behaviour
> ------------------------------------------------------------------
>
>                 Key: WFLY-7137
>                 URL: https://issues.jboss.org/browse/WFLY-7137
>             Project: WildFly
>          Issue Type: Bug
>          Components: Security
>            Reporter: Martin Choma
>            Assignee: Jan Kalina
>            Priority: Critical
>             Fix For: 11.0.0.Alpha1
>
>
> There is attribute {{required}} which can be set on key-store, that should disable check "does keystore file exists?"
> {code}
> "required" => {
>     "type" => BOOLEAN,
>     "description" => "Is the file required to exist at the time the KeyStore service starts?",
>     "attribute-group" => "file",
>     "expressions-allowed" => true,
>     "nillable" => true,
>     "default" => false,
>     "requires" => ["path"],
>     "access-type" => "read-write",
>     "storage" => "configuration",
>     "restart-required" => "resource-services"
> },
> {code}
> However, when I try to use it, there is no difference if  {{required}} attribute is set to true or false.
> {code}
> [standalone at localhost:9990 /] /subsystem=elytron/key-store=server:add(type="jks", path="/path/non-existing", required=false)
> {
>     "outcome" => "failed",
>     "failure-description" => {
>         "WFLYCTL0080: Failed services" => {"org.wildfly.security.key-store.server" => "org.jboss.msc.service.StartException in service org.wildfly.security.key-store.server: WFLYELY00004: Unable to start the service.
>     Caused by: java.io.FileNotFoundException: /path/non-existing (No such file or directory)"},
>         "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.security.key-store.server"],
>         "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
>     },
>     "rolled-back" => true
> }
> [standalone at localhost:9990 /] /subsystem=elytron/key-store=server:add(type="jks", path="/path/non-existing", required=true)
> {
>     "outcome" => "failed",
>     "failure-description" => {
>         "WFLYCTL0080: Failed services" => {"org.wildfly.security.key-store.server" => "org.jboss.msc.service.StartException in service org.wildfly.security.key-store.server: WFLYELY00004: Unable to start the service.
>     Caused by: java.io.FileNotFoundException: /path/non-existing (No such file or directory)"},
>         "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.security.key-store.server"],
>         "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
>     },
>     "rolled-back" => true
> }
> {code}
> I have already seen people generating keystores in their app, so I think this option would be useful for them.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list