old_issues_repo icon indicating copy to clipboard operation
old_issues_repo copied to clipboard

Payload attribute

Open trevex opened this issue 7 years ago • 0 comments

I am currently using Istio to log telemetry data. For my master thesis I am looking into ways to find the cause/reason of failures based on all the data collected. For this use-case I would like to log the payload/body as well. Apart from telemetry data, a payload attribute might be desirable for scenarios in which very strict rules, that check payloads, are desired.

While the basic implementation is straight forward, some technical repercussions were raised by @mandarjog:

Adding request body to the mix has several technical repercussions.

  1. Since payload sizes are arbitrary, only store payload up to a max size in Report call.
  2. Mixer - Proxy api evolves. Stream request body to Mixer only when requested to do so by Mixer.
  3. Mixer proxy filter should be injected at "decodeBody"
  4. Ensure that privacy and security concerns are handled while handling request body.

The technical repercussions are not important in the context of my master thesis, but certainly are in every other use-case.

The original topic can be found here: https://groups.google.com/forum/#!topic/istio-users/tBfW8npfOGw

trevex avatar Jun 08 '17 09:06 trevex