J_D
J_D

Reputation: 3596

KrakenD - Adding custom header from a datastore to requests

We started to use KrakenD API Gateway, and we are trying to see how to do the following:

It looks almost what Martian allows (https://www.krakend.io/docs/backends/martian/), but instead of static configuration, it would read that data from Redis to enrich the request headers

Is it possible without forking KrakenD?

Upvotes: 1

Views: 1237

Answers (1)

alo
alo

Reputation: 1440

For almost any scenario, it is not necessary to fork KrakenD. In this case, you would need to create your request modifier plugin: https://www.krakend.io/docs/extending/plugin-modifiers/

The plugin would take care of that Redis connection and enriching the request to the backend.

Upvotes: 0

Related Questions