7782 Commits

Author SHA1 Message Date
vishalnayak
041817b300 Fix broken build caused due to resolve merge conflicts 2017-02-24 12:41:20 -05:00
vishalnayak
1215491212 changelog++ 2017-02-24 12:39:01 -05:00
Vishal Nayak
e3016053b3 PKI: Role switch to control lease generation (#2403)
* pki: Make generation of leases optional

* pki: add tests for upgrading generate_lease

* pki: add tests for leased and non-leased certs

* docs++ pki generate_lease

* Generate lease is applicable for both issuing and signing

* pki: fix tests

* Address review feedback

* Address review feedback
2017-02-24 12:12:40 -05:00
Jeff Mitchell
a0b147e510 changelog++ 2017-02-24 11:18:58 -05:00
Saj Goonatilleke
9cd9fbbad3 pki: Include private_key_type on DER-formatted responses from /pki/issue/ (#2405) 2017-02-24 11:17:59 -05:00
Jeff Mitchell
bfaf9022fa Do some porting to make diffing easier 2017-02-24 10:45:29 -05:00
Jeff Mitchell
054a60753f Create upgrade path for cubbyhole's local status 2017-02-24 10:05:44 -05:00
vishalnayak
ff7a1a810b awsec2: markdown text alignment 2017-02-23 14:52:38 -05:00
Jeff Mitchell
7ef9df29b1 Add comment around not allowing users to create JWT wrapping tokens 2017-02-22 11:13:40 -05:00
Brian Kassouf
6e4ed0033f Merge pull request #2290 from hashicorp/acl-parameters-permission
Acl parameters permission
2017-02-21 16:30:51 -08:00
Brian Kassouf
e0299252b8 Update confusing comment 2017-02-21 16:06:00 -08:00
Brian Kassouf
93b7a495e4 Added test for the empty values array case 2017-02-21 16:02:00 -08:00
Brian Kassouf
15b883c2bc On merge favor values that have additive privileges 2017-02-21 15:53:27 -08:00
Brian Kassouf
8a190cfe4e PR feedback 2017-02-21 15:02:39 -08:00
Brian Kassouf
a1f1c350a9 Merge branch 'master' into acl-parameters-permission 2017-02-21 14:46:06 -08:00
Jeff Mitchell
a142bde2e9 Add pseudo transactional test 2017-02-20 11:40:36 -05:00
Jeff Mitchell
c6721d23ad Add faultPseudo for testing 2017-02-20 11:08:03 -05:00
Jeff Mitchell
de87216a04 Fix framework test on int64 with default durationsecond set 2017-02-18 13:53:23 -05:00
Jeff Mitchell
a4a27e7c3a Make cubbyhole local instead of replicated. (#2397)
This doesn't really change behavior, just what it looks like in the UX.
However, it does make tests more complicated. Most were fixed by adding
a sorting function, which is generally useful anyways.
2017-02-18 13:51:05 -05:00
Jeff Mitchell
476446e24d Fix TypeDurationSecond to not panic at runtime if the given default is a string (#2396)
Fix TypeDurationSecond to not panic at runtime if the given default is a string.

Fixes #myownannoyance
2017-02-17 17:25:53 -05:00
Jeff Mitchell
210d07c8a1 Change additional options usage in meta to a func to remove build tags. 2017-02-17 12:09:20 -05:00
Jeff Mitchell
78269445a8 Fix missing newline in status output 2017-02-17 11:23:20 -05:00
Jeff Mitchell
8f6c23a131 Final rep porting (#2392) 2017-02-17 09:15:35 -05:00
Jeff Mitchell
ec3e08b2c0 changelog++ 2017-02-17 09:15:13 -05:00
Colin Arenz
b9e1ef142c Fix listing of deep paths in PostgreSQL backend (#2393)
This change addresses an issue where deep paths would not be enumerated if parent paths did not contain a key.

Given the keys `shallow` and `deep` at the following paths...
```
secret/shallow
secret/path/deep
```

... a `LIST` request against `/v1/secret` would produce only one result, `shallow`.  With this change, the same list request will now list `shallow` and `path/`.
2017-02-17 09:14:11 -05:00
Jeff Mitchell
cda27d5834 Update deps, particularly to ensure https://aws.amazon.com/blogs/developer/aws-sdk-for-go-update-needed-for-go-1-8/ is covered 2017-02-16 23:42:07 -05:00
Jeff Mitchell
61ea6f72b6 Make reindex a root path as well 2017-02-16 23:36:06 -05:00
Jeff Mitchell
ca8b1c2b5d Remove now-unnecessary stanza from default policy 2017-02-16 23:30:38 -05:00
Jeff Mitchell
27de15085d changelog++ 2017-02-16 23:27:23 -05:00
Jeff Mitchell
185ead5a13 Internally append trailing slash for all LIST operations. (#2390)
Fixes #2385
2017-02-16 23:23:32 -05:00
Jeff Mitchell
951d140be1 Fix rep path fetching method into a function 2017-02-16 23:23:21 -05:00
Jeff Mitchell
5780c8eca0 More rep porting (#2391)
* More rep porting

* Add a bit more porting
2017-02-16 23:09:39 -05:00
Brian Kassouf
18131905a2 ToLower parameter strings 2017-02-16 17:50:10 -08:00
Jeff Mitchell
2901591511 More porting from rep (#2389)
* More porting from rep

* Address feedback
2017-02-16 20:13:19 -05:00
Brian Kassouf
cbf8c280e1 Simplify the merging of two policies 2017-02-16 16:30:08 -08:00
Brian Kassouf
0bb911c936 Remove debug code 2017-02-16 16:14:30 -08:00
Brian Kassouf
13ffbdabda Update logic to fix a few edge cases: 2017-02-16 15:20:11 -08:00
Jeff Mitchell
8acbdefdf2 More porting from rep (#2388)
* More porting from rep

* Address review feedback
2017-02-16 16:29:30 -05:00
Jeff Mitchell
98c7bd6c03 Port some replication bits to OSS (#2386) 2017-02-16 15:15:02 -05:00
Jeff Mitchell
e350a16205 Move ReplicationState to consts 2017-02-16 13:37:21 -05:00
Brian Kassouf
bc16792ffd Load leases into the expiration manager in parallel (#2370)
* Add a benchmark for exiration.Restore

* Add benchmarks for consul Restore functions

* Add a parallel version of expiration.Restore

* remove debug code

* Up the MaxIdleConnsPerHost

* Add tests for etcd

* Return errors and ensure go routines are exited

* Refactor inmem benchmark

* Add s3 bench and refactor a bit

* Few tweaks

* Fix race with waitgroup.Add()

* Fix waitgroup race condition

* Move wait above the info log

* Add helper/consts package to store consts that are needed in cyclic packages

* Remove not used benchmarks
2017-02-16 10:16:06 -08:00
Jeff Mitchell
64d63ba55a Add some repcluster handling to audit and add some tests (#2384)
* Add some repcluster handling to audit and add some tests

* Fix incorrect assumption about nil auth
2017-02-16 13:09:53 -05:00
Jeff Mitchell
513f8b918d Add WithOptions methods to audit/auth enabling (#2383) 2017-02-16 11:37:27 -05:00
Frank Gevaerts
6d49eb7b8f Update hsm.html.md (#2381) 2017-02-16 07:25:22 -05:00
Brian Kassouf
b23e4da01c Remove duplicate test case 2017-02-15 22:38:33 -08:00
Jeff Mitchell
28883acc16 Fix copypasta, thanks tests 2017-02-16 01:32:39 -05:00
Brian Kassouf
a372f5b884 s/has/has been/ 2017-02-15 22:19:35 -08:00
Brian Kassouf
3d5557b8f3 Remove unnecessary else condition 2017-02-15 22:18:20 -08:00
Brian Kassouf
9e4c25cace Merge branch 'acl-parameters-permission' of github.com:hashicorp/vault into acl-parameters-permission 2017-02-15 22:13:28 -08:00
Brian Kassouf
6b7d328e79 Fix the issue of returning on the first paramater check. Added tests for this case. 2017-02-15 22:13:18 -08:00