1

In my scenario, I download files from FTP. My transport.vfs.FileURI look like vfs:sftp://login:password@ip/. Is it possible to set the login and password by dynamically retrieving the value from an environment variable?

ycr
  • 12,828
  • 2
  • 25
  • 45
Gregory
  • 41
  • 5

1 Answers1

0

You should be able to pass the entire URL like below. AFAIK you cannot concat multiple variables and construct the URL within the Parameter.

<parameter name="ransport.vfs.FileURI">$SYSTEM:SFTP_ENV_NAME</parameter>

You can also use the securevalt for this.

<parameter name="transport.vfs.FileURI">vfs:sftp://{wso2:vault-decrypt('encryptedValue')}</parameter>
ycr
  • 12,828
  • 2
  • 25
  • 45