open-vault/logical
Jeff Mitchell ebf57b15b4
Fixes a regression in forwarding from #6115 (#6191)
* Fixes a regression in forwarding from #6115

Although removing the authentication header is good defense in depth,
for forwarding mechanisms that use the raw request, we never add it
back. This caused perf standby tests to throw errors. Instead, once
we're past the point at which we would do any raw forwarding, but before
routing the request, remove the header.

To speed this up, a flag is set in the logical.Request to indicate where
the token is sourced from. That way we don't iterate through maps
unnecessarily.
2019-02-11 13:08:15 -05:00
..
framework Add json.Number handling to TypeHeader (#6134) 2019-01-30 15:24:39 -08:00
plugin Add allowed_response_headers (#6115) 2019-02-05 16:02:15 -05:00
testing Run all builtins as plugins (#5536) 2018-11-06 17:21:24 -08:00
auth.go Revert "Refactor common token fields and operations into a helper (#5953)" 2019-02-01 11:23:40 -05:00
connection.go
error.go First part of perf standby entity race fix (#6106) 2019-01-25 14:08:42 -05:00
identity.pb.go Add allowed_response_headers (#6115) 2019-02-05 16:02:15 -05:00
identity.proto
lease.go logical/aws: Harden WAL entry creation (#5202) 2018-09-27 09:54:59 -05:00
lease_test.go
logical.go
logical_storage.go Fix leader info repopulation (#6167) 2019-02-05 21:01:18 -05:00
plugin.pb.go Add allowed_response_headers (#6115) 2019-02-05 16:02:15 -05:00
plugin.proto Add PluginEnv to SystemView (#5028) 2018-08-03 09:32:17 -07:00
request.go Fixes a regression in forwarding from #6115 (#6191) 2019-02-11 13:08:15 -05:00
request_util.go The big one (#5346) 2018-09-17 23:03:00 -04:00
response.go Add allowed_response_headers (#6115) 2019-02-05 16:02:15 -05:00
response_util.go fix panic when listing nil resp (#5886) 2018-12-03 09:18:28 -08:00
response_util_test.go Add error logical.ErrUpstreamRateLimited and return 502 from RespondCommonError 2018-09-05 11:07:50 -05:00
secret.go
storage.go
storage_inmem.go
storage_inmem_test.go
storage_view.go Split SubView functionality into logical.StorageView (#6141) 2019-01-31 09:25:18 -05:00
system_view.go Run all builtins as plugins (#5536) 2018-11-06 17:21:24 -08:00
testing.go Run goimports across the repository (#6010) 2019-01-08 16:48:57 -08:00
token.go Add token type to sentinel docs, fix up some names, and better codify what Sentinel reports for various token types (#5630) 2018-10-27 11:07:27 -07:00
translate_response.go Add allowed_response_headers (#6115) 2019-02-05 16:02:15 -05:00