395 Commits

Author SHA1 Message Date
Brian Kassouf
f6a3ca6891
Update vendor directory (#7076) 2019-07-05 17:01:41 -07:00
Brian Kassouf
7744e08d94
storage/raft: When restoring a snapshot preseal first (#7011)
* storage/raft: When restoring a snapshot preseal first

* best-effort allow standbys to apply the restoreOp before sealing active node

* Don't cache the raft tls key

* Update physical/raft/raft.go

* Move pending raft peers to core

* Fix race on close bool

* Extend the leaderlease time for tests

* Update raft deps

* Fix audit hashing

* Fix race with auditing
2019-07-03 13:56:30 -07:00
Jeff Mitchell
ec99441ac0 Bump auth plugins 2019-07-03 00:47:07 -04:00
Jeff Mitchell
a2810eb696 Bump api/sdk 2019-07-03 00:14:05 -04:00
Jeff Mitchell
b6699afb7e Update api/sdk 2019-07-02 22:18:30 -04:00
Jeff Mitchell
5225623d4c Bump sdk 2019-07-02 21:02:07 -04:00
Jeff Mitchell
1db05c386d Bump sdk 2019-07-02 21:00:25 -04:00
Jeff Mitchell
8fc15c348b Update auth plugins 2019-07-02 18:40:41 -04:00
Jeff Mitchell
cc50a1d83c Bump api/sdk 2019-07-02 10:25:04 -04:00
Jeff Mitchell
7cb73f5457 Bump api/sdk 2019-07-02 09:53:02 -04:00
Jeff Mitchell
a2c7ae6b27 Bump api/sdk 2019-07-01 18:29:44 -04:00
Jeff Mitchell
8e636cd8cd Bump secrets-ad plugin 2019-07-01 16:14:36 -04:00
Jeff Mitchell
42a821ef5b Bump SDK 2019-07-01 16:13:00 -04:00
Jeff Mitchell
3c5f5d87e6 Bump sdk 2019-07-01 08:58:40 -04:00
Jeff Mitchell
ceb4aeadcb Bump sdk 2019-06-29 16:36:43 -04:00
Jeff Mitchell
d5e86f35d9 Bump sdk 2019-06-29 14:51:16 -04:00
Jeff Mitchell
b6c1c4252b Bump api/sdk 2019-06-27 18:01:05 -04:00
Michael Gaffney
0a58f3077b
Bump KV dep 2019-06-27 12:08:11 -04:00
Jeff Mitchell
1e6356b58e Update vendoring 2019-06-23 21:18:45 -04:00
Jeff Mitchell
f8a1ac2791 Update vendor 2019-06-23 20:33:45 -04:00
Jeff Mitchell
6dccc2c6df Vendor and prep for beta 2019-06-20 23:43:02 -04:00
Jeff Mitchell
a5e33f0e75 Update vendor 2019-06-20 18:12:40 -04:00
Jeff Mitchell
0f0027b7a0
Port some stuff (#6939)
* Port some fixes

* Sync some updates
2019-06-20 16:02:11 -04:00
Jeff Mitchell
9852fda029 Update vendor 2019-06-20 15:56:24 -04:00
Brian Kassouf
b435028f3f
Raft Storage Backend (#6888)
* Work on raft backend

* Add logstore locally

* Add encryptor and unsealable interfaces

* Add clustering support to raft

* Remove client and handler

* Bootstrap raft on init

* Cleanup raft logic a bit

* More raft work

* Work on TLS config

* More work on bootstrapping

* Fix build

* More work on bootstrapping

* More bootstrapping work

* fix build

* Remove consul dep

* Fix build

* merged oss/master into raft-storage

* Work on bootstrapping

* Get bootstrapping to work

* Clean up FMS and node-id

* Update local node ID logic

* Cleanup node-id change

* Work on snapshotting

* Raft: Add remove peer API (#906)

* Add remove peer API

* Add some comments

* Fix existing snapshotting (#909)

* Raft get peers API (#912)

* Read raft configuration

* address review feedback

* Use the Leadership Transfer API to step-down the active node (#918)

* Raft join and unseal using Shamir keys (#917)

* Raft join using shamir

* Store AEAD instead of master key

* Split the raft join process to answer the challenge after a successful unseal

* get the follower to standby state

* Make unseal work

* minor changes

* Some input checks

* reuse the shamir seal access instead of new default seal access

* refactor joinRaftSendAnswer function

* Synchronously send answer in auto-unseal case

* Address review feedback

* Raft snapshots (#910)

* Fix existing snapshotting

* implement the noop snapshotting

* Add comments and switch log libraries

* add some snapshot tests

* add snapshot test file

* add TODO

* More work on raft snapshotting

* progress on the ConfigStore strategy

* Don't use two buckets

* Update the snapshot store logic to hide the file logic

* Add more backend tests

* Cleanup code a bit

* [WIP] Raft recovery (#938)

* Add recovery functionality

* remove fmt.Printfs

* Fix a few fsm bugs

* Add max size value for raft backend (#942)

* Add max size value for raft backend

* Include physical.ErrValueTooLarge in the message

* Raft snapshot Take/Restore API  (#926)

* Inital work on raft snapshot APIs

* Always redirect snapshot install/download requests

* More work on the snapshot APIs

* Cleanup code a bit

* On restore handle special cases

* Use the seal to encrypt the sha sum file

* Add sealer mechanism and fix some bugs

* Call restore while state lock is held

* Send restore cb trigger through raft log

* Make error messages nicer

* Add test helpers

* Add snapshot test

* Add shamir unseal test

* Add more raft snapshot API tests

* Fix locking

* Change working to initalize

* Add underlying raw object to test cluster core

* Move leaderUUID to core

* Add raft TLS rotation logic (#950)

* Add TLS rotation logic

* Cleanup logic a bit

* Add/Remove from follower state on add/remove peer

* add comments

* Update more comments

* Update request_forwarding_service.proto

* Make sure we populate all nodes in the followerstate obj

* Update times

* Apply review feedback

* Add more raft config setting (#947)

* Add performance config setting

* Add more config options and fix tests

* Test Raft Recovery (#944)

* Test raft recovery

* Leave out a node during recovery

* remove unused struct

* Update physical/raft/snapshot_test.go

* Update physical/raft/snapshot_test.go

* fix vendoring

* Switch to new raft interface

* Remove unused files

* Switch a gogo -> proto instance

* Remove unneeded vault dep in go.sum

* Update helper/testhelpers/testhelpers.go

Co-Authored-By: Calvin Leung Huang <cleung2010@gmail.com>

* Update vault/cluster/cluster.go

* track active key within the keyring itself (#6915)

* track active key within the keyring itself

* lookup and store using the active key ID

* update docstring

* minor refactor

* Small text fixes (#6912)

* Update physical/raft/raft.go

Co-Authored-By: Calvin Leung Huang <cleung2010@gmail.com>

* review feedback

* Move raft logical system into separate file

* Update help text a bit

* Enforce cluster addr is set and use it for raft bootstrapping

* Fix tests

* fix http test panic

* Pull in latest raft-snapshot library

* Add comment
2019-06-20 12:14:58 -07:00
Becca Petrin
d65ebddf89 revert more unnecessary dep changes 2019-06-19 10:47:25 -07:00
Becca Petrin
6bbba884b1 revert unnecessary dep updates from bad merge 2019-06-19 10:43:09 -07:00
Becca Petrin
51f52175ab merge master 2019-06-19 10:24:45 -07:00
Becca Petrin
07120c2faf update to latest plugin dependencies 2019-06-19 10:04:49 -07:00
Jeff Mitchell
f7444276f7 Update api and sdk to remove direct gogo dep 2019-06-18 14:51:13 -04:00
Jeff Mitchell
94cefffe08 Update api/sdk in main repo 2019-06-18 12:24:15 -04:00
Jeff Mitchell
4fa4c50079 Bump api/sdk dep 2019-06-18 11:19:15 -04:00
Becca Petrin
4ebfba2c2b Merge branch 'opensource-master' into add-elasticsearch-auth 2019-06-17 11:12:51 -07:00
Jeff Mitchell
c1ef613224 Update vendoring and api/sdk 2019-06-14 14:29:16 -04:00
Jeff Mitchell
263b96ef4e
Tokenhelper v2 (#6662)
This provides an sdk util for common token fields and parsing and plumbs it into token store roles.
2019-06-14 10:17:04 -04:00
Jeff Mitchell
99eb461f98 Update vendoring 2019-06-13 13:41:18 -04:00
Becca Petrin
04c3bae2ef add elasticsearch database engine 2019-06-10 09:19:11 -07:00
Becca Petrin
a732b22f11 add PCF auth method, agent, and cli handler 2019-06-06 12:26:04 -07:00
Jeff Mitchell
946164180d Update vendoring 2019-06-06 13:51:34 -04:00
Lexman
4ed616dacb transit cache is an Interface implemented by wrapped versions of sync… (#6225)
* transit cache is an Interface implemented by wrapped versions of syncmap and golang-lru

* transit cache is an Interface implemented by wrapped versions of syncmap and golang-lru

* changed some import paths to point to sdk

* Apply suggestions from code review

Co-Authored-By: Lexman42 <Lexman42@users.noreply.github.com>

* updates docs with information on transit/cache-config endpoint

* updates vendored files

* fixes policy tests to actually use a cache where expected and renames the struct and storage path used for cache configurations to be more generic

* updates document links

* fixed a typo in a documentation link

* changes cache_size to just size for the cache-config endpoint
2019-06-04 15:40:56 -07:00
Jeff Mitchell
fe7ac4e934 Bump AWS plugin again 2019-05-28 17:37:47 -04:00
Joel Thompson
b47e2825d8 Bump AWS SDK dependency to latest (#6788)
Also pull the latest into the local vendor
2019-05-28 16:36:32 -05:00
tonyd
ed57002711 Allow logical backends access to the disabled state of an entity (#6791)
* Allow logical backends access to the disabled state of an entity via SystemView.EntityInfo().

* Add generated file in vendor directory.
2019-05-28 16:31:50 -05:00
Jeff Mitchell
19c78dc490 Update vendor 2019-05-23 10:44:19 -04:00
Patrick Hayes
b9f054d8ab Maximum typo in Vault UI (#6743) 2019-05-16 08:44:34 +02:00
Jeff Mitchell
faf12b3319 Update to use newer sdk 2019-05-15 09:22:48 -04:00
Jeff Mitchell
d7a7ab23b2 Vendoring updated grpc 2019-05-13 16:20:10 -04:00
Jeff Mitchell
8fd56d6e7d Update mod vendor
Closes #6711
2019-05-09 21:14:28 -04:00
Lexman
f1799885c1
fixes circle_ci_go-mod-vendor-check (#6704) 2019-05-08 17:04:26 -07:00
mgritter
94697af20c Update vendor directory with SDK changes. 2019-05-06 13:50:56 -07:00