Jeff Mitchell
8f6c23a131
Final rep porting ( #2392 )
2017-02-17 09:15:35 -05:00
Jeff Mitchell
49f1da2342
Revert file backend base64ing, as we need to fix a pathological case for some keys
2017-01-25 12:27:18 -05: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
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
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
68345eb770
Convert to logxi
2016-08-21 18:13:37 -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
Sean Chittenden
455b76828f
Add a *log.Logger argument to physical.Factory
...
Logging in the backend is a good thing. This is a noisy interface change but should be a functional noop.
2016-04-25 20:10:32 -07:00
Mitchell Hashimoto
f676ed4d83
physical/file: open for writing
2015-04-29 11:31:59 -07:00
jjshoe
59092a2449
Sensible permissions on creating a file
...
Open a file, create it if it doesn't exist, and for gods sake don't leave it 0666.
2015-04-29 13:27:44 -05:00
Mitchell Hashimoto
60ad9a4ce4
physical: finish super naive file backend
...
This thing is SUPER slow and has some dumb edge cases. It is only really
meant for development at this point and is commented as such. We won't
document it publicly unless we make it good.
2015-03-15 20:15:27 -07:00
Armon Dadgar
ce7d02f3b0
physical: Factory constructor style for backends
2015-03-05 13:47:10 -08:00
Armon Dadgar
f4e5b10952
physical: Adding interface, in-mem implementation, and skeleton for Consul/File
2015-03-02 10:48:53 -08:00