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
Jeff Mitchell
82ee4176e6
Add the ability to print curl commands from CLI ( #6113 )
2019-02-01 17:13:51 -05:00
Jeff Mitchell
f7a35d4f49
Add missing performance_standby field to API
2019-01-17 18:15:00 -05:00
Jeff Mitchell
28bd394d8b
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
d0e2badbae
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
fff8976671
Update backwards compat fix from 5913
2018-12-12 15:36:28 -05:00
Nándor István Krácser
8bd1ce1864
Fix list plugins backward compatibility mechanism ( #5913 )
2018-12-12 15:33:09 -05:00
Becca Petrin
a96f1f75ee
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
907dd834ff
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
e99957aed9
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
d4328a6684
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
7bd22e6779
Run all builtins as plugins ( #5536 )
2018-11-06 17:21:24 -08:00
Jeff Mitchell
3b8d0ed72c
Update comment on API client's clone method
2018-11-01 12:26:18 -04:00
Vishal Nayak
d3d6034ee5
Use sys/policies/acl instead of sys/policy/ ( #5583 )
2018-10-29 13:11:19 -04:00
Jeff Mitchell
82992d6097
Seal migration (OSS) ( #781 )
2018-10-22 23:34:02 -07:00
Jeff Mitchell
224fbd4a88
Merge branch 'master-oss' into 1.0-beta-oss
2018-10-16 10:08:03 -04:00
Jeff Mitchell
04e3f9b0f3
Add LastWAL in leader/health output ( #5523 )
2018-10-16 09:38:44 -04:00
Jeff Mitchell
a64fc7d7cb
Batch tokens ( #755 )
2018-10-15 12:56:24 -04:00
Jeff Mitchell
ef144c4c25
Send initialized information via sys/seal-status ( #5424 )
2018-09-27 14:03:37 -07:00
Martin
79ab601cdb
use constant where x-vault-token was still hardcoded ( #5392 )
2018-09-25 09:34:40 -07:00
Jeff Mitchell
4b45d8210f
Possibly fix Nomad capabilities issue ( #5360 )
2018-09-19 13:06:37 -04:00
Brian Kassouf
c603a8b811
Add performance standby status to status output ( #5192 )
...
* Add performance standby status to status output
* Update ha.go
2018-08-27 10:01:07 -07:00
Jeff Mitchell
aec9a689a0
Sync over some stuff
2018-08-24 12:09:03 -04:00
Jeff Mitchell
66a0029195
Sync some ns stuff to api/command
2018-08-22 14:37:40 -04:00