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.3-0112 days ago622 downloads
1.2-12 years ago(revision: 3)7,631 downloads
1.1-12 years ago(revision: 3)315 downloads
1.0-12 years ago262 downloads
0.7-03 years ago2,445 downloads
0.6-04 years ago550 downloads
0.5-44 years ago1,356 downloads
0.4-45 years ago897 downloads
0.3-75 years ago243 downloads
0.3-65 years ago303 downloads
0.3-55 years ago20 downloads
0.3-45 years ago36 downloads
0.3-35 years ago14 downloads
0.3-25 years ago11 downloads
0.3-15 years ago142 downloads
0.2-15 years ago32 downloads
0.1-15 years ago12 downloads

Manifests