canvas-lms/lib/canvas
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
..
builders use rails 4.2 preloader format 2015-12-30 14:58:10 +00:00
cassandra Canvas::Cassandra::DatabaseBuilder.configs helper 2015-11-04 20:55:27 +00:00
cdn remove rails 3 support 2015-12-23 21:36:43 +00:00
errors limit the data sent to sentry/error_reports 2016-02-10 21:46:23 +00:00
migration allow common cartridge sub-modules to be imported separately 2016-02-02 15:48:03 +00:00
oauth Don't send refresh_token if value is nil 2015-12-18 18:02:50 +00:00
plugins Remove Google Docs plugin 2016-02-01 23:41:53 +00:00
require_js cleanup refactor of Rubocop's Lint/DeprecatedClassMethods 2015-04-28 18:38:24 +00:00
security consul caching 2016-03-01 21:34:32 +00:00
cdn.rb upload css direct to s3 and optimize unbranded css 2015-09-04 21:23:43 +00:00
coffee_script.rb Make Guard coffeescript compilation include line numbers when the build fails 2014-12-11 18:32:58 +00:00
crocodoc.rb show warning when crocodoc is still processing 2014-11-04 20:30:55 +00:00
draft_state_validations.rb Draft-State Quizzes - "Save It Now" should work 2014-07-07 16:08:38 +00:00
dynamic_settings.rb consul caching 2016-03-01 21:34:32 +00:00
error_stats.rb get sentry into canvas 2015-04-13 22:26:15 +00:00
errors.rb send exception type as a tag 2015-08-13 18:43:55 +00:00
event_stream_logger.rb also log errors on page views 2015-11-10 02:22:01 +00:00
grade_validations.rb create ProvisionalGrade table and model 2015-08-07 17:12:37 +00:00
help.rb Updates the default URL for the canvas guides 2015-04-29 17:52:22 +00:00
icu.rb update ffi-icu gem 2016-02-02 01:57:36 +00:00
live_events.rb added live events for assignments and submissions 2015-12-18 21:41:50 +00:00
lock_explanation.rb improve locked module item prerequisite fetching 2015-04-01 16:21:55 +00:00
lockdown_browser.rb remove the layout when taking a locked-down quiz, closes #3129 2011-03-24 12:46:27 -06:00
message_helper.rb cleanup refactor of Rubocop's Lint/DeprecatedClassMethods 2015-04-28 18:38:24 +00:00
migration.rb rubyzip 1.0.0 upgrade 2013-11-22 19:23:34 +00:00
password_policy.rb account-level password policy support, fixes CNVS-4211 2013-04-05 20:13:26 +00:00
plugin.rb accept t/f for boolean in Api 2016-01-26 02:50:09 +00:00
redis.rb get sentry into canvas 2015-04-13 22:26:15 +00:00
redis_config.rb share redis cache and redis data connections if possible 2015-02-04 16:00:03 +00:00
redis_wrapper.rb share redis cache and redis data connections if possible 2015-02-04 16:00:03 +00:00
reloader.rb move request_throttle code to app/middleware 2016-01-14 23:11:19 +00:00
request_forgery_protection.rb refactor CSRF handling for clarity and rails3+ 2016-01-11 23:31:47 +00:00
require_js.rb remove secondary bundle extension mechanism 2016-01-22 22:59:01 +00:00
security.rb allow services to pass their Request ID 2016-03-01 22:30:45 +00:00
soft_deletable.rb rails 4.2: misc spec fixes 2016-01-18 21:45:39 +00:00
twilio.rb Look up phone number countries correctly on Rails 4 2016-01-09 05:36:01 +00:00