open-vault/command
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
..
agent Customizing HTTP headers in the config file (#12485) 2021-10-13 11:06:33 -04:00
config fix build tag (#12588) 2021-09-20 17:10:54 -04:00
server Customizing HTTP headers in the config file (#12485) 2021-10-13 11:06:33 -04:00
test-fixtures
token command: deprecate errwrap.Wrapf() (#11744) 2021-06-02 09:22:31 -04:00
agent.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
agent_test.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
approle_concurrency_integ_test.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
audit.go
audit_disable.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
audit_disable_test.go
audit_enable.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
audit_enable_test.go Send a test message before committing a new audit device. (#10520) 2020-12-16 16:00:32 -06:00
audit_list.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
audit_list_test.go
auth.go
auth_disable.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
auth_disable_test.go
auth_enable.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
auth_enable_test.go VAULT-2285 adding capability to accept comma separated entries for au… (#12126) 2021-08-09 15:37:03 -04:00
auth_help.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
auth_help_test.go
auth_list.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
auth_list_test.go
auth_test.go
auth_tune.go VAULT-2285 adding capability to accept comma separated entries for au… (#12126) 2021-08-09 15:37:03 -04:00
auth_tune_test.go VAULT-2285 adding capability to accept comma separated entries for au… (#12126) 2021-08-09 15:37:03 -04:00
base.go Autopilot: Server Stabilization, State and Dead Server Cleanup (#10856) 2021-03-03 13:59:50 -05:00
base_flags.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
base_flags_test.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
base_helpers.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
base_helpers_test.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
base_predict.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
base_predict_test.go Migrate to sdk/internalshared libs in go-secure-stdlib (#12090) 2021-07-15 20:17:31 -04:00
command_test.go Shutdown Test Cores when Tests Complete (#10912) 2021-02-12 13:04:48 -07:00
commands.go Pull out license commands, and make the OSS changes needed for the license inspect PR in ent. (#11783) 2021-06-07 14:44:20 -04:00
commands_nonwindows.go
commands_windows.go
config.go
config_test.go
debug.go Fix vault debug so that captured logs include newlines. (#12175) 2021-07-27 09:15:24 -04:00
debug_test.go command: fix dropped test error (#12474) 2021-09-01 16:05:14 -07:00
delete.go vault delete should allow the same output options as vault write,… (#11992) 2021-07-06 10:36:07 -04:00
delete_test.go
format.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
format_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
kv.go
kv_delete.go vault delete should allow the same output options as vault write,… (#11992) 2021-07-06 10:36:07 -04:00
kv_destroy.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
kv_enable_versioning.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
kv_get.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
kv_helpers.go Migrate to sdk/internalshared libs in go-secure-stdlib (#12090) 2021-07-15 20:17:31 -04:00
kv_list.go Make the list and kv list commands work with wrapping, e.g. for controlgroups (#12031) 2021-07-09 12:08:58 -04:00
kv_metadata.go
kv_metadata_delete.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
kv_metadata_get.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
kv_metadata_put.go Add kv custom key metadata (#12218) 2021-08-23 15:49:09 -04:00
kv_metadata_put_test.go Add kv custom key metadata (#12218) 2021-08-23 15:49:09 -04:00
kv_patch.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
kv_put.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
kv_rollback.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
kv_test.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
kv_undelete.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
lease.go
lease_lookup.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
lease_lookup_test.go Add command to look up a lease by ID (#11129) 2021-03-18 11:11:09 -05:00
lease_renew.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
lease_renew_test.go
lease_revoke.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
lease_revoke_test.go
list.go Make the list and kv list commands work with wrapping, e.g. for controlgroups (#12031) 2021-07-09 12:08:58 -04:00
list_test.go Fix KV list command with whitespaces (#8017) 2020-11-23 12:38:14 -07:00
login.go Fixed github-prod path (#7516) 2019-09-26 08:46:41 -04:00
login_test.go Ignore any existing token during CLI login (#7508) 2019-09-25 10:59:42 -07:00
main.go
monitor.go Migrate to sdk/internalshared libs in go-secure-stdlib (#12090) 2021-07-15 20:17:31 -04:00
monitor_test.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
namespace.go
namespace_create.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
namespace_delete.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
namespace_list.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
namespace_lookup.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
operator.go
operator_diagnose.go oss part of license diagnose test fix (#12234) 2021-08-02 10:50:49 -07:00
operator_diagnose_test.go skip seal check for manual sealing (#12046) 2021-07-12 13:22:56 -07:00
operator_generate_root.go Migrate to sdk/internalshared libs in go-secure-stdlib (#12090) 2021-07-15 20:17:31 -04:00
operator_generate_root_test.go Update tests to reflect new HC public pgp keys. (#11446) 2021-04-23 12:32:46 -04:00
operator_init.go fix typo in vault operator init cmd (#11792) 2021-06-10 10:39:53 -04:00
operator_init_test.go Shamir seals now come in two varieties: legacy and new-style. (#7694) 2019-10-18 14:46:00 -04:00
operator_key_status.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
operator_key_status_test.go
operator_migrate.go command: deprecate errwrap.Wrapf() (#11744) 2021-06-02 09:22:31 -04:00
operator_migrate_test.go Migrate to sdk/internalshared libs in go-secure-stdlib (#12090) 2021-07-15 20:17:31 -04:00
operator_raft.go Raft cli docs (#8548) 2020-03-17 09:46:44 -04:00
operator_raft_autopilot_get_config.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
operator_raft_autopilot_set_config.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
operator_raft_autopilot_state.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
operator_raft_join.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
operator_raft_listpeers.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
operator_raft_remove_peer.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
operator_raft_snapshot.go Raft cli docs (#8548) 2020-03-17 09:46:44 -04:00
operator_raft_snapshot_restore.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
operator_raft_snapshot_save.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
operator_rekey.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
operator_rekey_test.go Update tests to reflect new HC public pgp keys. (#11446) 2021-04-23 12:32:46 -04:00
operator_seal.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
operator_seal_test.go
operator_step_down.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
operator_step_down_test.go
operator_unseal.go Migrate to sdk/internalshared libs in go-secure-stdlib (#12090) 2021-07-15 20:17:31 -04:00
operator_unseal_test.go
operator_usage.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
path_help.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
path_help_test.go
path_map_upgrade_api_test.go
pgp_test.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
plugin.go
plugin_deregister.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
plugin_deregister_test.go
plugin_info.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
plugin_info_test.go
plugin_list.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
plugin_list_test.go
plugin_register.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
plugin_register_test.go
plugin_reload.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
plugin_reload_status.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
plugin_reload_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
plugin_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
policy.go
policy_delete.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
policy_delete_test.go
policy_fmt.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
policy_fmt_test.go
policy_list.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
policy_list_test.go
policy_read.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
policy_read_test.go
policy_write.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
policy_write_test.go
print.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
print_token.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
read.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
read_test.go
rotate.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
rotate_test.go
secrets.go
secrets_disable.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
secrets_disable_test.go
secrets_enable.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
secrets_enable_test.go VAULT-2285 adding capability to accept comma separated entries for au… (#12126) 2021-08-09 15:37:03 -04:00
secrets_list.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
secrets_list_test.go
secrets_move.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
secrets_move_test.go
secrets_tune.go VAULT-2285 adding capability to accept comma separated entries for au… (#12126) 2021-08-09 15:37:03 -04:00
secrets_tune_test.go VAULT-2285 adding capability to accept comma separated entries for au… (#12126) 2021-08-09 15:37:03 -04:00
server.go Customizing HTTP headers in the config file (#12485) 2021-10-13 11:06:33 -04:00
server_noprofile.go
server_profile.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
server_test.go Vault-2840 Add no-op check for HTTP listener validity (#12421) 2021-09-07 18:36:58 -04:00
server_util.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
ssh.go command: deprecate errwrap.Wrapf() (#11744) 2021-06-02 09:22:31 -04:00
ssh_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
status.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
status_test.go
token.go
token_capabilities.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
token_capabilities_test.go
token_create.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
token_create_test.go
token_lookup.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
token_lookup_test.go
token_renew.go Update token renew docs (#12572) 2021-09-16 16:54:46 -07:00
token_renew_test.go Add ability to renew by accessor (#7817) 2019-11-08 11:32:01 -05:00
token_revoke.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
token_revoke_test.go
unwrap.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
unwrap_test.go
util.go cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694) 2021-09-30 07:33:14 -04:00
version.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
version_test.go
write.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
write_test.go