Hi Manu,

Values for these parameters are set at the deploy time and can only have
static values.
Unfortunately there is no way achieve this using vfs proxy.

In inbound endpoints, we have provided a way to fetch parameters from the
registry.
However still we cannot use expressions like vault-lookup for inbound
parameters.

Thanks.


On Fri, Jun 10, 2016 at 2:48 AM, Manuranga Perera <[email protected]> wrote:

> I have a FTP secured by a password/username. I want to secure the
> password.I can use vfs encrypt utils [1], but it is trivially decodable.
>
> Is there a way to use a secure vault for this?
>
> I tried following
>
> <proxy xmlns="http://ws.apache.org/ns/synapse"; name="vfsy"
> transports="https http vfs" startOnLoad="true" trace="disable">
>    <target>
>       <inSequence>
>          <log/>
>       </inSequence>
>    </target>
>    <parameter name="transport.vfs.FileURI">*{wso2:vault-lookup('vfsUrl')}*
> </parameter>
>    <parameter name="transport.vfs.ContentType">text/plain</parameter>
>    ...
> </proxy>
>
> but unfortunately that didn't work
>
> [2016-06-09] ERROR - VFSTransportListener Repeatedly failed to resolve the
> file URI: {wso2:vault-lookup('vfsUrl')}
> org.apache.commons.vfs2.FileSystemException: Could not find file with URI
> "{wso2:vault-lookup('vfsUrl')}" because it is a relative path, and no base
> URI was provided.
>
>
> [1]
> http://wso2.com/library/articles/2012/01/wso2-esb-example-file-exchanging-hub-part-1/
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : [email protected]
>



-- 
*Isuru Udana*
Technical Lead
WSO2 Inc.; http://wso2.com
email: [email protected] cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to