Commit Graph

240 Commits

Author SHA1 Message Date
Jeff Mitchell
68e94e2a4c Fix build 2017-01-25 11:59:25 -05:00
Jeff Mitchell
d1396eac7e Add some debug for Matthew 2017-01-25 11:51:36 -05:00
Brian Kassouf
f8e3714eae change consistency config value from a bool to a string (#2282) 2017-01-19 17:36:33 -05:00
Vishal Nayak
a9d6ac5950 Merge pull request #2203 from hashicorp/file-backend-base64
Base64 encode the file names in the 'file' physical backend
2017-01-19 10:10:57 -05:00
Brian Kassouf
3aef68a32d Add require consistent flag to Consul Lock 2017-01-13 12:22:14 -08:00
Brian Kassouf
9dd96c97c6 Add test for require_consistency option 2017-01-13 10:24:40 -08:00
Brian Kassouf
2baf39f050 add a option for strong consistancy for consul 2017-01-13 09:49:04 -08:00
vishalnayak
45c3c10a43 correcting the error statement 2017-01-13 03:58:46 -05:00
vishalnayak
3144cb1635 file: correct the old entry check 2017-01-13 03:51:09 -05:00
vishalnayak
b6d32e524d address review feedback 2017-01-13 03:39:33 -05:00
vishalnayak
9e63de7ca3 physical/file: added test for base64 encoding the storage file names 2017-01-13 01:00:25 -05:00
vishalnayak
12f76f9e60 physical/file: Handle file duplication case while updating 2017-01-13 01:00:25 -05:00
vishalnayak
1a620fd5c0 physical/file: Fix the deletion flow 2017-01-13 01:00:25 -05:00
vishalnayak
412f3220bb physical: file backend to have key base64 URL encoded 2017-01-13 01:00:25 -05:00
Adam Shannon
5ecfe3c477 physical/zk: Ignore ErrNoNode when deleting znodes (#2256) 2017-01-11 09:42:30 -05:00
Jeff Mitchell
454ddd4c48 Use dockertest.v2 (#2247)
New dockertest has a totally different API and will require some serious
refactoring. This will tide over until then by pinning the API version.
2017-01-09 13:46:54 -05:00
Jeff Mitchell
bd81ed1e0a Port some updates 2017-01-06 15:42:18 -05:00
Xiang Li
eedf879ae4 etcd3: remove wrong keys checking for prefix request (#2231) 2017-01-05 07:48:46 -05:00
Xiang Li
e086a81353 physical: add etcd3 backend (#2168) 2017-01-03 14:43:46 -05:00
Dan Everton
bf4896ae66 Page results from S3. (#2224)
S3 results require paging to ensure that all results are returned. This
PR changes the S3 physical backend to use the new ListObjectV2 method
and pages through all the results.

Fixes #2223.
2017-01-03 11:15:48 -05:00
Jeff Mitchell
8d4dbf3fb0 Actually give the logger to inmem backend 2016-12-15 15:48:51 -05:00
Christopher Pauley
973e3c2b1e gcs physical backend (#2099) 2016-12-01 11:42:31 -08:00
Jeff Mitchell
4e4693e5de Add some commenting to PermitPool 2016-11-28 18:34:58 -05:00
Kevin Goess
2b374afbf2 check for failure on that mysql query (#2105) 2016-11-17 09:59:27 -05:00
Jeff Mitchell
1811269949 Fix cache default size and docs 2016-11-01 10:24:35 -04:00
Jeff Mitchell
8980f8d2fa Don't cache physical responses when thre was an error (#2040) 2016-10-28 12:55:56 -04:00
Paweł Rozlach
261cc52cbc Post-review fixes for file/zk recursive empty prefix delete 2016-10-05 08:08:00 -04:00
Pawel Rozlach
3156098a5b Fix file backend so that it properly removes nested secrets.
This patch makes file backend properly remove nested secrets, without leaving
empty directory artifacts, no matter how nested directories were.
2016-10-04 21:56:12 +02:00
Pawel Rozlach
d13c10ffe3 Fix zookeeper backend so that properly deletes/lists secrets.
This patch fixes two bugs in Zookeeper backends:
 * backend was determining if the node is a leaf or not basing on the number
   of the childer given node has. This is incorrect if you consider the fact
   that deleteing nested node can leave empty prefixes/dirs behind which have
   neither children nor data inside. The fix changes this situation by testing
   if the node has any data set - if not then it is not a leaf.
 * zookeeper does not delete nodes that do not have childern just like consul
   does and this leads to leaving empty nodes behind. In order to fix it, we
   scan the logical path of a secret being deleted for empty dirs/prefixes and
   remove them up until first non-empty one.
2016-10-04 21:56:12 +02:00
Pawel Rozlach
7b5f467d9b Add tests for nested/prefixed secrets removal.
Current tests were not checking if backends are properly removing
nested secrets. We follow here the behaviour of Consul backend, where
empty "directories/prefixes" are automatically removed by Consul itself.
2016-10-04 21:55:33 +02:00
Jeff Mitchell
2ffc6949c0 Make HA in etcd off by default. (#1909)
Fixes #1908

(Doesn't really "fix" it but someone from the community needs to step up
if they want to see this fixed.)
2016-09-21 14:01:36 -04:00
James Pearson Hughes
c61c75091e DynamoDB: fix log typo (#1891) 2016-09-14 15:16:24 -04:00
Jeff Mitchell
5539632dd2 Have file backend remove empty dirs. (#1821)
Add tests to check that prefixes are being properly removed (or at
least, not listed) from backends.
2016-08-31 14:12:28 -04:00
Jeff Mitchell
d40277a18f Plumb through the ability to set the storage read cache size. (#1784)
Plumb through the ability to set the storage read cache size.

Fixes #1772
2016-08-26 10:27:06 -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
565b45d57a Add permit pool to dynamodb 2016-08-15 19:45:06 -04:00
Jeff Mitchell
abb14c42bc Use dockertest for physical consul tests, and always run them 2016-08-15 16:20:32 -04:00
Jeff Mitchell
645540012f Request forwarding (#1721)
Add request forwarding.
2016-08-15 09:42:42 -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
c9b80ae853 Fixed the test after removing shutdown bool 2016-08-01 12:20:38 -04:00
Jeff Mitchell
32b39e808b Close the shutdown channel instead of sending a value down 2016-08-01 11:58:45 -04:00
vishalnayak
577cd9de35 Address review feedback 2016-08-01 11:15:25 -04:00
vishalnayak
b0ee8869fc Fix physical/consul test case 2016-08-01 10:55:47 -04:00
vishalnayak
5318130ba2 Make the defer statement of waitgroup to execute last 2016-08-01 10:24:27 -04:00
vishalnayak
461c30969e Sharing shutdown message with physical consul backend 2016-07-31 10:09:16 -04:00
vishalnayak
13c4bbf9d7 Add waitgroup wait to allow physical consul to deregister checks 2016-07-30 13:17:29 -04:00
vishalnayak
a253f84fd3 Added test for service tags 2016-07-22 09:04:42 -04:00
vishalnayak
8caec3fe27 Address review feedback from @jefferai 2016-07-22 08:44:16 -04:00