Commit Graph

473 Commits

Author SHA1 Message Date
Nick Cabatoff
a5be341436 go mod vendor and go mod tidy 2019-10-04 09:14:37 -04:00
Calvin Leung Huang
7cb35a1a30 sys: add host-info endpoint (#7330)
* sys: add host-info endpoint, add client API method

* remove old commented handler

* add http tests, fix bugs

* query all partitions for disk usage

* fix Timestamp decoding

* add comments for clarification

* dont append a nil entry on disk usage query error

* remove HostInfo from the sdk api

We can use Logical().Read(...) to query this endpoint since the payload is contained with the data object. All warnings are preserved under Secret.Warnings.

* ensure that we're testing failure case against a standby node

* add and use TestWaitStandby to ensure core is on standby

* remove TestWaitStandby

* respond with local-only error

* move HostInfo into its own helper package

* fix imports; use new no-forward handler

* add cpu times to collection

* emit clearer multierrors/warnings by collection type

* add comments on HostInfo fields
2019-10-03 09:43:52 -07:00
Jeff Mitchell
4eefe0ebe1 Bump API's SDK 2019-09-19 09:42:45 -04:00
Matthew Irish
545a4b1242 expose 'storage_type' on the sys/seal-status endpoint (#7486)
* expose 'storage_type' on the sys/seal-status endpoint

* add comments

* Update vault/core.go

Co-Authored-By: Brian Kassouf <briankassouf@users.noreply.github.com>
2019-09-18 14:07:18 -05:00
Jeff Mitchell
e430c83641 Bump API's sdk 2019-09-18 09:10:23 -04:00
Mike Jarmy
8f2c394bbe use api.Config.Timeout instead of http.Client.Timeout for 60s request timeout default (#7469) 2019-09-13 08:28:58 -04:00
Jeff Mitchell
82f8309ab6 Update api's SDK 2019-09-04 12:45:30 -04:00
Jeff Mitchell
72e177e5f3 Bump retryablehttp again 2019-08-26 15:39:27 -04:00
Jeff Mitchell
c78c10502e Bump go-retryablehttp version 2019-08-26 14:44:03 -04:00
Jeff Mitchell
b4347d5538 Bump api's sdk 2019-08-05 18:02:15 -04:00
Jeff Mitchell
746c0b1115 Update api's sdk 2019-07-30 00:23:57 -04:00
Jeff Mitchell
afd9e759ca Update api's sdk version 2019-07-25 12:57:51 -04:00
Jeff Mitchell
9658a8a782 Pull in sdk 0.1.12 to api 2019-07-25 12:16:06 -04:00
Nick Cabatoff
f57ccdd48b 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
2c807ec75a Bump API's SDK 2019-07-19 10:39:32 -04:00
Calvin Leung Huang
3e2cd485de 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
61a1729264 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
cdd1893eac Bump api's sdk 2019-07-09 04:01:32 -04:00
Jeff Mitchell
ffa4dc93e6 Bump sdk in api 2019-07-08 19:04:47 -04:00
Jeff Mitchell
5337e16868 Update api's sdk 2019-07-03 00:13:12 -04:00
Jeff Mitchell
ed34f18c60 Bump api's sdk 2019-07-02 22:18:09 -04:00
Jeff Mitchell
a3904ef494 Bump sdk 2019-07-02 10:24:43 -04:00
Jeff Mitchell
ece9a4a6f0 Bump API's sdk 2019-07-02 09:52:36 -04:00
Jeff Mitchell
add28c6649 Bump api's sdk import 2019-07-01 18:29:23 -04:00
Michel Vocks
e7ed7399f8 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
fe636fb73f Add a deprecated helper to tokenutil and JSON output to path-help (#7006) 2019-06-27 12:56:31 -04:00
Alex Dadgar
cc3a81801f 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
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