open-vault/command/agent
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
..
auth agent: return a non-zero exit code on error (#9670) 2020-09-29 18:03:09 -07:00
cache agent: add an inflight cache better concurrent request handling (#10705) 2021-01-26 12:09:37 -08:00
config feat(agent): add retry configuration for vault agent (#10644) 2021-01-25 11:00:17 -08:00
sink Flaky Test Fix: TestSink [VAULT-720] (#10086) 2020-10-05 10:29:08 -07:00
template feat(agent): add retry configuration for vault agent (#10644) 2021-01-25 11:00:17 -08:00
winsvc Allow Vault Agent to run as a Windows service (#10231) 2020-11-23 14:24:32 -08:00
README.md Vault Agent Template (#7652) 2019-10-18 16:21:46 -05:00
alicloud_end_to_end_test.go agent: return a non-zero exit code on error (#9670) 2020-09-29 18:03:09 -07:00
approle_end_to_end_test.go agent: return a non-zero exit code on error (#9670) 2020-09-29 18:03:09 -07:00
aws_end_to_end_test.go agent: return a non-zero exit code on error (#9670) 2020-09-29 18:03:09 -07:00
cache_end_to_end_test.go agent: return a non-zero exit code on error (#9670) 2020-09-29 18:03:09 -07:00
cert_end_to_end_test.go agent: return a non-zero exit code on error (#9670) 2020-09-29 18:03:09 -07:00
cf_end_to_end_test.go agent: return a non-zero exit code on error (#9670) 2020-09-29 18:03:09 -07:00
doc.go Vault Agent Template (#7652) 2019-10-18 16:21:46 -05:00
jwt_end_to_end_test.go agent: return a non-zero exit code on error (#9670) 2020-09-29 18:03:09 -07:00
testing.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00

README.md

Vault Agent

Vault Agent is a client daemon that provides Auth-Auth, Caching, and Template features.

Vault Agent provides a number of different helper features, specifically addressing the following challenges:

  • Automatic authentication
  • Secure delivery/storage of tokens
  • Lifecycle management of these tokens (renewal & re-authentication)

See the usage documentation on the Vault website here: