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

Read vault at runtime

daniemarques Newbie

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 Master

    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 Newbie

    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