Skip to content

Kong APIM plugin to log HTTP request and response payload into file.

License

Notifications You must be signed in to change notification settings

aloulouamine/kong-plugin-http-payload-file-log

Repository files navigation

kong-plugin-http-payload-file-log

TODO

Plugin in action

Requirements

  • Docker & Docker compose
  • curl

Description

Example will start a kong instance and an example api called foggy.

This this example is used as developer environment.

When js plugin change kong should be restarted.

Configuration

Run

docker-compose up -d

Example

curl --request GET \
  --url http://localhost:9000/foggy/api/user

Response should be something like:

{
	"name": "Thomas Sanchez",
	"birthday": "Tue Mar 26 00:24:39 UTC 1974",
	"email": "ipue32@gmail.com",
	"mobile": "0692800513",
	"iban": "MT31QWDG66590wxenqcL5u5dtlUrF74",
	"bic": "LQVXVWY6"
}

TODO

  • implement http payload file logging
  • create an integration example (use it as dev env)
  • write readme documentation
  • define response and request paylaod log size limit
  • support http payload log anonymization
  • benchmarking request time
  • support content encodings

About

Kong APIM plugin to log HTTP request and response payload into file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published