Questions tagged [kong-plugin]

168 questions
1
vote
0 answers

Kong gateway with kong-oidc plugin and react application hitting rate limit in IDP (Okta)

About Setups :- My kong gateway is setup with kong-oidc plugin (free one) I defined introspection_endpoint, client_id, client_secret, discovery and other necessary configs for kong-oidc in the gateway setup UI is react SPA application React app…
Premchandra Singh
  • 14,156
  • 4
  • 31
  • 37
1
vote
0 answers

Kong Gateway - Updating request JSON using request-transformer plugin

I am using Kong 3.3.0 in db-less mode using declarative yaml. I'm trying to update the request body with a value present in the headers. If I set a top-level JSON attribute it all works OK. When I try and update the value in a sub-object within the…
1
vote
1 answer

I cannot use lua resty.http on Kong pre-function plugin

I need to make a external security request before any request on my Kong Gateway. To do that, I used the plugin Kong Functions (Pre-Plugins), which allows me to execute lua scripts before any request. Script: local http = require "resty.http" --…
1
vote
0 answers

Inconsistent behaviour while achieving stickiness using Kong Ingress controller

I am using Kong ingress controller on EKS. High level flow: NLB → Kong ingress controller and proxy(running in the same pod) → k8s service → backend pods I am trying to achieve stickiness using hash_on cookies configuration on upstream. I am using…
1
vote
1 answer

Unable to start kong gateway with custom plugin

I am using kong gateway 0.11.2 with cassandra database version 2.2.7. I have written a custom plugin and I am trying to install the plugin manually. I hve made the necessary changes in the kong.conf file as per the official kong documentation to…
1
vote
0 answers

Unit and Integration testing of custom Kong plugin using busted

I have been trying to explore unit and integration testing frameworks for custom kong plugins. I'm very new to Lua and I started exploring busted and I was not able to successfully run tests on the plugin. Here are the steps I followed - I ran a…
Ashay Fernandes
  • 353
  • 4
  • 14
1
vote
1 answer

how to route kong Declarative (YAML) for path with `http://localhost:port/swagger-ui/index.html` html?

Implematation: port 8099 has swagger ui which suppose to be route in kong but the output is empty when its route to kong. Maybe this is the reason for blank page: its trying to get the html and css and etc. of the swagger. - host:…
SpicySandwich
  • 49
  • 1
  • 10
1
vote
1 answer

How to route requests to a dynamic endpoint on kong api-gateway

I have a service named alpha (created using python-django) that runs on http://127.0.0.1:9000 and has these two endpoings /health returns {"health": "OK"} status 200 /codes/ returns {"code": code} status 200 I also have a kong…
Amin Ba
  • 1,603
  • 1
  • 13
  • 38
1
vote
1 answer

kong gateway request and response body

I am using KONG API gateway to send REST API requests to my microservices in JSON format. when I using KONG (TCP-http-UDP-file) LOG plugins It shows all details about my requests (headers-status code and etc) except request body.! The Question is…
pheshmati
  • 53
  • 1
  • 5
1
vote
0 answers

How to add custom plugin with migrations for kong

We're trying to set up Kong using Helm. We have a custom plugin that we want to load and enable, as part of the deployment process. The plugin has migrations, so folder structure looks like: plugin-folder |- handler.lua |- schema.lua |- daos.lua |-…
Peter Lind
  • 37
  • 7
1
vote
2 answers

Kong API Gateway - You must use HTTPS

Kong API Gateway - You must use HTTPS I have installed Kong OSS V2.x in the ec2(centos) Added plugin oAuth2 Get the access token using POST Method Getting the below error { "error": "access_denied", "error_description": "You must use…
1
vote
1 answer

Kong proxy cache plugin - X-Cache-Status is always Bypass when cache_control is enabled

I have a registered service in Kong and currently trying to set up the proxy-cache plugin. The plugin itself works fine when cache control is set to false, but when I enable it, the X-Cache-Status header is always Bypass. The plugin configuration…
dixy
  • 13
  • 4
1
vote
1 answer

Prometheus can not scrape kong-ingress-controller metrics

I've installed Prometheus and Grafana to monitor my K8S cluster and microservices using helm charts: helm install monitoring prometheus-community/kube-promehteus-stack --values prometheus-values.yaml --version 16.10.0 --namespace monitoring…
1
vote
2 answers

Why kong access non configured regex route?

I'm using Kong v2.1.2 On my upstream server I have APIs GET /v1/country GET /v1/country/{country_code}/brands GET /v1/country/{country_code}/brands/{brand_code}/types I have configured path 1 and 2 on kong routes with host header "example.com" I…
aditya khot
  • 45
  • 1
  • 6
1
vote
1 answer

How to Install Custom Plugin in Locally Setup Kong

I have created one custom kong plugin and trying to deploy it locally. Trying with Luarocks, Pongo and Manually... but some how now able to make it. Sharing steps what I am following below. Command luarocks make Logs kong-check-x-header 1.0-1…
Jaikrat
  • 1,124
  • 3
  • 24
  • 45
1 2
3
11 12