KrakenD started in late 2016 as a library for engineers to create fast and reliable API Gateways in no time. Today KrakenD is a fully-fledged open source API gateway and the reference stateless API gateway.
Questions tagged [krakend]
81 questions
0
votes
2 answers
KrakenD - ERROR parsing the configuration file: loading flexible-config settings
I'm trying to use krakend's flexible configuration, but there's no way to get it started in a simple way
ERROR parsing the configuration file: loading flexible-config settings:
2022-07-19T08:48:21.279006680Z - "config/settings/dev": open…

sefhi
- 70
- 1
- 6
0
votes
1 answer
krakend how to handle multiple api keys
I am trying to understand and use krakend as an API gateway within our system. One of the use cases I am trying to achieve is the usage of apikeys.
This documentation of krakend (https://www.krakend.io/docs/enterprise/authentication/api-keys/)…

Mopparthy Ravindranath
- 3,014
- 6
- 41
- 78
0
votes
1 answer
Krakend can't get running services from consul (Docker)
I am using Consul as SD and while I am running multiple instances I want make gateway recognize them all to load balance.
In case of hardcoded host for Krakend config everything works fine
I was going step by step with this:…

Sublime_bot47
- 5
- 2
0
votes
1 answer
Krakend download for windows not available
Krakend on their official website don't have downloadable .exe file for windows platform.
Does only to work with krakend on the windows is using docker ?

jackz_sparrow
- 23
- 8
0
votes
1 answer
How to forbid access to certain endpoint for requests out of localhost using KrakenD?
I have two endpoints and I want one of them to be accessible by requests from the localhost only. The other one should receive requests from anywhere. In the Security section of the documentation I found the next configuration:
"extra_config": {
…
0
votes
1 answer
Kraken API Gateway Container Crashes When Adding TLS Support
My Kraken (version 2) deployment crashes any time I add the TLS key to the config file.
Step 1: I generated a public and private key pair using OpenSSL.
> openssl genrsa -out private-key.pem 4096
> openssl rsa -in private-key.pem -pubout -out…

RobbieS
- 120
- 12
0
votes
0 answers
Lua script for krakend
I written a simply krakend.json configuration to configure my endpoint. This configuration call a Lua script, for the moment, it prints only the body response.
{
"version": 2,
"extra_config": {
…

Giuseppe Matera
- 1
- 1
0
votes
1 answer
Transform request data in Krakrnd with lua
Using Krakend as api gateway.
I have an endpoint configured in krakend.json:
"endpoint":"/call",
"extra_config":{
"github.com/devopsfaith/krakend-lua/proxy":{
"sources":[
"/function.lua"
],
…

maiky_forrester
- 598
- 4
- 19
0
votes
1 answer
Getting 401 Unauthorized error while using custom Http Handler (Go Plugin) in KrakenD
I am trying to build http plugin by using go lang to add custom logic in KrakneD. But Currently I am getting 500 Internal server error from KrakenD and 401 unauthorized error in backend. When I debugged more, then I could see bearer token is not…

Mega
- 1
0
votes
1 answer
How to apply rate limits on backend configuration in krakenD
I have a krakend configuration for endpoint as below
{
"endpoint": "/api/login",
"method": "POST",
"output_encoding": "no-op",
"headers_to_pass": [
"*"
],
…

Kavya
- 105
- 1
- 15
0
votes
1 answer
Why is an HTTP 500 returned when hitting API endpoint via KrakenD API Gateway?
Problem summary:
I have a k3s instance running on 192.168.23.231. Port 30001 is mapped to a REST API app I built. Port 31166 is mapped to Krakend. When I enter http://192.168.23.231:31166/datamanager/hello into my browser, I get an HTTP 500 error…

Robert S
- 496
- 4
- 14
0
votes
1 answer
KrakenD - prevent changing response
I'm newbie with KrakenD. I tried configure this API Gateway to not modify my response from backend. Here is excerpt from ma configuration:
"endpoint": "/mycompany/someservice/{id}",
"output_encoding": "no-op",
"backend": [{
…

John Smith
- 173
- 2
- 10
0
votes
1 answer
KrakenD catchall path
I have two paths in KrakenD config: /city/toronto and /city/vancouver. I want to create another path /city/other that would catch every other city that would be provided.
I know at first glance one would say: make the city a path parameter or one…

Billy Billy
- 423
- 4
- 14
0
votes
1 answer
Getting started with KrakenD
I need some beginner help to KrakenD. I am running it on Ubuntu. The config is provided below.
I am able to reach the /healthz API without problem.
My challenge is that the /hello path returns error 500. I want this path to redirect to a Quarkus app…

Billy Billy
- 423
- 4
- 14
0
votes
0 answers
Lua scripting language: modify a response body in API gateway
I would like to modify the response body returned by the backend.
As background I'll detail my specific problem (but I don't require a solution to the specific problem, just the method for manipulating a response body). I want to insert/add a key…

Neil
- 3,020
- 4
- 25
- 48