Check header existence

30 views
Skip to first unread message

moritz....@qaware.de

unread,
Feb 7, 2017, 4:08:13 AM2/7/17
to Kong
Hi,

is Kong able to check the existence of a header and deny the request if the header isn't present?

Thanks!
Moritz

th...@mashape.com

unread,
Feb 7, 2017, 8:31:01 AM2/7/17
to Kong, moritz....@qaware.de
That would require a (very simple) custom plugin.

regards
Thijs

PS. smells like security by obscurity, which, as you probably know, is a bad idea.

moritz....@qaware.de

unread,
Feb 9, 2017, 4:31:39 AM2/9/17
to Kong, moritz....@qaware.de
Thank you, i think i'll write a plugin.

To your security note: The header is evaluated in the upstream system, but i don't want to hit that until the header exists.

th...@mashape.com

unread,
Feb 9, 2017, 4:19:53 PM2/9/17
to Kong, moritz....@qaware.de


On Thursday, February 9, 2017 at 10:31:39 AM UTC+1, moritz.kammexxxxxxxware.de wrote:
Thank you, i think i'll write a plugin.


You might want to check the `kong-vagrant` repo, the readme has instructions for plugin development
 

Taha Iqbal

unread,
Nov 7, 2017, 9:12:25 PM11/7/17
to Kong
Hello
Are you able to write that plugin?
I am trying to achieve more or less same functionality.

moritz....@qaware.de

unread,
Nov 8, 2017, 3:31:14 AM11/8/17
to Kong
Hi,

no, didn't find the time yet. Sorry.
Reply all
Reply to author
Forward
0 new messages