open-vault/command/server
hghaf099 ad2ef412cc
Customizing HTTP headers in the config file (#12485)
* Customizing HTTP headers in the config file

* Add changelog, fix bad imports

* fixing some bugs

* fixing interaction of custom headers and /ui

* Defining a member in core to set custom response headers

* missing additional file

* Some refactoring

* Adding automated tests for the feature

* Changing some error messages based on some recommendations

* Incorporating custom response headers struct into the request context

* removing some unused references

* fixing a test

* changing some error messages, removing a default header value from /ui

* fixing a test

* wrapping ResponseWriter to set the custom headers

* adding a new test

* some cleanup

* removing some extra lines

* Addressing comments

* fixing some agent tests

* skipping custom headers from agent listener config,
removing two of the default headers as they cause issues with Vault in UI mode
Adding X-Content-Type-Options to the ui default headers
Let Content-Type be set as before

* Removing default custom headers, and renaming some function varibles

* some refacotring

* Refactoring and addressing comments

* removing a function and fixing comments
2021-10-13 11:06:33 -04:00
..
test-fixtures Customizing HTTP headers in the config file (#12485) 2021-10-13 11:06:33 -04:00
config.go fix writing back the Filename into unusedKeys in ParseConfig (#12615) 2021-09-23 09:30:44 -04:00
config_custom_response_headers_test.go Customizing HTTP headers in the config file (#12485) 2021-10-13 11:06:33 -04:00
config_oss_test.go config for autoloading license (oss parts) 2021-05-07 08:55:41 -04:00
config_telemetry_test.go [VAULT-2776] Add prefix_filter option to Vault (#12025) 2021-07-09 14:49:53 -05:00
config_test.go config for autoloading license (oss parts) 2021-05-07 08:55:41 -04:00
config_test_helpers.go Customizing HTTP headers in the config file (#12485) 2021-10-13 11:06:33 -04:00
config_test_helpers_util.go Backport some OSS changes (#10267) 2020-10-29 16:47:34 -07:00
config_util.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
listener.go Migrate to sdk/internalshared libs in go-secure-stdlib (#12090) 2021-07-15 20:17:31 -04:00
listener_tcp.go Migrate to sdk/internalshared libs in go-secure-stdlib (#12090) 2021-07-15 20:17:31 -04:00
listener_tcp_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
listener_test.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
server_seal_transit_acc_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00