Questions tagged [kong-plugin]

168 questions
1
vote
1 answer

How to add custom plugin in kong manager

I have a file custom.lua and I want to add this plugin to a specific route of service. I put the file code in Config.access but it is giving schema violation error. Also, used minifier as referenced in docs. How can I add a custom plugin to the…
Rajat Aggarwal
  • 392
  • 3
  • 16
1
vote
0 answers

Change location header in redirect responses from HTTP to HTTPS in Kong API Gateway

I have the following setup User Request --> AWS ELB Application load balancer --> Kong Gateway --> Integration The SSL termination happens at application load balancer. One of my endpoint makes the Integration respond a redirect URL with a code 302.…
Prateek Karkare
  • 173
  • 1
  • 8
1
vote
0 answers

Configuring corporate proxy for go-pdk plugin

I'm trying to configure corporate proxy for go kong plugin https://github.com/Kong/go-pdk here is my code: package main import ( "github.com/Kong/go-pdk" ) type Config struct { Apikey string } func New() interface{} { return…
1
vote
0 answers

Kong session plugin expiry

I am working with the Kong session plugin, currently I am able to successfully store client's session, however, I am trying to understand how this expiry works. In the session config I have cookie_lifetime: 60 and cookie_renew: 10. After I create…
tiger_groove
  • 956
  • 2
  • 17
  • 46
1
vote
1 answer

Kong Configuring Multiple Services

I am configuring multiple services in the same kong.yaml. e.g. services: - host: service1.com name: service1 port: 8000 route: ... - host: service2.com name: service2 port: 9000 route: ... When I make a request from the…
tiger_groove
  • 956
  • 2
  • 17
  • 46
1
vote
0 answers

Why does Kong API Gateway remove X-Forwarded-For headers when forwarding request to backend?

I am trying to forward the X-Forwarded-For header containing the IP address of the client to the backend services but it seems Kong does not allow that to happen, I can read the IP address of the client when I log them in Kong logs, however, every…
Serene
  • 11
  • 1
  • 4
1
vote
1 answer

How will kong know which plugin to execute when a request comes at the kong node?

I was working with kong then wanted to understand how will kong know which plugin to execute for a request that has just arrived at the gateway. Let's say we have configured rate limit plugin on a service entity and has a route associated with it…
Ashay Fernandes
  • 353
  • 4
  • 14
1
vote
1 answer

DockerCompose Kong with Deck installed

I'm looking into using Deck for Kong to perform synchronized migration. However, I can't seem to find a way to install Deck cli into my Kong container using docker-compose. Is there any guide/documentation I can follow to perform such an…
CodeName
  • 559
  • 2
  • 6
  • 23
1
vote
1 answer

How can I use Kong’s Capturing Group in Ingress k8s object for rewirting logic?

I want to use Kong’s Capturing Group in Ingress k8s object to perform an uri rewriting. I want to implement the following logic: https://kong_host:30000/service/audits/health -> (rewrite) https://kong_host:30000/service/audit/v1/health Ingress…
1
vote
0 answers

Authentication and Authorisation like Github using keycloak

We are using Kong API gateway with Keycloak IAM. We are looking forward to configuring access via Github. As in Github URL : https://github.com/org-name/username/reponame As in GitHub we have organization repo and each user has different access in…
chagan
  • 179
  • 4
  • 15
1
vote
1 answer

Can we use Kong api gateway for GraphQL service based backend service?

I have a backend service in graphQL and I want to integrate it with kong for proxying. I had followed the same steps of how we configure a http service in kong using this link https://docs.konghq.com/0.13.x/getting-started/configuring-a-service/ But…
1
vote
1 answer

Kong as redirection service

Is it possible to configure HTTP redirection rules in KONG (e.g if request matches ^/old-api/(.*)$ pattern then return 301 to https://other-domain.org/new-api/$1) without modifying nginx.conf templates (i.e. setup such rules using API and some…
1
vote
0 answers

Avoid zip golang package

Is it possible to avoid go build from pulling down a zip version of a specific dependency? The firewall blocks it and I can see that this could be a recurring theme. I can use git clone of the version and then copy it into the appropriate pkg…
acarlon
  • 16,764
  • 7
  • 75
  • 94
1
vote
1 answer

How to use multiple authentication plugins in the same service in Kong

I am looking to use Cypress for end to end testing for some kubernetes applications. Typically, I access these applications via OIDC through kong, however cypress doesn't support this, but does support key-auth via an API key. Is there a way of…
Sheen
  • 586
  • 10
  • 22
1
vote
2 answers

kong with keycloak Authorization based on scope

i am looking forward to restricting user access based on scope. i am using Kong API gateway here is my docker file used for adding nokia-oidc plugin. https://github.com/nokia/kong-oidc docker file : FROM kong:latest USER root RUN apk update && apk…
chagan
  • 179
  • 4
  • 15