You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/10/17 20:20:56 UTC

[GitHub] [openwhisk-apigateway] mhamann opened a new issue #361: Loop detection

mhamann opened a new issue #361: Loop detection
URL: https://github.com/apache/openwhisk-apigateway/issues/361
 
 
   Add logic to detect when an API might be calling itself (directly or via another API) in a loop, and terminate the loop.
   
   This can be done through injection of unique headers for every hop through the gateway.
   
   For example:
   
   Client request -> GW: `GET /api1`
   GW inject header: `X-ApiGw-Loop: get_api1`
   GW request -> GW: `GET /api2`
   GW inject header: `X-ApiGw-Loop: get_api1 get_api2`
   GW request -> GW: `GET /api1`
   GW analyzes `X-ApiGw-Loop` and sees `get_api1` is already present
   GW response: `508 Loop detected` (or similar)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services