Jeff Mitchell
faa4f6bb77
Bump retryablehttp again
2019-08-26 15:39:27 -04:00
Jeff Mitchell
be5a2bde22
Bump go-retryablehttp version
2019-08-26 14:44:03 -04:00
Jeff Mitchell
a8e9bdaaf4
Bump api's sdk
2019-08-05 18:02:15 -04:00
Jeff Mitchell
356faff9ab
Update api's sdk
2019-07-30 00:23:57 -04:00
Jeff Mitchell
522c11e654
Update api's sdk version
2019-07-25 12:57:51 -04:00
Jeff Mitchell
5c898b8674
Pull in sdk 0.1.12 to api
2019-07-25 12:16:06 -04:00
Nick Cabatoff
3f1d1765ec
Update sdk to grpc 1.22 for https://github.com/grpc/grpc-go/pull/2818 which caused intermittent ent test failures.
2019-07-24 11:45:58 -04:00
Jeff Mitchell
58dcca680a
Bump API's SDK
2019-07-19 10:39:32 -04:00
Calvin Leung Huang
e869893df3
logical: add support for passing data to delete ( #7139 )
...
* logical: add support for passing data to delete
* add back raft bit
* add back raft bit
* update error message
* fix command delete tests
2019-07-18 10:42:36 -07:00
Jeff Mitchell
f522dd8f35
Add backwards compat support for API env vars ( #7135 )
...
Several env vars got renamed in
https://github.com/hashicorp/vault/pull/6306 . This re-adds support for
those.
Indirectly addresses
https://github.com/hashicorp/consul-template/pull/1233 although they
should still update to the new values.
2019-07-17 06:29:25 -04:00
Jeff Mitchell
b12a49f19f
Bump api's sdk
2019-07-09 04:01:32 -04:00
Jeff Mitchell
b86c920b6c
Bump sdk in api
2019-07-08 19:04:47 -04:00
Jeff Mitchell
6be11db56e
Update api's sdk
2019-07-03 00:13:12 -04:00
Jeff Mitchell
28b5670d49
Bump api's sdk
2019-07-02 22:18:09 -04:00
Jeff Mitchell
3168ae809b
Bump sdk
2019-07-02 10:24:43 -04:00
Jeff Mitchell
5217bb882f
Bump API's sdk
2019-07-02 09:52:36 -04:00
Jeff Mitchell
fc4491890b
Bump api's sdk import
2019-07-01 18:29:23 -04:00
Michel Vocks
2b5aca4300
Token identity support ( #6267 )
...
* Implemented token backend support for identity
* Fixed tests
* Refactored a few checks for the token entity overwrite. Fixed tests.
* Moved entity alias check up so that the entity and entity alias is only created when it has been specified in allowed_entity_aliases list
* go mod vendor
* Added glob pattern
* Optimized allowed entity alias check
* Added test for asterisk only
* Changed to glob pattern anywhere
* Changed response code in case of failure. Changed globbing pattern check. Added docs.
* Added missing token role get parameter. Added more samples
* Fixed failing tests
* Corrected some cosmetical review points
* Changed response code for invalid provided entity alias
* Fixed minor things
* Fixed failing test
2019-07-01 11:39:54 +02:00
Jeff Mitchell
346a31fddf
Add a deprecated helper to tokenutil and JSON output to path-help ( #7006 )
2019-06-27 12:56:31 -04:00
Alex Dadgar
831a3afca9
API Response returns specialized error type ( #6984 )
...
* Return specialized error type
* Add a helper for extracting gRPC codes from errors
* Fix spacing in example
* Drop grpc codes
* Fix storing of decoded errors
2019-06-26 11:35:08 -07:00
Vishal Nayak
9296ca1f8c
raft join tls ( #6932 )
2019-06-21 17:41:07 -04:00
Jeff Mitchell
7a4726ed22
Bump api go.mod
2019-06-20 23:21:14 -04:00
Vishal Nayak
53035ce390
Raft CLI ( #6893 )
...
* raft cli
* Reuse the command's client
* Better response handling
* minor touchups
2019-06-20 21:32:00 -04:00
Jeff Mitchell
1a7fee63e3
Update sdk in api/
2019-06-18 14:50:21 -04:00
Jeff Mitchell
c466791207
Bump API's SDK version
2019-06-18 12:23:16 -04:00
Jeff Mitchell
49ca5cec91
Bump api against latest sdk
2019-06-18 11:18:22 -04:00
Jeff Mitchell
51f3d3137f
Update vendoring and api/sdk
2019-06-14 14:29:16 -04:00
Michel Vocks
fcf1b9c54e
Fixed wrong rekey recovery backup client API URL ( #6841 )
...
* Fixed wrong rekey recovery backup client API URL
* Fixed wrong rekey recovery backup client API URL delete
* Changed output for recovery backup key delete
2019-06-11 10:05:44 +02:00
Michel Vocks
71e99d9490
Added missing entity_id to SecretAuth struct ( #6819 )
2019-06-04 10:04:20 -07:00
Lexman
c497ac7da1
duplicates some constants defined in pluginutil to avoid depending on x/net/trace ( #6703 )
2019-05-08 16:21:23 -07:00
Brian Kassouf
04d0ddfdae
Add mount UUID to the secret and auth list API responses ( #6633 )
2019-04-24 12:27:43 -07:00
Jeff Mitchell
fe8ead5f2d
go mod tidy and go mod vendor
2019-04-23 20:58:55 -04:00
Jeff Mitchell
4dd880871e
Update to SDK v0.1.8
2019-04-15 13:49:21 -04:00
Jeff Mitchell
ffd6a87959
More rearranging of API and SDK
2019-04-15 13:38:08 -04:00
Jeff Mitchell
4567a11c02
Fix up package name
2019-04-15 12:22:58 -04:00
Jeff Mitchell
f491851ed1
Move some things around in api/sdk
2019-04-15 12:14:20 -04:00
Jeff Mitchell
d75b680bb1
Update go.sum in API
2019-04-15 10:49:41 -04:00
Jeff Mitchell
c591f20836
Update API go mod with sdk tag
2019-04-12 17:56:53 -04:00
Jeff Mitchell
8bcb533a1b
Create sdk/ and api/ submodules ( #6583 )
2019-04-12 17:54:35 -04:00
Jeff Mitchell
9f0a6edfcb
Remove some instances of potential recursive locking ( #6548 )
2019-04-08 12:45:28 -04:00
ncabatoff
9670ec28b1
api.NewClient() now uses $VAULT_NAMESPACE as an input. ( #6470 )
...
* api.NewClient() now uses $VAULT_NAMESPACE as an input.
* Remove bogus comments.
2019-03-25 13:23:59 -05:00
Austin Green
7fd469af88
Correct variables in "got %v expect %v" errors ( #6437 )
2019-03-19 09:34:13 -07:00
Jeff Mitchell
a0c8544071
Stop some curl whining ( #6385 )
...
GET is inferred, so make curl whine less by not printing it
2019-03-08 14:14:50 -05:00
Jeff Mitchell
c4001cc40d
This moves api_test package tests into vault/external_tests
...
This prevents projects importing Vault's API from then also importing
the rest of Vault.
2019-03-06 11:20:42 -05:00
Vishal Nayak
1fca0f7b6f
Explicit setting of url fields ( #6349 )
2019-03-05 12:20:16 -08:00
Vishal Nayak
ac2b499fc9
Support reading Vault's address from Agent's config file ( #6306 )
...
* Support reading Vault's address from Agent's config file
* use consts and switch
* Add tls options to agent config vault block
* Update command/agent/config/config.go
Co-Authored-By: vishalnayak <vishalnayak@users.noreply.github.com>
* remove fmt.Printfs
2019-02-28 17:29:28 -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
Jeff Mitchell
5f249d4005
Add allowed_response_headers ( #6115 )
2019-02-05 16:02:15 -05:00