Vishal Nayak
c356df69a1
raft join tls ( #6932 )
2019-06-21 17:41:07 -04:00
Jeff Mitchell
85651034ad
Bump api go.mod
2019-06-20 23:21:14 -04:00
Vishal Nayak
863201b434
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
07a27b1842
Update sdk in api/
2019-06-18 14:50:21 -04:00
Jeff Mitchell
fb84828102
Bump API's SDK version
2019-06-18 12:23:16 -04:00
Jeff Mitchell
daa6a789fd
Bump api against latest sdk
2019-06-18 11:18:22 -04:00
Jeff Mitchell
c1ef613224
Update vendoring and api/sdk
2019-06-14 14:29:16 -04:00
Michel Vocks
37f4b65962
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
bb3cc738c5
Added missing entity_id to SecretAuth struct ( #6819 )
2019-06-04 10:04:20 -07:00
Lexman
794ac15540
duplicates some constants defined in pluginutil to avoid depending on x/net/trace ( #6703 )
2019-05-08 16:21:23 -07:00
Brian Kassouf
f6270bae64
Add mount UUID to the secret and auth list API responses ( #6633 )
2019-04-24 12:27:43 -07:00
Jeff Mitchell
e25a8a1c74
go mod tidy and go mod vendor
2019-04-23 20:58:55 -04:00
Jeff Mitchell
54360375c0
Update to SDK v0.1.8
2019-04-15 13:49:21 -04:00
Jeff Mitchell
8060a7b505
More rearranging of API and SDK
2019-04-15 13:38:08 -04:00
Jeff Mitchell
d026d9a2ef
Fix up package name
2019-04-15 12:22:58 -04:00
Jeff Mitchell
7bff97d829
Move some things around in api/sdk
2019-04-15 12:14:20 -04:00
Jeff Mitchell
f066e3a858
Update go.sum in API
2019-04-15 10:49:41 -04:00
Jeff Mitchell
a420514911
Update API go mod with sdk tag
2019-04-12 17:56:53 -04:00
Jeff Mitchell
170521481d
Create sdk/ and api/ submodules ( #6583 )
2019-04-12 17:54:35 -04:00
Jeff Mitchell
b7c85c2604
Remove some instances of potential recursive locking ( #6548 )
2019-04-08 12:45:28 -04:00
ncabatoff
13f8298a30
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
7ffe7fd370
Correct variables in "got %v expect %v" errors ( #6437 )
2019-03-19 09:34:13 -07:00
Jeff Mitchell
528604359c
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
8a340f9804
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
d94c646a6d
Explicit setting of url fields ( #6349 )
2019-03-05 12:20:16 -08:00
Vishal Nayak
6ce09bae6a
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
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
Jeff Mitchell
20423f7082
Add allowed_response_headers ( #6115 )
2019-02-05 16:02:15 -05:00
Jeff Mitchell
f404e0acd2
Add the ability to print curl commands from CLI ( #6113 )
2019-02-01 17:13:51 -05:00
Jeff Mitchell
d5a14878c5
Add missing performance_standby field to API
2019-01-17 18:15:00 -05:00
Jeff Mitchell
e644050e37
Fix a couple of instances where we are using LIST verb ( #6026 )
...
* Fix a couple of instances where we are using LIST verb
We specify it for the wrapping lookup function but for broader
compatibility with proxies and such we want to filter it to a GET. In a
couple of places we weren't doing that, so this updates those locations.
2019-01-10 19:57:00 -05:00
Jim Kalafut
a54603039d
Run goimports across the repository ( #6010 )
...
The result will still pass gofmtcheck and won't trigger additional
changes if someone isn't using goimports, but it will avoid the
piecemeal imports changes we've been seeing.
2019-01-08 16:48:57 -08:00
Jeff Mitchell
b701df4757
Update backwards compat fix from 5913
2018-12-12 15:36:28 -05:00
Nándor István Krácser
dbd195f895
Fix list plugins backward compatibility mechanism ( #5913 )
2018-12-12 15:33:09 -05:00
Becca Petrin
e3eee5b4fb
Restore plugin name for backwards compatibility ( #5825 )
...
* re-add plugin name for backwards compat
* add plugin name to table for backwards compat
* conditionally set the plugin name
* Update command/auth_list.go
Co-Authored-By: tyrannosaurus-becks <beccapetrin@posteo.net>
* Update command/secrets_list.go
Co-Authored-By: tyrannosaurus-becks <beccapetrin@posteo.net>
* update auth and secrets list commands
* add comments regarding deprecation
2018-11-19 16:41:17 -08:00
Calvin Leung Huang
1fddbc98ba
Revert deprecated plugin var names ( #5822 )
...
* Revert field back to ListPluginsResponse.Names
* Revert field back to MountConfig.PluginName and APIMountConfig.PluginName
2018-11-19 15:23:48 -08:00
Calvin Leung Huang
c6832a8099
Support registering plugin with name only ( #5787 )
...
* Support registering plugin with name only
* Make RegisterPlugin backwards compatible
* Add CLI backwards compat command to plugin info and deregister
* Add server-side deprecation warnings if old read/dereg API endpoints are called
* Address feedback
2018-11-15 14:33:11 -08:00
Sander van Harmelen
76bc4216a4
Use a pooled HTTP client for the Vault CLI ( #5734 )
...
As the CLI client is initialized with a specific Vault address, is makes
sense to use the pooled HTTP client here. This will prevent setting up
new TCP sessions for each API call that the client needs to make.
2018-11-09 10:46:57 -05:00
Becca Petrin
fb89af7cfa
Run all builtins as plugins ( #5536 )
2018-11-06 17:21:24 -08:00
Jeff Mitchell
934ec9305b
Update comment on API client's clone method
2018-11-01 12:26:18 -04:00
Vishal Nayak
8cd455241d
Use sys/policies/acl instead of sys/policy/ ( #5583 )
2018-10-29 13:11:19 -04:00
Jeff Mitchell
2f5b464bc9
Seal migration (OSS) ( #781 )
2018-10-22 23:34:02 -07:00
Jeff Mitchell
231c325770
Merge branch 'master-oss' into 1.0-beta-oss
2018-10-16 10:08:03 -04:00
Jeff Mitchell
bc33dbd13d
Add LastWAL in leader/health output ( #5523 )
2018-10-16 09:38:44 -04:00
Jeff Mitchell
a58d313d2b
Batch tokens ( #755 )
2018-10-15 12:56:24 -04:00
Jeff Mitchell
382f28ee24
Send initialized information via sys/seal-status ( #5424 )
2018-09-27 14:03:37 -07:00
Martin
56083f4dd9
use constant where x-vault-token was still hardcoded ( #5392 )
2018-09-25 09:34:40 -07:00
Jeff Mitchell
9ee8bd3438
Possibly fix Nomad capabilities issue ( #5360 )
2018-09-19 13:06:37 -04:00