Calvin Leung Huang
734564825f
agent/caching: support proxying request query parameters ( #6772 )
...
* agent/caching: support proxying request query parameters
* update comment
* rejig other agent log messages to output method followed by path
2019-05-22 09:21:47 -07:00
Jeff Mitchell
8054cc660f
Update to api 1.0.1 and sdk 0.1.8
2019-04-15 14:10:07 -04:00
Jeff Mitchell
278bdd1f4e
Switch to go modules ( #6585 )
...
* Switch to go modules
* Make fmt
2019-04-13 03:44:06 -04:00
Jeff Mitchell
170521481d
Create sdk/ and api/ submodules ( #6583 )
2019-04-12 17:54:35 -04:00
Calvin Leung Huang
27c655ef67
agent/caching: add X-Cache and Age headers ( #6394 )
...
* agent/caching: add X-Cache and Age headers, update Date header on cached resp
* Update command/agent/cache/lease_cache.go
Co-Authored-By: calvn <cleung2010@gmail.com>
* Update command/agent/cache/proxy.go
Co-Authored-By: calvn <cleung2010@gmail.com>
2019-03-12 13:21:02 -07:00
Calvin Leung Huang
f72078f237
agent/caching: use locks on LeaseCache.Send ( #6374 )
...
* agent/caching: use locks on LeaseCache.Send to prevent running multiple renewer goroutines
* update comment
2019-03-07 15:50:12 -08:00
Calvin Leung Huang
e57416c93d
Refactor handleCacheClear input params ( #6350 )
...
* Refactor handleCacheClear input params
* address review feedback
* fix handleCacheClear's token_accessor case
2019-03-06 18:08:19 -08:00
Calvin Leung Huang
ba86e6bbd5
agent/caching: proxy redirect and non-json responses; update tests ( #6353 )
...
* agent/caching: proxy redirect and non-json responses; update tests
* agent/caching: do not wrap error responses as internal errors, simply proxy them back as-is
* minor refactoring of APIProxy.Send logic
* add test case to ensure error response is not wrapped
2019-03-06 17:23:20 -08:00
Vishal Nayak
038ab04cd0
Refactor respond error function ( #6343 )
2019-03-05 11:43:30 -05:00
Calvin Leung Huang
39b8acb915
agent/caching: simplify orphan check; add orphan token creation tests ( #6322 )
2019-03-01 17:57:25 -08:00
Vishal Nayak
12b51ff859
Add locking around base context ( #6321 )
...
Got offline 👍 from Calvin.
2019-03-01 20:30:14 -05:00
Calvin Leung Huang
7cc75c5f38
agent/caching: refactor ContextInfo ( #6311 )
...
* agent/caching: refactor ContextInfo
* use NewContextInfo in NewLeaseCache
2019-03-01 11:20:36 -08:00
Calvin Leung Huang
6934bb6f9d
agent/caching: test renaming; add api-level cache-clear test ( #6305 )
...
* test renaming; add api-level cache-clear test
* fix import ordering
2019-02-28 10:05:55 -08:00
Calvin Leung Huang
e7365516f3
agent/caching: enable caching of leases generated by autoauth token ( #6293 )
...
* agent/caching: enable caching of leases generated by autoauth token
* add test for auth/token/create path
* update error message log
* Some minor updates
* add sleep timer for renewal logic to process
2019-02-27 13:14:58 -08:00
Vishal Nayak
13586e8e09
Agent Caching: Remove response updates using renewal output ( #6303 )
...
* Agent Caching: Remove response updates using renewal output
* Use renewal output channel to log the fact
2019-02-27 14:33:45 -05:00
Vishal Nayak
91deac7aab
Agent Cache: Some review feedback ( #6257 )
...
* Revamp agent cache client
* Update command/agent.go
Co-Authored-By: vishalnayak <vishalnayak@users.noreply.github.com>
* Agent cache auto auth token lookup case (#6258 )
* agent cache auto auth token lookup case
* Use Blake2b256Hash instead of SHA256
* agent/cache: update cache-clear endpoint; use bytes.NewReader instead (#6259 )
* agent/cache: update cache-clear endpoint; use bytes.NewReader instead
* agent/cache: Fix TestCache_ComputeIndexID after switching to blake2b
* agent/cache: Only parse response body if it's non-nil (#6260 )
* Differently disable agent address in the API client
* Remove DisableAgent
2019-02-19 16:53:29 -05:00
Vishal Nayak
4be79200e3
address some review back ( #6237 )
2019-02-15 13:40:03 -05:00
Vishal Nayak
e39a5f28df
Vault Agent Cache ( #6220 )
...
* vault-agent-cache: squashed 250+ commits
* Add proper token revocation validations to the tests
* Add more test cases
* Avoid leaking by not closing request/response bodies; add comments
* Fix revoke orphan use case; update tests
* Add CLI test for making request over unix socket
* agent/cache: remove namespace-related tests
* Strip-off the auto-auth token from the lookup response
* Output listener details along with configuration
* Add scheme to API address output
* leasecache: use IndexNameLease for prefix lease revocations
* Make CLI accept the fully qualified unix address
* export VAULT_AGENT_ADDR=unix://path/to/socket
* unix:/ to unix://
2019-02-14 20:10:36 -05:00