Questions tagged [kong-plugin]

168 questions
0
votes
1 answer

Kong serverless plugin Lua implementation

I am attempting to use Kong's API Gateway, however, I want to use its serverless plugin to add some custom implementation before Kong processes the request. I basically want to read in a JSON file volume mapped in the Kong container and do some…
tiger_groove
  • 956
  • 2
  • 17
  • 46
0
votes
0 answers

Validating token with jwks

I am trying to setup Kong on a GKE cluster so that I can validate the incoming requests. I have a jwks file/uri that I would like to use for validation. I have followed following steps... Deploy a hello world app exposed via a service. Install…
niklodeon
  • 1,320
  • 5
  • 20
  • 51
0
votes
1 answer

Configure Kong plugin to only trigger for one or more methods?

Is there any way to configure a plugin to trigger only for a given method or set of methods? -routes: - name: some-route - paths: - /some-path plugins: - name: some-plugin methods: GET # Only run plugin for GET …
tisaksen
  • 329
  • 4
  • 10
0
votes
1 answer

Accessing introspect endpoint , failed:connection refused kong, keycload,OIDC

I am getting a connection refused response from the server when i try to hit the the endpoint via the proxy i have created on kong. The curl command i am using to hit the proxy - curl --location --request GET…
Mohit
  • 1
  • 2
0
votes
1 answer

kong.conf.default is read only in Docker through Linux Containers

After Kong has been installed in windows using docker (Linux containers), I need to update kong.conf.default or kong.conf file for few extra plugins. When I am trying to update the kong.conf.default using the following command, it says me Read…
Arindam
  • 555
  • 1
  • 8
  • 24
0
votes
1 answer

HTML from lambda invoked by Kong has double quotes

I’m trying to return an HTML from a lambda that gets invoked by Kong as a RequestResponse invocation. This is how the lambda looks like: exports.handler = function(event, context, callback) { context.succeed('

bleh

') }; This ends up with…
bitsapien
  • 1,753
  • 12
  • 24
0
votes
1 answer

Configure kong api gateway with service discovery

I have a bunch of rest services. I want to have a kong api gateway implemented at the front. I dont want to go into kong admin api and manually add all the exposed api. Can i take help of any service discovery implementation like eureka or consul…
adiCool
  • 73
  • 1
  • 10
0
votes
2 answers

Kong API gateway Oauth2 grant_type=password invalid_client error no matter what I change

I have been setting up Kong locally and testing different kinds of setups. Currently I have kong running inside docker-compose with access to the gateway making requests. Passing in these env variables environment: -…
lumberjacked
  • 966
  • 1
  • 21
  • 35
0
votes
1 answer

Why does Kong need headers host whenever request?

I do not understand why Kong required to include host = userApi.test in Headers when GET localhost:8000/api/v1/test is requested. Are there any ways not to include the Headers when requested? For example, I am using Angular to request APIs through…
Spring
  • 831
  • 1
  • 12
  • 42
0
votes
1 answer

Change the authentication method in Kong

I'm trying to understand how authentication works in Kong. I have a route and a service configured that connect to my API. I have configured the basic-auth on both and its working correctly. But, I would like to configure different authentication…
radicaled
  • 2,369
  • 5
  • 30
  • 44
0
votes
1 answer

You must use HTTPS while generating Kong client credentials

Can anyone please help me out. I'm getting error while generating KONG client credentials on HTTP port 8000. { "error_description": "You must use HTTPS", "error": "access_denied" } I have added trusted_ips = 0.0.0.0/0,::/0 in kong.conf…
Muhammad Tauseen
  • 113
  • 2
  • 11
0
votes
1 answer

Disable a Route with Kong API Gateway

We have a service pointing to the backend in the Kong API Gateway. And each service has multiple routes associated with it. I would like to disable/enable individual Routes in Production. Looking at the Admin API documentation, 'Update Route' API…
adesai
  • 370
  • 3
  • 22
0
votes
0 answers

Managing multiple kong instances - Creation of the kong resources on its respective database

I have two KONG instances in a k8s cluster with their respective database Kong sandbox instance is named kong-ingress-controller and it's configuration is such as follow: And also I have a Kong production instance which is named…
bgarcial
  • 2,915
  • 10
  • 56
  • 123
0
votes
1 answer

Error attempting to create a pre-function in Kong

I'm getting the following error when I attempt to create a pre-function (serverless) in Kong: "cannot create 'plugins' entities when not using a database" I'm currently using a version 1.1.1 Alpine container and I have it configured for DB-less…
blockcipher
  • 2,144
  • 4
  • 22
  • 35
0
votes
1 answer

LUA HMAC Generation issue in 5.1 version

I have an issue while I am creating the HMAC in LUA 5.1 version and same code is working in node.js Node.js Code : crypto.createHmac( CONSTANTS.HMAC_ALORITHM_SHA, Buffer.from( secretAccessKey, CONSTANTS.BASE64_ENCODING ) ).update( …
1 2 3
11
12