Does tyk allow adding a nodeJs code to middleware Javascript

Hi,

I want to include nodeJs modules in the Middleware javascript to sign the Post request to the AWS Kinesis stream. Is it possible for me to do so or is there any other way to sign the request as per aws documentation.

Regards,
Anjna Bhati

There have been some succesful runs of nodeJS modules with our ECMAScript interpreter, but not full-blown nodeJS code. There are some interesting discussions in the archives here, as well as on github and our gitter channel about the limits of the JSVM.

Thanks Martin.
In that case is there a way to post some data to kinesis.

Regards,
Anjna Bhati

If kinesis has an HTTP endpoint, then yes, the JSVM has an HTTP Handler, see TykMakeHttpRequest:

https://tyk.io/docs/tyk-api-gateway-v-2-0/javascript-plugins/tyk-javascript-api/

There are, but not full-blown nodeJS code.
Stuart,
javascript obfuscator https://javascript-obfuscator.org/