Commit Graph

444 Commits

Author SHA1 Message Date
b5a2c70a4a create a StorageClientConfig object
Make it easier to pass more storage configuration down into StorageFarmBroker
and beyond
2019-08-03 06:39:31 -04:00
6b7e0dd700 add a test for the negative case 2019-08-03 06:39:31 -04:00
895cf37a84 docstrings 2019-08-03 06:19:01 -04:00
53861e2a0f Change the shape of the storage announcement(s)
Instead of generating a sequence of announcements like:

    - anonymous storage server announcement
    - plugin 1 storage server announcement
    - ...
    - plugin N storage server announcement

The client now generates a single announcement like:

    - anonymous storage server details
    - storage-options
      - plugin 1 storage server details
      - ...
      - plugin N storage server details
2019-08-03 06:19:01 -04:00
9c240b61ac Persist the furl ourselves rather than relying on Foolscap
Going via our config abstraction here will let us change how config is
persisted more easily, later.
2019-08-03 06:19:01 -04:00
6068b6c1b2 don't reach through the tahoe-lafs config object 2019-08-03 06:19:01 -04:00
d2e16df5cc link to a ticket about implementing better missing-plugin behavior 2019-08-03 06:19:01 -04:00
251eda0b80 rename introducer_factory parameter to be private 2019-08-03 06:19:01 -04:00
58db131787 remove unused imports 2019-08-03 06:19:01 -04:00
fd9ae24149 fix indentation 2019-08-03 06:19:01 -04:00
756c21c251 actually provide validating client-config-from-string function 2019-08-03 06:19:01 -04:00
6cf48f7d4f Separate async initialization from _Client.__init__ 2019-08-03 06:19:01 -04:00
a6959d111c Log init_storage and its result (particularly failures) 2019-08-03 06:19:01 -04:00
7919cf205e Test the actual interface
get_storage_server is supposed to return a Deferred
2019-08-03 06:19:01 -04:00
a45e2bebfe Allow the new plugins item in the [storage] section 2019-08-03 06:19:01 -04:00
f606beb065 Test and support plugins without any configuration 2019-08-03 06:19:01 -04:00
e2982c0129 Support multiple plugins 2019-08-03 06:19:01 -04:00
646cd452b9 Add tests for announcements for plugins
And a basic implementation
2019-08-03 06:19:01 -04:00
212f96dfe7 Baseline tests for anonymous storage server announcements 2019-08-03 05:34:21 -04:00
fb4c5cf91f Allow for dynamic configuration validation rules 2019-08-03 05:34:21 -04:00
5644f421fe get rid of ed25519.bytes_from_* methods 2019-07-08 12:46:22 -06:00
47633fb01e unused import 2019-06-26 14:55:35 -06:00
dd55accec8 Merge branch 'master' into 3031-replace-pycryptopp 2019-06-26 14:42:43 -06:00
47ccdb0177 refactor ed25519 helpers to functional style
eliminates the wrapper classes and uses some more-explicit
names throughout (e.g "sk" -> "signing_key")
2019-06-13 22:19:28 -06:00
df4671f90e refactor away from pycryptopp "helper" classes 2019-06-13 22:19:28 -06:00
8063d93c6d replaced pytcryptopp rsa with our own wrapper 2019-06-13 22:19:28 -06:00
9e31bfe2f4 update code/test to use new ed25512 module 2019-06-13 22:19:28 -06:00
3a5a0fb572 replaced uses of pycryptopp's ed25519 with our own 2019-06-13 22:18:55 -06:00
b604d08463 Add a test for the success case 2019-06-12 16:47:25 -04:00
f0e3b69f90 switch around how we do config (avoid space-separated filenames) 2019-05-30 16:01:46 -06:00
2cf36cf884 flake8 2019-05-30 16:01:46 -06:00
c88409afc5 add a note 2019-05-30 16:01:46 -06:00
4f481bbb4c remove FIXME 2019-05-30 16:01:45 -06:00
e453db879a make options work, config API usage 2019-05-30 16:01:45 -06:00
82a74e8986 updates and a bunch of debugging for cert/grid-manager handling 2019-05-30 16:01:45 -06:00
36c471fdef don't need our pubkey for anything 2019-05-30 16:01:45 -06:00
e5f608f80e fixes to Options use 2019-05-30 16:01:45 -06:00
2031b723b8 various fixes (flake8, errors) 2019-05-30 16:01:45 -06:00
ee3e1cbcf2 wip; updates to grid-manager impl 2019-05-30 16:01:45 -06:00
64eb9d7c30 hack in grid-manager announcements to storage-servers 2019-05-30 16:01:45 -06:00
c8f11dc2d3 ported old-style classes to new-style 2019-05-26 08:28:18 +02:00
ef127f113d update client.py to use DEFAULT_MAX_SEGMENT_SIZE 2019-05-08 16:04:57 -04:00
53b40ef0e0 don't double start; don't try to handle double start. 2019-03-28 16:10:36 -04:00
1ad2174df9 windows yaml.safe_load returns None on unreadable files.. 2018-09-11 11:14:41 -06:00
3d35723a59 windows yamlutil.safe_load returns None when files are unreadable 2018-09-10 21:58:28 -06:00
692128ad1d better defaults handling 2018-09-10 21:58:28 -06:00
f6b62ca192 import 2018-09-10 21:58:28 -06:00
a344bb24dc immutable default 2018-09-10 21:58:27 -06:00
dee8b72206 dead code 2018-09-10 21:58:27 -06:00
9aae4bd459 only handle ENOENT 2018-09-10 21:58:27 -06:00