Questions tagged [kong-plugin]

168 questions
0
votes
0 answers

Front End routing in Kong

I have a couple of microservices and a frontend running over different ports exposed via Kong. The issue is even for routes like "/add", "/edit", "/swagger" etc., the route for frontend which is "/" gets called. Service: abc-microservice Path:…
0
votes
1 answer

Kong Regex for Replacing String in URI

I am facing a particular issue with the "strip_path" feature available **Service Name**: application-svc **Service Path**: /application **Route for Service**: application-route **Route Path**: / **Strip_Path**: True **Backend API**:…
0
votes
1 answer

kong rate limiting plugin has no effect on request

I have deployed the following resources. kong in kong namespace service echo in poc namespace kubectl apply -f https://gist.githubusercontent.com/hbagdi/0d833181239a39172ba70cbec080bdb9/raw/7f46cf1c9e54562e2c23902daace7ac8edc40427/echo-server.yaml…
Rajiv Rai
  • 235
  • 4
  • 16
0
votes
1 answer

Kong dbless/kong-oidc - Is it possible to use kong-oidc plugin dbless?

I have not been able to find any documentation using the nokia/kong-oidc plugin in dbless mode. Is this possible?
Trevor
  • 363
  • 7
  • 20
0
votes
0 answers

Multiple files for Kong configuration

I'm planning to generate multiple Kong declarative files based on swagger yml. Is there a way to combine them into the one? The only option I see is to use Kong Deck, but it's not clear whether it works with DB-less mode. What's the good practice to…
Nikita
  • 4,435
  • 3
  • 24
  • 44
0
votes
1 answer

How to reference query parameters inside a Kong's plugin configuration?

I want to implement a simple redirect using Kong's request-termination & response-transformer plugins. The plugins mostly works, but I have an issue with handling query parameters. My configuration for the plugins is similar to this (note: I'm using…
GACy20
  • 949
  • 1
  • 6
  • 14
0
votes
1 answer

Kong is not able to find the custom plugin

I am trying to load a custom plugin in Kong. I installed the plugin using luarocks make which gave me an output kong-circuit-breaker 1.0.4-1 is now installed in /usr/local (license: MIT) . Now if I try to restart my kong docker container and then…
0
votes
0 answers

Kong expose 3rd party downstream API using JWT to authenticate

There is a 3rd party API, which requires API authentication for the application calling it using JWT token with refresh mechanism. The JWT token is for the application ( like client secret and key) and needs to be sent with each request, it will be…
Saheb
  • 1,392
  • 3
  • 13
  • 33
0
votes
0 answers

View what is in kong.singletons.cache ? (kong 0.11.0)

How can I find out what's inside the singleton cache ? I'm trying to find out why the cache is never hit? It always executes _M.introspect_access_token_req local cache_id = "ati:" .. access_token local res, err = singletons.cache:get(cache_id, { ttl…
Peter Claes
  • 285
  • 3
  • 9
0
votes
1 answer

How does Kong detect connection timeout?

Currently, whenever an upstream service is down, kong will throw "{"message":"failure to get a peer from the ring-balancer"}" I am trying to create a custom plugin that detects the connection time out and return a customized message to the client,…
Serene
  • 11
  • 1
  • 4
0
votes
3 answers

How to generate and display coverage when running tests with Pongo for custom Kong API Gateway plugins written in Lua

I am writing a few kong custom plugins in Lua. I am using Kong 2.3.3 and Lua 5.1. I have some test cases (unit tests + integration tests) and i am running them with pongo run -coverage option. I have already installed luacov (and also cluacov, both…
0
votes
0 answers

Questions about the principle of routes matching in Kong

I have some problems when using Kong to configure routing .I need to apply the login authentication plug-in to the specified api path. For example, If there is a Route named ‘Route1’ and it’s path is '/api/phone', I want to apply the authentication…
0
votes
1 answer

admin api authentication for kong

I am running kong in the k8s cluster, kong-admin API has no authentication which is resulting in anyone with nodeAddress:port can update or delete the service or routes. One option is to run kong as localhost, and every time while performing CRUD…
0
votes
1 answer

Kong Admin api authentication

I am running kong in kubernetes cluster, kong-admin-api has no authentication, anyone with the nodePort can CRUD service or routes. Is there any way we can have some authentication. I don't want to run kong as a localhost. It will be running as…
Anuj Patel
  • 39
  • 1
  • 5
0
votes
1 answer

Passing Bearer token from kong to keycloak to be authenticated and then procceds to api call

I have set up keycloak-oidc on kong, and I have a protected API behind kong. I am able to call keycloak through kong because I added a filter /auth/*. Below is my oidc configuration for keycloak. I configured my REALM and CLIENT_ID on keycloak as…
DaviesTobi alex
  • 610
  • 1
  • 9
  • 34