Commit Graph

815 Commits

Author SHA1 Message Date
vishalnayak
c93bded97b Added cidrutil helper 2016-09-21 13:58:32 -04:00
Jeff Mitchell
8482118ac6 Transit and audit enhancements 2016-09-21 10:49:26 -04:00
Jeff Mitchell
6f6d1f7237 Rename GetOctalFormatted and add serial number to ParsedCertBundle. Basically a noop. 2016-09-16 11:05:43 -04:00
Jeff Mitchell
5c27f11c05 Update logging formatting 2016-09-01 16:14:21 -04:00
vishalnayak
7c743ecd0a Address review feedback 2016-08-30 16:36:58 -04:00
Jeff Mitchell
9f0226eaa3 Pass headers back when request forwarding (#1795) 2016-08-26 17:53:47 -04:00
Jeff Mitchell
68345eb770 Convert to logxi 2016-08-21 18:13:37 -04:00
Jeff Mitchell
357ecb4dfe gofmt 2016-08-19 16:48:32 -04:00
Jeff Mitchell
edd6379466 Clustering enhancements (#1747) 2016-08-19 11:03:53 -04:00
Jeff Mitchell
86ac08ba8b Protobuf for forwarding (#1743) 2016-08-17 16:15:15 -04:00
Jeff Mitchell
09491388f4 Don't serialize the full connection state, instead just the peer certificates, and parse them on the other side 2016-08-17 10:29:53 -04:00
Jeff Mitchell
645540012f Request forwarding (#1721)
Add request forwarding.
2016-08-15 09:42:42 -04:00
James Nugent
2e7a3aae7d build: Add support for building on Illumos
This commit adds support for building for Illumos-derived operating
systems. Regrettably, the cyrpto/ssh/terminal package does not include
implementations of the functions IsTerminal, MakeRaw or Restore for the
solaris OS. Consequently this commit implements them in Vault.

makeRaw(fd int) is based on the Illumos implementation of the getpass
function [1] for the correct flags. isTerminal(fd int) is based on the
Illumos libc implementation [2] of isatty.

[1] http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libast/common/uwin/getpass.c
[2] http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c
2016-08-13 00:20:15 -04:00
Jeff Mitchell
3eba24de39 Change to keybase openpgp fork as it has important fixes 2016-08-11 08:31:43 -04:00
vishalnayak
f39495f0c2 Address review feedback 2016-08-09 11:13:48 -04:00
vishalnayak
f07e71beee Address review feedback from @jefferai 2016-08-09 10:47:55 -04:00
vishalnayak
b786b25785 Refactoring and test fixes 2016-08-09 03:43:03 -04:00
vishalnayak
d9dd2941e3 Added compressutil tests 2016-08-09 02:26:38 -04:00
vishalnayak
700ad7f875 Tests for (de)compression in jsonutil 2016-08-09 00:50:19 -04:00
vishalnayak
0a9f229c2d Make generic utility for compression and decompression 2016-08-09 00:50:19 -04:00
vishalnayak
ab875c4d92 Pull out compression code into compressutil 2016-08-09 00:50:19 -04:00
vishalnayak
4ba0f1e7f7 Added utilities to compress the data 2016-08-09 00:50:19 -04:00
Jeff Mitchell
347cd93b2a Fix bugs and add test case for arbitrary string slice 2016-08-03 14:57:36 -04:00
Jeff Mitchell
7d1f0facb8 Add arbitrary string slice parsing.
Like the KV function, this supports either separated strings or JSON
strings, base64-encoded or not.

Fixes #1619 in theory.
2016-08-03 14:24:16 -04:00
Jeff Mitchell
3329d38959 Cleanup 2016-08-03 13:09:12 -04:00
vishalnayak
ddb6ae18a0 Fix invalid input getting marked as internal error 2016-07-28 16:23:11 -04:00
vishalnayak
59930fda8f AppRole authentication backend 2016-07-26 09:32:41 -04:00
Jeff Mitchell
2767858507 Remove manual selection of nextprotos from tls config coming from certutil; it's really not up to us to dictate third party requirements 2016-07-22 11:12:46 -04:00
vishalnayak
13d08c65a5 Address review feedback 2016-07-22 10:21:45 -04:00
vishalnayak
8caec3fe27 Address review feedback from @jefferai 2016-07-22 08:44:16 -04:00
vishalnayak
d5c669038a Added service-tags config option to provide additional tags to registered service 2016-07-22 04:41:48 -04:00
Vishal Nayak
3c82f6b638 Merge pull request #1632 from hashicorp/lib-locks-create
Added helper to create locks
2016-07-21 10:23:34 -04:00
Jeff Mitchell
fda9473681 Trim leading/trailing space around PEM bundles.
Fixes #1634
2016-07-20 13:57:49 -04:00
vishalnayak
583f22bfd3 Added test for CreateLocks 2016-07-20 05:37:38 -04:00
vishalnayak
119b4d51eb Added a cap of 256 for CreateLocks utility 2016-07-20 04:48:35 -04:00
vishalnayak
8e2baf2fef Added helper to create locks 2016-07-19 21:37:28 -04:00
vishalnayak
5b458db104 Merge branch 'master-oss' into json-use-number
Conflicts:
	http/handler.go
	logical/framework/field_data.go
	logical/framework/wal.go
	vault/logical_passthrough.go
2016-07-15 19:21:55 -04:00
vishalnayak
98d5684699 Address review feedback 2016-07-13 11:52:26 -04:00
vishalnayak
57117f0e56 git add tlsutil 2016-07-13 11:29:17 -04:00
vishalnayak
ee6ba1e85e Make 'tls_min_version' configurable 2016-07-12 19:32:47 -04:00
vishalnayak
f200a8568b Set minimum TLS version in all tls.Config objects 2016-07-12 17:06:28 -04:00
Jeff Mitchell
58efdcba47 Return a duration instead and port a few other places to use it 2016-07-11 18:19:35 +00:00
Jeff Mitchell
984641af21 Factor out parsing duration second type and use it for parsing tune values too 2016-07-11 17:53:39 +00:00
vishalnayak
c62a368ccd Added jsonutil functional tests 2016-07-07 12:12:51 -04:00
vishalnayak
2dc811d1b3 Input validations for jsonutil 2016-07-07 11:29:38 -04:00
vishalnayak
80b8e1f2d2 Added jsonutil helper 2016-07-07 10:51:49 -04:00
vishalnayak
ef97199360 Added JSON Decode and Encode helpers.
Changed all the occurances of Unmarshal to use the helpers.
Fixed http/ package tests.
2016-07-06 12:25:40 -04:00
vishalnayak
5e125e09d1 Remove addDefault param from ParsePolicies 2016-05-31 13:39:58 -04:00
vishalnayak
a3d0305804 Adding default policies while creating tokens 2016-05-31 13:39:58 -04:00
Sean Chittenden
339c0a4127 Speling police 2016-05-15 09:58:36 -07:00