open-vault/command
Calvin Leung Huang 0df09e356d
agent: add an inflight cache better concurrent request handling (#10705)
* agent: do not grap idLock writelock until caching entry

* agent: inflight cache using sync.Map

* agent: implement an inflight caching mechanism

* agent/lease: add lock for inflight cache to prevent simultaneous Set calls

* agent/lease: lock on a per-ID basis so unique requests can be processed independently

* agent/lease: add some concurrency tests

* test: use lease_id for uniqueness

* agent: remove env flags, add comments around locks

* agent: clean up test comment

* agent: clean up test comment

* agent: remove commented debug code

* agent/lease: word-smithing

* Update command/agent/cache/lease_cache.go

Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>

* agent/lease: return the context error if the Done ch got closed

* agent/lease: fix data race in concurrency tests

* agent/lease: mockDelayProxier: return ctx.Err() if context got canceled

* agent/lease: remove unused inflightCacheLock

* agent/lease: test: bump context timeout to 3s

Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>
2021-01-26 12:09:37 -08:00
..
agent agent: add an inflight cache better concurrent request handling (#10705) 2021-01-26 12:09:37 -08:00
config Ensure that the .vault-token file writen by `vault login` always has the correct permissions and ownership. (#8867) 2020-04-27 19:55:13 -04:00
server Port: Telemetry For Lease Expiration Times (#10375) 2020-11-13 10:26:58 -08:00
test-fixtures
token Ensure that the .vault-token file writen by `vault login` always has the correct permissions and ownership. (#8867) 2020-04-27 19:55:13 -04:00
agent.go Set namespace for template server in agent (#10757) 2021-01-25 17:37:01 -05:00
agent_test.go Extend agent template tests to also validate that updated templates get re-rendered. (#9097) 2020-05-29 13:36:59 -04:00
approle_concurrency_integ_test.go
audit.go
audit_disable.go
audit_disable_test.go
audit_enable.go
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
audit_list_test.go
auth.go
auth_disable.go
auth_disable_test.go
auth_enable.go
auth_enable_test.go
auth_help.go
auth_help_test.go
auth_list.go
auth_list_test.go
auth_test.go
auth_tune.go
auth_tune_test.go
base.go
base_flags.go Add date/time argument type. (#9817) 2020-08-26 14:40:23 -05:00
base_flags_test.go Add date/time argument type. (#9817) 2020-08-26 14:40:23 -05:00
base_helpers.go Fix KV list command with whitespaces (#8017) 2020-11-23 12:38:14 -07:00
base_helpers_test.go Merge PR #9060: Support reading Raft TLS flags from file 2020-05-23 11:09:55 -04:00
base_predict.go Fix CLI namespace commands (#8315) 2020-02-09 19:38:39 +01:00
base_predict_test.go Adding snowflake as a bundled database secrets plugin (#10603) 2021-01-07 09:30:24 -08:00
command_test.go Add a new "vault monitor" command (#8477) 2020-05-21 13:07:50 -07:00
commands.go Aerospike storage backend (#10131) 2021-01-12 15:26:07 -08:00
commands_nonwindows.go
commands_windows.go
config.go
config_test.go
debug.go Add log gathering to debug command. (#10609) 2020-12-22 15:15:24 -05:00
debug_test.go Add log gathering to debug command. (#10609) 2020-12-22 15:15:24 -05:00
delete.go
delete_test.go
format.go core: Record the time a node became active (#10489) 2020-12-11 16:50:19 -08:00
format_test.go core: Record the time a node became active (#10489) 2020-12-11 16:50:19 -08:00
kv.go
kv_delete.go
kv_destroy.go
kv_enable_versioning.go Fix outdated enable-versioning command usage in kv (#10212) 2020-10-23 12:46:20 -07:00
kv_get.go
kv_helpers.go
kv_list.go Fix KV list command with whitespaces (#8017) 2020-11-23 12:38:14 -07:00
kv_metadata.go
kv_metadata_delete.go
kv_metadata_get.go
kv_metadata_put.go allow delete-version-after to be reset to 0 (#8635) 2020-03-30 16:19:44 -07:00
kv_metadata_put_test.go Prevent panic due to upgrading existing `kv` mount to v2. (#9536) 2020-07-20 16:35:26 -04:00
kv_patch.go
kv_put.go
kv_rollback.go
kv_test.go Retry a KV put command if the message indicates kv-v2 upgrade. (#9873) 2020-09-02 10:53:36 -05:00
kv_undelete.go
lease.go
lease_renew.go
lease_renew_test.go
lease_revoke.go
lease_revoke_test.go
list.go Fix KV list command with whitespaces (#8017) 2020-11-23 12:38:14 -07:00
list_test.go Fix KV list command with whitespaces (#8017) 2020-11-23 12:38:14 -07:00
login.go
login_test.go
main.go
monitor.go Add a new "vault monitor" command (#8477) 2020-05-21 13:07:50 -07:00
monitor_test.go Add a new "vault monitor" command (#8477) 2020-05-21 13:07:50 -07:00
namespace.go
namespace_create.go Fix CLI namespace commands (#8315) 2020-02-09 19:38:39 +01:00
namespace_delete.go Fix CLI namespace commands (#8315) 2020-02-09 19:38:39 +01:00
namespace_list.go Fix CLI namespace commands (#8315) 2020-02-09 19:38:39 +01:00
namespace_lookup.go Fix CLI namespace commands (#8315) 2020-02-09 19:38:39 +01:00
operator.go
operator_generate_root.go command/generate-root: support returning json format on decode and generate otp (#7870) 2020-02-14 18:26:49 -08:00
operator_generate_root_test.go
operator_init.go Fix typo in usage description of operator init -status flag (#10618) 2020-12-23 13:12:44 -07:00
operator_init_test.go
operator_key_status.go
operator_key_status_test.go
operator_migrate.go raft: add support for using backend for ha_storage (#9193) 2020-06-23 12:04:13 -07:00
operator_migrate_test.go
operator_raft.go Raft cli docs (#8548) 2020-03-17 09:46:44 -04:00
operator_raft_join.go Merge PR #10192: Auto-Join: Configurable Scheme & Port (and add k8s provider) 2020-10-23 16:13:09 -04:00
operator_raft_listpeers.go Add list peers to DR secondaries (#10746) 2021-01-22 11:50:59 -05:00
operator_raft_remove_peer.go Merge PR #10059: Port OSS changes from #1497 2020-10-01 15:15:20 -04:00
operator_raft_snapshot.go Raft cli docs (#8548) 2020-03-17 09:46:44 -04:00
operator_raft_snapshot_restore.go
operator_raft_snapshot_save.go Don't open a raft snapshot file until we have a successful snapshot response. (#9894) 2020-09-14 12:22:45 -05:00
operator_rekey.go
operator_rekey_test.go
operator_seal.go
operator_seal_test.go
operator_step_down.go
operator_step_down_test.go
operator_unseal.go
operator_unseal_test.go
operator_usage.go "vault operator usage" CLI for client count reporting (#10365) 2020-11-23 14:57:35 -06:00
path_help.go
path_help_test.go
path_map_upgrade_api_test.go
pgp_test.go
plugin.go
plugin_deregister.go
plugin_deregister_test.go
plugin_info.go
plugin_info_test.go
plugin_list.go
plugin_list_test.go
plugin_register.go
plugin_register_test.go
plugin_reload.go Global Plugin Reload: OSS Changes Take II (#9347) 2020-06-30 10:26:52 -05:00
plugin_reload_status.go Address feedback on Plugin Reload: OSS Side (#9350) 2020-06-30 16:26:38 -05:00
plugin_reload_test.go Global Plugin Reload: OSS Changes Take II (#9347) 2020-06-30 10:26:52 -05:00
plugin_test.go
policy.go
policy_delete.go
policy_delete_test.go
policy_fmt.go
policy_fmt_test.go
policy_list.go
policy_list_test.go
policy_read.go
policy_read_test.go
policy_write.go
policy_write_test.go
print.go
print_token.go Fix typo in print token synopsis text (#10320) 2020-12-03 10:59:09 -07:00
read.go
read_test.go
rotate.go
rotate_test.go
secrets.go
secrets_disable.go
secrets_disable_test.go
secrets_enable.go
secrets_enable_test.go test: port test changes to oss (#8694) 2020-04-07 11:26:51 -07:00
secrets_list.go
secrets_list_test.go
secrets_move.go
secrets_move_test.go
secrets_tune.go
secrets_tune_test.go
server.go Be consistent with how we report init status. (#10498) 2020-12-08 13:55:34 -05:00
server_noprofile.go
server_profile.go
server_test.go Update go version to 1.15.3 (#10279) 2020-10-30 16:44:06 -04:00
server_util.go Test pre-1.4 seal migration (#9085) 2020-06-11 15:07:59 -04:00
ssh.go
ssh_test.go
status.go Unconditionally use the root namespace when calling sys/seal-status. (#10742) 2021-01-25 11:25:54 -06:00
status_test.go
token.go
token_capabilities.go
token_capabilities_test.go
token_create.go minor docs updates (#8725) 2020-04-13 10:03:05 -07:00
token_create_test.go
token_lookup.go
token_lookup_test.go
token_renew.go
token_renew_test.go
token_revoke.go
token_revoke_test.go
unwrap.go Support unwrapping tokens that does not contain data (#8714) 2020-04-09 14:09:23 -04:00
unwrap_test.go
util.go
version.go
version_test.go
write.go
write_test.go