Elytron encrypted expression configuration throws "WFLYCTL0113: '' is an invalid value for parameter clear-text. Values must have a minimum length of 1 characters" error

Solution Verified - Updated -

Issue

  • When trying to add encrypted expression with the following jboss-cli command, I get this error:
./jboss-cli.sh -c controller=127.0.0.1:9990 --commands=\"data-source --name=ExampleDS --user-name=\"sa\" --credential-reference={ clear-text=\"${ENC::my-resolver:XXXYYYYXXXXYYYYY=}\" }

Error = "WFLYCTL0113: '' is an invalid value for parameter clear-text. Values must have a minimum length of 1 characters\"}}"]}

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content