Use environment variable for jwt_source in API def JSON


I’m using Tyk CE 2.3.5. The APIs are configured to use JWT authentication with HMAC encryption.

I’m looking for a way to pass in the value of “jwt_source” through the command line when launching Tyk gateway and have the API definition JSON reference this value as a variable instead of a hard-coded value. I’m trying to avoid hard-coding the HMAC signing key. Is this possible?

The parameter jwt_source is not listed under BTW, in which deployment of Tyk GW, should I find these? I have the Tyk GW rpm installed on CentOS. After the installation, I don’t see any of these “TYK_GW” env variables.


1 Like