-
Hi, we are using Kong behind AWS NLB, where we have ssl/tls termination, also we are using Gateway API with HTTPRoute, so the client connection looks like this: The backend app is an Express application and should work with secure cookies, for this purpose it should get X-Forwarded-Port 443 and X-Forwarded-Proto https. But somewhere on the Kong level, X-Forwarded-Port is set to 80 and X-Forwarded-Proto to http.
Then X-Forwarded-Port was changed successfully, but X-Forwarded-Proto disappeared at all. Also additional question: If we're not using Ingress and instead want to use Gateway API resources, do we still need to define an annotation with an ingress class for the creation of the plugin, because without it Kong is not recognize a plugin? Is there an annotation for GatewayClass, or do we still need to use IngressClass for this purpose? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@iuriipro Could you enable KIC's configuration dump server by updating the following environment varaibles of KIC container:
and then expose the diagnostics server on KIC's port 10256:
Then you can dump the results of translated configuration by
and please paste the "plugin" section of dumped configuration. Then it is clear whether the problem happens in KIC's translation or Kong gateway's processing of the plugin. |
Beta Was this translation helpful? Give feedback.
-
Hi @iuriipro I've reproduced your issue, since
Then you will get the |
Beta Was this translation helpful? Give feedback.
Hi @iuriipro I've reproduced your issue, since
https
is a string, you need to quote it, try change it to:Then you will get the
upstream_x_forwarded_proto
variable correctly.