Jeff Mitchell
09a9587523
Move renewer to internal package so tests don't barf
2019-09-09 16:09:53 -04:00
Jeff Mitchell
a965378b17
Support batch tokens in renewer and caching proxy for transit auto-unseal ( #7441 )
...
Currently this uses a fork of the api.Renewer code, which we should consolidate in 1.3.
2019-09-09 12:58:28 -07:00
Calvin Leung Huang
679f7415ea
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
213b9fd1cf
Update to api 1.0.1 and sdk 0.1.8
2019-04-15 14:10:07 -04:00
Jeff Mitchell
9ebc57581d
Switch to go modules ( #6585 )
...
* Switch to go modules
* Make fmt
2019-04-13 03:44:06 -04:00
Jeff Mitchell
8bcb533a1b
Create sdk/ and api/ submodules ( #6583 )
2019-04-12 17:54:35 -04:00
Calvin Leung Huang
b7dcef399d
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
86df7ee2d5
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
e6798347a7
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
a74b0deac0
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
59e8632d2d
Refactor respond error function ( #6343 )
2019-03-05 11:43:30 -05:00
Calvin Leung Huang
c5aaf8dcb0
agent/caching: simplify orphan check; add orphan token creation tests ( #6322 )
2019-03-01 17:57:25 -08:00
Vishal Nayak
ce42e9ea1f
Add locking around base context ( #6321 )
...
Got offline 👍 from Calvin.
2019-03-01 20:30:14 -05:00
Calvin Leung Huang
23395891d3
agent/caching: refactor ContextInfo ( #6311 )
...
* agent/caching: refactor ContextInfo
* use NewContextInfo in NewLeaseCache
2019-03-01 11:20:36 -08:00
Calvin Leung Huang
5eb50a261e
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
c07253999c
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
ffabeda5d9
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
5037185d5d
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
614ec67b05
address some review back ( #6237 )
2019-02-15 13:40:03 -05:00
Vishal Nayak
feb235d5f8
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