WFLYCTL0476: Value for attribute 'credential-reference' is invalid: either 'clear-text' must be specified on i ts own or 'store' needs to be specified with at least one of 'clear-text' or 'alias'
Issue
- Getting error while trying to run below jboss-cli command as outlined in the Store datasource / database password in Elytron credential-store in JBoss EAP 7.1 or later solution
[standalone@localhost:9990 /] batch
[standalone@localhost:9990 / #] /subsystem=datasources/data-source=ExampleDS:write-attribute(name=credential-reference.store,value=myCredStore)
[standalone@localhost:9990 / #] /subsystem=datasources/data-source=ExampleDS:write-attribute(name=credential-reference.alias,value=DBpasswd)
[standalone@localhost:9990 / #] /subsystem=datasources/data-source=ExampleDS:undefine-attribute(name=password)
[standalone@localhost:9990 / #] run-batch
The batch failed with the following error (you are remaining in the batch editing mode to have a chance to c
orrect the error):
WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:
Step: step-1
Operation: /subsystem=datasources/data-source=ExampleDS:write-attribute(name=credential-reference.store,value=myCredStore)
Failure: WFLYCTL0476: Value for attribute 'credential-reference' is invalid: either 'clear-text' must be specified on its own
or 'store' needs to be specified with at least one of 'clear-text' or 'alias'
Environment
- Red Hat JBoss Enterprise Application Platform (JBoss EAP)
- 7.4.8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.