open-vault/helper
Jeff Mitchell cb1a686e3b
Strip empty strings from database revocation stmts (#5955)
* Strip empty strings from database revocation stmts

It's technically valid to give empty strings as statements to run on
most databases. However, in the case of revocation statements, it's not
only generally inadvisable but can lead to lack of revocations when you
expect them. This strips empty strings from the array of revocation
statements.

It also makes two other changes:

* Return statements on read as empty but valid arrays rather than nulls,
so that typing information is inferred (this is more in line with the
rest of Vault these days)

* Changes field data for TypeStringSlice and TypeCommaStringSlice such
that a client-supplied value of `""` doesn't turn into `[]string{""}`
but rather `[]string{}`.

The latter and the explicit revocation statement changes are related,
and defense in depth.
2018-12-14 09:12:26 -05:00
..
awsutil Translate AWS Rate limiting errors to 502 errors (#5270) 2018-09-18 15:26:06 -05:00
base62 Request less random data in truncate mode (#5118) 2018-08-17 10:17:40 -07:00
builtinplugins Run all builtins as plugins (#5536) 2018-11-06 17:21:24 -08:00
certutil undo make fmt (#5265) 2018-09-04 09:29:18 -07:00
cidrutil Restrict cert auth by CIDR (#4478) 2018-05-09 15:39:55 -07:00
compressutil Tablify compression tests (#5405) 2018-09-26 11:08:04 -07:00
consts Support registering plugin with name only (#5787) 2018-11-15 14:33:11 -08:00
dbtxn Release database resources on each iteration of a loop (#4305) 2018-04-17 16:31:09 -07:00
dhutil VSI (#4985) 2018-07-24 22:02:27 -04:00
errutil
flag-kv Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
flag-slice
forwarding Add lz4 to compressutil (#5403) 2018-09-26 09:20:33 -05:00
gated-writer
hclutil Move checkHCLKeys into hclutil (#4749) 2018-06-12 12:38:08 -04:00
identity simplify a case of strings.Index with strings.Contains (#5698) 2018-11-05 18:40:29 -08:00
jsonutil Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
kdf
keysutil Transit: Key Trim (#5388) 2018-10-17 09:05:05 -07:00
kv-builder Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
ldaputil add a check to prevent panics (#5471) 2018-10-05 09:23:06 -07:00
license The big one (#5346) 2018-09-17 23:03:00 -04:00
locksutil
logging
mfa Run all builtins as plugins (#5536) 2018-11-06 17:21:24 -08:00
mlock
namespace Remove namespace.TestContext and namespace.TestNamespace (#5682) 2018-11-05 11:11:32 -05:00
parseutil Strip empty strings from database revocation stmts (#5955) 2018-12-14 09:12:26 -05:00
password Remove DEL characters from password input (#5837) 2018-12-12 15:06:10 -05:00
pathmanager physical/cache: Add a list of prefixes to not cache (#4515) 2018-05-10 10:29:26 -07:00
pgpkeys Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
pluginutil Run all builtins as plugins (#5536) 2018-11-06 17:21:24 -08:00
policies
policyutil Two small items: (#4934) 2018-07-17 01:23:26 -04:00
proxyutil Add an idle timeout for the server (#4760) 2018-06-16 18:21:33 -04:00
reload Clean up error string formatting (#4304) 2018-04-09 14:35:21 -04:00
salt Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
storagepacker Fix compilation/protobuf 2018-09-22 17:58:39 -04:00
strutil Strip empty strings from database revocation stmts (#5955) 2018-12-14 09:12:26 -05:00
testhelpers Batch tokens (#755) 2018-10-15 12:56:24 -04:00
tlsutil
useragent Add plugin user-agent helper (#5039) 2018-08-06 09:02:04 -07:00
wrapping
xor Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00