Seth Vargo
23a8f61d56
Merge pull request #2886 from hashicorp/sethvargo/renew_api
...
Add API helper for renewing a secret
2017-07-10 22:28:12 -07:00
Seth Vargo
2fbb19285b
Fix typo
2017-07-10 22:26:42 -07:00
Chris Hoffman
6034c9adc8
updating for TestCluster changes
2017-07-10 20:47:03 -07:00
Seth Vargo
c29e85125d
Fix doc
2017-07-07 17:15:43 -04:00
Seth Vargo
21a17b69c3
Use the core client
2017-07-07 17:14:49 -04:00
Seth Vargo
8f97e9b04d
Fix failing test
2017-07-07 17:14:49 -04:00
Seth Vargo
da9d57f5f1
Buffer doneCh
2017-07-07 17:14:49 -04:00
Seth Vargo
dfb6166cd8
Add configurable buffer size
2017-07-07 17:14:48 -04:00
Seth Vargo
54224b06dc
Do not block writing to doneCh if stopped
2017-07-07 17:14:48 -04:00
Seth Vargo
ce43621894
Make lock private
2017-07-07 17:14:48 -04:00
Seth Vargo
b2b9cdfdeb
Remove init() seed
2017-07-07 17:14:47 -04:00
Seth Vargo
8cdc0372b7
Fix vet errors
2017-07-07 17:14:47 -04:00
Seth Vargo
c0b2d41d8f
Allow a custom randomizer
2017-07-07 17:14:47 -04:00
Seth Vargo
437b8e71ab
Use Fatalf
2017-07-07 17:14:47 -04:00
Seth Vargo
3d74752524
Use a more heurstic function for calculating sleep backoff
2017-07-07 17:14:46 -04:00
Seth Vargo
a8fe164694
Seed the random generator
2017-07-07 17:14:46 -04:00
Seth Vargo
47260ed024
Move renewer integration tests into separate package
2017-07-07 17:14:46 -04:00
Seth Vargo
91a255bd2f
Use a separate package for API integration tests
...
This removes the cyclic dependency
2017-07-07 17:14:45 -04:00
Seth Vargo
de0250a66f
Send a more useful struct for renewal
2017-07-07 17:14:45 -04:00
Seth Vargo
f9465a8a5b
Reorg
2017-07-07 17:14:45 -04:00
Seth Vargo
320d76422a
Use unbuffered channels
2017-07-07 17:14:45 -04:00
Seth Vargo
7e08052e14
Use a time.Duration instead of an int for grace
2017-07-07 17:14:44 -04:00
Seth Vargo
42354aed99
Use RenewTokenAsSelf instead
2017-07-07 17:14:44 -04:00
Seth Vargo
dcbd729afa
Add secret renewer
2017-07-07 17:14:44 -04:00
Seth Vargo
46fa7be911
Add test stubs for starting a vault server and pg database
2017-07-07 17:14:43 -04:00
Seth Vargo
bf616909f7
Add API helper for renewing a token as another token
2017-07-07 17:14:42 -04:00
Jeff Mitchell
48ab9c54f0
changelog++
2017-07-07 16:18:31 -04:00
Tony Cai
f92f4d4972
Added HANA database plugin ( #2811 )
...
* Added HANA dynamic secret backend
* Added acceptance tests for HANA secret backend
* Add HANA backend as a logical backend to server
* Added documentation to HANA secret backend
* Added vendored libraries
* Go fmt
* Migrate hana credential creation to plugin
* Removed deprecated hana logical backend
* Migrated documentation for HANA database plugin
* Updated HANA DB plugin to use role name in credential generation
* Update HANA plugin tests
* If env vars are not configured, tests will skip rather than succeed
* Fixed some improperly named string variables
* Removed unused import
* Import SAP hdb driver
2017-07-07 13:11:23 -07:00
Vishal Nayak
7d592ecbff
compressutil: Add Snappy support ( #2987 )
2017-07-07 14:43:45 -04:00
Brian Kassouf
9dcea09951
Move database drivers from test files into the plugin files ( #2986 )
2017-07-07 10:38:12 -07:00
Graham Davison
322abf26f9
Moved drivers from plugins/helper/database/connutil/sql.go
to driver test files ( #2980 )
2017-07-07 09:09:48 -04:00
Brian Shumate
2a534bad74
DOCS: Update API docs for /sys/generate-root ( #2978 )
...
- Fix invalid JSON example
2017-07-07 08:25:32 -04:00
Lars Lehtonen
730bb03c77
Fix swallowed errors in builtin ( #2977 )
2017-07-07 08:23:12 -04:00
Lars Lehtonen
71fc3736f7
Fix swallowed error in physical package. ( #2976 )
2017-07-07 08:15:59 -04:00
Jeff Mitchell
3c4c1a53da
changelog++
2017-07-06 10:19:12 -04:00
Jeff Mitchell
4efff56640
Don't dial on backend startup; retry dials at log time so that transient ( #2934 )
...
network failures are worked around. Also, during a reconnect always
close the existing connection.
Fixes #2931
2017-07-06 10:18:18 -04:00
Chris Hoffman
c912a3e083
changelog++
2017-07-05 12:35:39 -04:00
Chris Hoffman
c6f9dbdf46
properly unlock policy when returning key setting errors ( #2974 )
2017-07-05 11:47:15 -04:00
Jeff Mitchell
c6820655bc
changelog++
2017-07-05 11:25:51 -04:00
Jeff Mitchell
a7d0fb7d50
Don't panic in audit logs when reading transit keys. ( #2970 )
2017-07-05 11:25:10 -04:00
Jeff Mitchell
6c4a0b8909
changelog++
2017-07-05 09:44:59 -04:00
Will May
dc33acaceb
Allow Okta auth backend to specify TTL and max TTL values ( #2915 )
2017-07-05 09:42:37 -04:00
Lars Lehtonen
a357353635
Fix swallowed errors in http package. ( #2972 )
2017-07-05 09:35:57 -04:00
Jeff Mitchell
be7adee3f6
Don't indicate signed data can be returned as hex.
...
Fixes #2953
2017-07-04 15:06:50 -04:00
Chris Hoffman
ffa76e3954
Fixing reverse storage prefix lookup for auth entries ( #2967 )
...
* fixing reverse storage prefix for auth entries
* adding test
2017-07-04 14:00:36 -04:00
Brian Shumate
99fe56434e
DOCS: fix typo in ssh path help ( #2966 )
2017-07-04 13:59:34 -04:00
Jasper Siepkes
624032e59c
Added documentation for working with MySQL wildcards in GRANT ( #2963 )
2017-07-04 13:59:08 -04:00
Lars Lehtonen
4eac933fd8
Stop Vault Package Tests From Swallowing Errors ( #2960 )
...
* Fix ignored error in TestAESGCMBarrier_MoveIntegrityV1().
* Fix ignored error in TestAESGCMBarrier_MoveIntegrityV2().
* Fix ignored err in TestExpiration_Tidy().
* Fix ignored error in TestSystemBackend_policyCRUD().
2017-07-04 13:58:28 -04:00
Jeff Mitchell
f75f5b0add
Port TestCluster changes from proxy branch
2017-07-03 14:54:01 -04:00
Brian Shumate
03b95432eb
DOCS: fix typo ( #2965 )
2017-07-03 12:40:31 -04:00