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?
Asked
Active
Viewed 90 times
1 Answers
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