LuaRocks.org had a security incident in September 2026. Read the incident report.

kong-upstream-jwt

A plugin for Kong which adds a signed JWT to HTTP Headers of outgoing requests

$ luarocks install kong-upstream-jwt

API Providers require a means of cryptographically validating that requests they receive were: A. proxied by Kong, and B. not tampered with during transmission from Kong -> API Provider. This token accomplishes both as follows:

1. **Authentication** & **Authorization** - Provided by means of JWT signature validation. The API Provider will validate the signature on the JWT token (which is generating using Kong's RSA x509 private key), using Kong's public key. This public key can be maintained in a keystore, or sent with the token - provided API providers validate the signature chain against their truststore.
2. **Non-Repudiation** - SHA256 is used to hash the body of the HTTP Request Body, and the resulting digest is included in the `payloadhash` element of the JWT body. API Providers will take the SHA256 hash of the HTTP Request Body, and compare the digest to that found in the JWT. If they are identical, the request remained intact during transmission.

Versions

1.4-03 years ago5,149 downloads
1.3-03 years ago(revision: 2)1,011 downloads
1.2-16 years ago(revision: 3)7,666 downloads
1.1-16 years ago(revision: 3)350 downloads
1.0-16 years ago337 downloads
0.7-07 years ago2,478 downloads
0.6-07 years ago583 downloads
0.5-47 years ago1,389 downloads
0.4-48 years ago943 downloads
0.3-78 years ago319 downloads
0.3-68 years ago338 downloads
0.3-58 years ago150 downloads
0.3-48 years ago300 downloads
0.3-38 years ago47 downloads
0.3-28 years ago3,334 downloads
0.3-18 years ago196 downloads
0.2-18 years ago65 downloads
0.1-18 years ago61 downloads

Manifests