canvas-lms/app/middleware
Ethan Vizitei 3df3a34b56 allow services to pass their Request ID
refs CNVS-27581

this ensures we have one correlation ID for a request coming
through the ecosystem rather than a seperate ID for each request
at each service. Each request id must be signed to make sure
others can't just submit whatever they want.

TEST PLAN:
 1) make an API request and provide the header 'X-Request-Context-Id'
 2) make sure to include the X-Request-Context-Signature header, which
    should have the value of the sha512 signature with the shared
    secret for the services ecosystem
 2) the logs should show your provided value as the context Id for that
     canvas request

Change-Id: I610fbe8c4df355d43c05360670f80971d1459644
Reviewed-on: https://gerrit.instructure.com/73166
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2016-03-01 22:30:45 +00:00
..
request_throttle move request_throttle code to app/middleware 2016-01-14 23:11:19 +00:00
load_account.rb rails4.2: Fixnum#ago is deprecated 2015-12-29 21:14:11 +00:00
prevent_non_multipart_parse.rb sis import api 2011-04-08 15:45:57 -06:00
request_context_generator.rb allow services to pass their Request ID 2016-03-01 22:30:45 +00:00
request_context_session.rb re-include session_id in logs 2015-10-02 19:33:50 +00:00
request_throttle.rb move request_throttle code to app/middleware 2016-01-14 23:11:19 +00:00
sessions_timeout.rb change encrypted cookie store to fix session timeout plugin 2013-12-05 21:08:50 +00:00