[jboss-jira] [JBoss JIRA] (ELY-1097) FIPS CS, specific error message if keyAlias does not exist.

Chao Wang (JIRA) issues at jboss.org
Thu May 11 06:56:00 EDT 2017


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

Chao Wang reassigned ELY-1097:
------------------------------

    Assignee: Chao Wang  (was: Darran Lofthouse)


> FIPS CS, specific error message if keyAlias does not exist.
> -----------------------------------------------------------
>
>                 Key: ELY-1097
>                 URL: https://issues.jboss.org/browse/ELY-1097
>             Project: WildFly Elytron
>          Issue Type: Bug
>            Reporter: Martin Choma
>            Assignee: Chao Wang
>             Fix For: 1.1.0.Beta39
>
>
> There is same error message if keyAlias does not exists and if exists but is of different type than SecretKey
> _CredentialStoreException: ELY09512: External storage key under alias "key-alias" has to be a SecretKey_
> When alias does not exist error message should be more specific, e.g:
> {{CredentialStoreException: ELY0XXXX: External storage key under alias "key-alias" does not exists}}
> {code}
> 09:48:44,127 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service org.wildfly.security.credential-store.fips-credential-store: org.jboss.msc.service.StartException in service org.wildfly.security.credential-store.fips-credential-store: WFLYELY00004: Unable to start the service.
> 	at org.wildfly.extension.elytron.CredentialStoreService.start(CredentialStoreService.java:119)
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: org.wildfly.security.credential.store.CredentialStoreException: ELY09512: External storage key under alias "key-alias" has to be a SecretKey
> 	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore$ExternalStorage.fetchStorageSecretKey(KeyStoreCredentialStore.java:1129)
> 	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore$ExternalStorage.init(KeyStoreCredentialStore.java:1105)
> 	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.setupExternalStorage(KeyStoreCredentialStore.java:885)
> 	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.load(KeyStoreCredentialStore.java:785)
> 	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.initialize(KeyStoreCredentialStore.java:183)
> 	at org.wildfly.security.credential.store.CredentialStore.initialize(CredentialStore.java:119)
> 	at org.wildfly.extension.elytron.CredentialStoreService.start(CredentialStoreService.java:117)
> 	... 5 more
> 09:48:44,130 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 4) WFLYCTL0013: Operation ("add") failed - address: ([
>     ("subsystem" => "elytron"),
>     ("credential-store" => "fips-credential-store")
> ]) - failure description: {"WFLYCTL0080: Failed services" => {"org.wildfly.security.credential-store.fips-credential-store" => "WFLYELY00004: Unable to start the service.
>     Caused by: org.wildfly.security.credential.store.CredentialStoreException: ELY09512: External storage key under alias \"key-alias\" has to be a SecretKey"}}
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list