2 Replies Latest reply on Apr 20, 2012 12:28 PM by daniemarques

    Read vault at runtime

    daniemarques

      Hello

       

      I'm using JBOSS AS 7 and protecting the datasource passwords with vault.

       

      It works fine for the passwords in standalone.xml, but i also need to read some entries stored in the vault during runtime.

       

      Is any easy way to tell jboss to resolve the expressions ${VAULT::...} or read the vault configuration and initialize the vault so I can do the retrieval myself?

       

      Thanks in advance.

        • 1. Re: Read vault at runtime
          anil.saldhana

          What are those entries?

           

          The way it works is,  standalone xml processing automatically figures out that something ${} is a reg exp and deconstructs it.  There is an expression resolver in AS7.1 but I am unsure if that is exposed to the applications.

          • 2. Re: Read vault at runtime
            daniemarques

            The best solution would be to automatically resolve the expressions in the application.

             

            If is not possible I need to read the configuration of the vault: <vault>...</vault>, so I can start the vault by myself to resolve the expressions in the application.

             

            Thanks