KB Article #182387

Execute process filter environment

Problem

It should be noted that the Execute Process filter will run an external process in API Gateway runtime environment rather than the default user environment.

This might lead to unexpected results because API Gateway bundles OpenSSL libraries which are also part of the O/S. This has been seen to effect executables like curl and ssh in the past. Applying an API Gateway Update can therefore change the execute process runtime environment.

Resolution

Any process can be tested in the API Gateway environment outside of the execute process filter by running it from the vrun command like this.

/opt/Axway-7.7/apigateway/posix/bin/vrun external-process

so in the case of curl to see which libraries it loads through execute process

/opt/Axway-7.7/apigateway/posix/bin/vrun ldd /usr/bin/curl

If it becomes necessary to setup a special environment for the external process this can be done at the start of the process or via a wrapper script particularly to set a custom PATH and LD_LIBRARY_PATH. Any other environment variables required can be set here or in the Execute Process filter Advanced section (see below).