Commit Graph

10 Commits

Author SHA1 Message Date
Lohith 902c033af8 Avoid request loops between mixmatch proxies
Closes-Bug:#1763549

Change-Id: I9ad9a2363024ce722c1cb2b1bac27be755fc6888
2018-05-02 16:26:59 -04:00
Jeremy Freudberg a1a9cad038 Request headers are case insensitive
Per RFC2616. Within the codebase itself we represent headers as
uppercase strings, but now they can be passed with any capitalization
style. (Including whatever keystoneauth or requests chooses to send.)

Change-Id: Ia4e932a91dec030b9efeb947759ceebdb7a426fc
Closes-Bug: #1720433
2017-10-10 17:45:25 +00:00
Jenkins e860a37ea8 Merge "Don't stream json" 2017-08-02 20:42:08 +00:00
Eric Juma 87f89d1f74 Don't stream json
Makes json data that would normally be streamed not streamed
so that it can be modified.

Change-Id: I9690ee1841258e4e6a4d1bfea68e6505484f2216
2017-08-01 18:12:22 +00:00
Jeremy Freudberg a85cf6bf52 Stop using six.b and six.u
For a better developer experience, accomplish removal of six.b and
six.u by changing how Werkzeug response objects are handled in the
relevant unit tests.

Change-Id: Iac36e5fd9eb7ef78e6c8e9e8bff1c596e2e5823e
2017-07-31 17:51:22 +00:00
Kristi Nikolla 4bb9dd6841 The Volume API now supports user messages
This tentatively adds support for that API by letting the
microversion header OpenStack-API-Version go through. Also
added a few unit tests just to check that we're properly routing
the messages path.

Change-Id: Ie21b15ee5d33085e0515a129ea4ef89836ca8d57
2017-07-05 17:04:19 +00:00
Eric Juma e7e56b018d Add more logging
Adds more logging of requests and responses to and from the proxy.
Strips tokens from logs.

Change-Id: Ic08a3adfeda83390c16bb8195d68b7e780e3081f
2017-03-24 19:41:21 +00:00
Eric Juma 544a867606 Improve tests for headers
Test the proxy's handling of more different headers, including the
new handling of x-service-token.

Change-Id: I74223244f0be7f27c6ce42984941ea6da43ca3f5
2017-03-21 15:48:35 +00:00
Eric Juma 755da47df3 Add config option to enable/disable services for each sp
Modified proxy.py and config.py to support the option.

Change-Id: Ibd7d701f4efb1fc952cd4750cd39d98c9eb98a79
2016-12-20 21:58:47 +00:00
Kristi Nikolla dcc8b3aa76 Initial commit of the code
This is the initial commit of the code for the project. Previous
development was ongoing in https://github.com/CCI-MOC/k2k-proxy.git

Change-Id: I5cce38e22581e1f0a82c2c76a64e7bbf2cd7490b
Co-Authored-By: George Silvis, III <george.iii.silvis@gmail.com>
Co-Authored-By: Wjdan Alharthi <walharth@bu.edu>
2016-11-07 09:49:52 -05:00