Questions tagged [krakend]

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.

Official Website

Github

81 questions
1
vote
1 answer

How to dockerize krakend with lua dependencies

I'm not able to dockerize a krakend application, which has lua dependencies. This is my Dockerfile FROM ubuntu RUN apt-get update && apt-get install -y lua5.3 liblua5.3-dev luarocks RUN luarocks install lunajson COPY . . COPY script.lua…
Saran K
  • 31
  • 4
1
vote
1 answer

KrakenD sequential endpoint wrong response

krakenD version: 2.2.1 go version: go1.19.3 I want to send sequential requests to two different endpoints using krakenD's sequential feature. To summarize my case briefly: These two services can return both success (200) and error (4**). If the…
Hulusi
  • 17
  • 1
  • 6
1
vote
1 answer

invalid node type panic when implementing a plugin for KrakenD

im working on a plugin for no redirects. Im using krakend-ce 2.2.1 (with golang 1.19) im getting this panic: gw_krakend_1 | [KRAKEND] 2023/03/15 - 21:09:06.675 ? DEBUG no_redirect_plugin: request received https://127.0.0.1:8443/ABC gw_krakend_1 |…
1
vote
0 answers

I want to configure the keycloak client tab with the krakend API gateway,

I want to configure the keycloak client tab with the krakend API gateway, I can't find documentation how to configure mainly the fields "Redirect URI", "Root URL" and Valid redirect URIs enter image description here Version Krakend 2.1 Keycloak …
1
vote
0 answers

How to Convert object to array of objects in luaScript-KrakenD

I have mentioned the code in which i have that query.I am requesting you to help me on the same lua or krakend config or Both. (Note Key is not exists) LuaScript local docDetails = responseData:get("DocDetails") …
1
vote
1 answer

Custom Plugin in Go for KrakenD

Know anyone which function i have to use in Go for my plugin to inject a custom header for each incoming request to Gateway Krakend ???? Thanks !!! i have create a plugin with this function to inject a custom header into for each incoming request in…
1
vote
0 answers

How to enforce keycloak policies with krakend

We want to protect krakend endpoints by using the keycloak policies. From the keycloak documentation (here) it's possible by using the adapters, but there is none for Go If krakend cannot do this, please advice a tool that does. Thanks
holyris
  • 171
  • 11
1
vote
1 answer

KrakenD returns a 500 when the body of the backend endpoint doesnt have any data

I am using KrakenD to make a call to a Salesforce endpoint /services/data/v56/jobs/ingest/{{_jobId}}/batches This backend endpoint doesn't return any data in the response body and as a result the call fails with a 500. From the logs - [00] [KRAKEND]…
codeMan
  • 5,730
  • 3
  • 27
  • 51
1
vote
1 answer

Does Istio provide the ability to merge content of multiple backend APIs in a single endpoint?

We're evaluating Istio and KrakenD for our API Gateway solution and trying to understand the differences in their functionality. One thing that stood out in the KrakenD docs is its ability to merge the content of multiple backend APIs into a single…
1
vote
1 answer

Cookie set on KrakenD

I am trying to use the http-client plugin to set a cookie on KrakenD and send it to the client. This cookie should be sent after retrieving the response from the backend. Unfortunately it does not work. The cookie is created successfully in the…
Rabmam
  • 11
  • 1
1
vote
1 answer

RabbitMQ/Krakend/NestJS - How can I post the consumed message through Krakend API's async agent?

This is my config for krakend.json "async_agent": [ { "name": "test-agent", "connection": { "max_retries": 10, "backoff_strategy": "exponential-jitter" }, "consumer": { "topic": "krakend", …
heneftees
  • 13
  • 2
1
vote
1 answer

Record and Persist API call details in KrakenD for API monetization

We are trying out KrakenD as a primary API gateway for our backend services. The plugins available are only for response manipulation, we want to go a step ahead and start recording all the API calls and persist them in a database. I was checking…
Mahesh H Viraktamath
  • 818
  • 3
  • 14
  • 34
1
vote
3 answers

KrakenD: Trouble to upload file though gateway via POST request using Form-Data

Describe what are you trying to do In one of my applications, I need to upload a file to my server from my angular website. Basically, to do this I use the FormData object to which append several informations, like the file name, and others. To send…
logik
  • 21
  • 5
1
vote
1 answer

panic: runtime error: invalid memory address or nil pointer dereference in Krakend

I'm trying to run krakend run -c config.json, but it returns this here is my config.json: "version": 3, "name": "DigitalDocs API Gateway", "port": 8000, "timeout": "15000ms", "cache_ttl": "300s", "extra_config": { …
nuraska90
  • 27
  • 6
1
vote
2 answers

Signalr and Websockets on KrakenD API Gateway

I have had trouble implementing SignalR Microservices when using a KrakenD API Gateway. I presume it is possible as I have had it working with both an NGINX Load Balancer and an Emissary API Gateway respectively. KrakenD, to my current…
Matt
  • 97
  • 9