Questions tagged [kong-plugin]

168 questions
4
votes
0 answers

SAML request authentication with Kong

we are using konghq as an API gateway for one of our customers but we are very new to it and therefore don't know how to tackle this authentication issue. We have to authenticate our services with a SAML token. Our micro services are behind kong…
Oldfighter
  • 145
  • 2
  • 11
4
votes
2 answers

X-Cache-Status is always Bypass using Kong proxy-cache plugin

I have service in Kong and I have set proxy-cache plugin for that service. curl -X POST http://localhost:8001/plugins --data "name=proxy-cache" --data "config.strategy=redis" --data 'service_id=2f0a285d-7b25-48d6-adc3-bbf28ffe5f47' --data…
Saeed.Torabzadeh
  • 121
  • 2
  • 10
3
votes
1 answer

kong gateway add headers

I want to add some headers to my incoming rest api requests with kong gateway. In the kong admin UI, I set these parametes : config.add.headers: myheader: $(consumer_id) myheader is a name for new header and I want to set variable of consumer_id…
pheshmati
  • 53
  • 1
  • 5
3
votes
1 answer

Using Kong's key-auth and session plugin together

I am new to Kong and have a setup with the key-auth plugin enabled. So when I go to https://localhost:32443 I get {"message":"No API key found in request"}. If I specify an apikey I get the homepage of the application but it is blank. The first…
Sean Barry
  • 61
  • 2
  • 6
3
votes
2 answers

k8s Ingress with Kong - Plugin Application and Configuration via cURL vs YAML

I'm trying to use a Kong plugin for k8s ingress customization. Specifically, i'm using the Kong ingress controller and the "request-transformer-advanced" plugin (Reference: https://docs.konghq.com/hub/stone-payments/kong-plugin-url-rewrite/) The…
CoderOfTheNight
  • 944
  • 2
  • 8
  • 21
3
votes
1 answer

Best logging plugin of Kong API gateway to utilise existing ELK stack log

Can anyone help me to choose one Kong API Gateway logging plugin from all available options like Tcp Log, Udp Log, Http Log, File Log, Syslog, Statsd, Loggly, etc which can utilize the existing ELK stack log?
DevSay
  • 886
  • 1
  • 14
  • 32
3
votes
0 answers

How to route by header in DB-less Kong

I'm using Kong without database and I need to route request based on request header: x-forwarded-host. I'm referring to the doc: https://docs.konghq.com/hub/kong-inc/route-by-header/ But it doesn't provide examples for the "without database"…
Shuqi Zhang
  • 31
  • 1
  • 3
3
votes
0 answers

Access to XMLHttpRequest at 'http://localhost:...' from origin 'http://localhost:4200' has been blocked by CORS policy

I'm setting a secure configuration with Keycloak and Kong for an angular API. I was following the next tutorial https://www.jerney.io/secure-apis-kong-keycloak-1/ , but at the end I'm getting the next error: Access to XMLHttpRequest at…
3
votes
1 answer

Multiple request transformers for kong API gateway

Using the Request Transformer plugin, we are transforming a query string to multiple headers. This is done globally for all our services. We also want do other specific transformations for a subset of a services. From what I read here that does not…
RckMrkr
  • 985
  • 1
  • 10
  • 14
3
votes
0 answers

How to add custom authentication logic to the Kong Plugin

How do I integrate custom authentication service to Kong API Gateway, which redirects the call to different endpoint based on header or parameter validations and once authenticated should generate a token in the API Gateway. Is this possible in Kong…
Ali
  • 253
  • 4
  • 13
2
votes
1 answer

How to get result of decode/parse the JWT plugin in the kong?

Is it possible the kong return result of decode JWT token and pass it into our service? maybe there is a additional key in the header x-user-id when we receiving request in our service. note: I am using Kong DB less and kubernetes
2
votes
1 answer

Kong rate limit plugin to multiple services

I'm using rate limiting plugin by Kong, I'm using the declarative mode with a config file like: _format_version: "3.0" _transform: true services: - name: service1 url: https://example.com/api/endpoint1 routes: - name: route1 paths: -…
2
votes
0 answers

Kong OIDC plugin logout - session still valid after OP logout

We are using kong-oidc plugin with our Kong setup. Okta is acting as OP/IdP for OIDC. The configuration works fine for login activity, redirection to Okta takes place, authentication happens and session is established at kong. However, regarding…
Jahanzaib
  • 121
  • 2
  • 9
2
votes
1 answer

Kong custom golang plugin not working in kubernetes/helm setup

I have written custom golang kong plugin called go-wait following the example from the github repo https://github.com/redhwannacef/youtube-tutorials/tree/main/kong-gateway-custom-plugin The only difference is I created a custom docker image so kong…
Chalukya J
  • 31
  • 4
2
votes
0 answers

Upgrade Nginx built-in in Kong API Gateway (CentOS 7)

I have a problem with Nginx built-in when I install Kong API Gateway. My Kong is an old system and it has some modified plugins which were compatible with Kong version 1.2.2. So, the Nginx module built-in in Kong is an old version and leads to…
ThanhLam112358
  • 878
  • 1
  • 20
  • 51
1
2 3
11 12