1
0
Commit Graph

196 Commits

Author SHA1 Message Date
Brian Kassouf
03f6108822
gRPC Backend Plugins (#3808)
* Add grpc plugins

* Add grpc plugins

* Translate wrap info to/from proto

* Add nil checks

* Fix nil marshaling errors

* Provide logging through the go-plugin logger

* handle errors in the messages

* Update the TLS config so bidirectional connections work

* Add connectivity checks

* Restart plugin and add timeouts where context is not availible

* Add the response wrap data into the grpc system implementation

* Add leaseoptions to pb.Auth

* Add an error translator

* Add tests for translating the proto objects

* Fix rename of function

* Add tracing to plugins for easier debugging

* Handle plugin crashes with the go-plugin context

* Add test for grpcStorage

* Add tests for backend and system

* Bump go-plugin for GRPCBroker

* Remove RegisterLicense

* Add casing translations for new proto messages

* Use doneCtx in grpcClient

* Use doneCtx in grpcClient

* s/shutdown/shut down/
2018-01-18 13:49:20 -08:00
Jeff Mitchell
d6552a11cc Merge branch 'master-oss' into sethvargo/cli-magic 2018-01-03 14:02:31 -05:00
Brian Kassouf
a401cc7cb5
Database gRPC plugins (#3666)
* Start work on context aware backends

* Start work on moving the database plugins to gRPC in order to pass context

* Add context to builtin database plugins

* use byte slice instead of string

* Context all the things

* Move proto messages to the dbplugin package

* Add a grpc mechanism for running backend plugins

* Serve the GRPC plugin

* Add backwards compatibility to the database plugins

* Remove backend plugin changes

* Remove backend plugin changes

* Cleanup the transport implementations

* If grpc connection is in an unexpected state restart the plugin

* Fix tests

* Fix tests

* Remove context from the request object, replace it with context.TODO

* Add a test to verify netRPC plugins still work

* Remove unused mapstructure call

* Code review fixes

* Code review fixes

* Code review fixes
2017-12-14 14:03:11 -08:00
Jeff Mitchell
c2cef877f4 Port over some changes 2017-11-30 09:43:07 -05:00
Jeff Mitchell
ed1cbb0a78 Only copy hooks if building from a git repo
Fixes #3498
2017-10-27 13:11:04 -04:00
Seth Vargo
aea62c18c0
Unset VAULT_DEV_* in tests
Vault picks these values and then tests fail, and it's sad
2017-10-24 09:28:05 -04:00
Jeff Mitchell
3b7c33c49d Update proto 2017-10-23 17:45:05 -04:00
Jeff Mitchell
fde0e35db0 Sync makefile 2017-10-23 12:38:30 -04:00
Joel Thompson
7e03a4aed7 Explicitly check go version in build (#3309)
* Explicitly check go version in build

Several GH issues have been opened by people trying to use an older
version of Go to build Vault (e.g., #3307 is the most recent). This adds
an explicit check to the build to hopefully make it more clear to users
in the future.

* Also add checking for go patch version

* Up minimum go version

And fix a comment

* Bump travis to go1.9.1
2017-10-19 16:30:19 -04:00
Vishal Nayak
b78a63befb Added spellcheck target to makefile (#3398)
* Added spellcheck target to makefile

* address review comments
2017-10-19 12:55:39 -04:00
Vishal Nayak
6b9ce0c8c5 Porting identity store (#3419)
* porting identity to OSS

* changes that glue things together

* add testing bits

* wrapped entity id

* fix mount error

* some more changes to core

* fix storagepacker tests

* fix some more tests

* fix mount tests

* fix http mount tests

* audit changes for identity

* remove upgrade structs on the oss side

* added go-memdb to vendor
2017-10-11 10:21:20 -07:00
Vishal Nayak
1b2607ae12 Fix build (#3288) 2017-09-05 09:02:17 -04:00
Jeff Mitchell
ec8e0c6258 Add pre-push hook 2017-09-04 19:16:11 -04:00
Brian Kassouf
1fd46cbcb1 Fix MySQL legacy username regression (#3141)
* Fix the mysql legacy username length

* Remove boolean parameter

* Add a MySQL 5.6 container to test the legacy MySQL plugin against

* Add database plugins to the make file

* Fix credsutil test
2017-08-10 18:28:18 -07:00
Jeff Mitchell
1b1220f6e6 Bump timeout in testrace to match that of test to stop Travis errorring. 2017-07-26 13:03:04 -04:00
Jeff Mitchell
c6cc5f2703 Add govendor to bootstrap 2017-06-01 10:18:48 -04:00
emily
38ffde5a9d add gofmt checks to Vault and format existing code (#2745) 2017-05-19 08:34:17 -04:00
Jeff Mitchell
5252de6c2b Bump test timeout 2017-03-15 14:38:34 -04:00
Jeff Mitchell
98c7bd6c03 Port some replication bits to OSS (#2386) 2017-02-16 15:15:02 -05:00
Jeff Mitchell
1cf67916d2 Add quickdev to Makefile 2017-02-05 20:30:40 -05:00
Jeff Mitchell
f2de741431 Update Makefile protoc commands 2017-01-06 15:11:51 -05:00
Jeff Mitchell
7f8ac1fa8d Add 'make proto' target 2016-10-20 12:39:19 -04:00
Jeff Mitchell
d50a938d14 Make bootstrap use -u to ensure up-to-date versions of tools, as that's
what we build with.

Fixes #1890
2016-09-14 15:10:02 -04:00
Jeff Mitchell
edd6379466 Clustering enhancements (#1747) 2016-08-19 11:03:53 -04:00
Jeff Mitchell
e57af52b41 Fix default makefile target and README 2016-08-10 15:38:17 -04:00
Jeff Mitchell
59e4664540 Revert "Remove a few assumptions regarding bash(1) being located in /bin." 2016-05-15 15:22:21 -04:00
Sean Chittenden
d596c26b4b
Remove a few assumptions regarding bash(1) being located in /bin.
Use sh(1) where appropriate.
2016-05-15 11:41:14 -07:00
Jeff Mitchell
59c9bafa12 Add dev-dynamic makefile target 2016-05-09 23:17:38 -04:00
Jeff Mitchell
024c1096e7 Explicitly toggle cgo in makefile 2016-04-28 16:54:34 +00:00
Jeff Mitchell
1010591193 Built tag-ify sealtesting 2016-04-28 00:47:44 +00:00
Jeff Mitchell
cf64cbfe9c Move TestSeal funcs to sealtesting 2016-04-27 20:59:06 +00:00
vishalnayak
d71dcf2da2 s/TF_ACC/VAULT_ACC 2016-04-05 15:24:59 -04:00
Jeff Mitchell
c77e00d773 TF_DEV->VAULT_DEV_BUILD 2016-02-25 11:05:51 -05:00
Jeff Mitchell
f53dfb3c98 Makefile whitespacing 2016-02-18 21:26:28 -05:00
Jeff Mitchell
757dca2e2c Migrate to built-in Go vendoring.
This also removes `godep` calls from make scripts. Of note is that
currently `./...` checking in acceptance tests is disabled.
2016-02-18 15:06:02 -05:00
Jeff Mitchell
f4df0d828e Add transit fuzz test 2016-02-03 17:36:15 -05:00
Jeff Mitchell
4fa678131a Make sure VAULT_TOKEN is empty during unit tests 2016-01-09 14:47:55 -05:00
Jeff Mitchell
a09b2f3437 Make the timeout for 'make test' 60s to accommodate larger numbers of generated keys in tests 2015-12-09 17:07:29 -05:00
Jeff Mitchell
fcbdb5f30a fix tests 2015-11-19 10:13:28 -05:00
Jim Alateras
21baf6dc95 Added a bootstrap target in the makefile to download required tools and updated the README.md instructions 2015-06-01 09:32:36 +10:00
Abhishek Chanda
60469c0ef9 Add a script to handle coverage
go test cannot gather coverage numbers for multiple packages
https://github.com/golang/go/issues/6909
This script wraps go test to generate report for each package
and then combine them in one file
2015-04-28 19:02:46 -07:00
Emil Hessman
f159e807ac Makefile: don't vet Godeps
Only vet the actual vault packages; skip the Godeps directory.
2015-04-28 22:18:55 +02:00
Emil Hessman
cd1b6765aa Makefile: run cover with godep 2015-04-28 21:05:11 +02:00
Mitchell Hashimoto
8e529b8ace Use Godeps 2015-04-27 16:22:26 -07:00
Mitchell Hashimoto
3456d9276c logical/aws 2015-03-20 19:03:20 +01:00
Mitchell Hashimoto
a5c076851b scripts 2015-03-03 23:14:18 -08:00