#3053 closed defect (fixed)

Implement server-side support for IFoolscapStoragePlugin

Reported by: exarkun Owned by: exarkun
Priority: normal Milestone: storage economics plugins
Component: code-network Version: n/a
Keywords: review-needed Cc:
Launchpad Bug:

Description

See #3049

Make the necessary changes to the storage server implementation so that it can load and use these plugins.

Change History (4)

comment:1 Changed at 2019-06-14T13:26:43Z by exarkun

  • Owner set to exarkun
  • Status changed from new to assigned

comment:2 Changed at 2019-06-14T14:14:02Z by exarkun

The server needs to be configured with plugins to use. This requires the plugins be installed, of course, but apart from that, there will need to be some new pieces in tahoe.cfg.

Here's an example of one new piece, the server_plugins section.

[storage]
plugins=
    anonymous-storage-v1
    privatestorage-secure-access-token-v1

This means "load plugins with a name matching anonymous-storage-v1 or privatestorage-secure-access-token-v1".

This further enables up to two new config sections:

[storageserver.plugins.anonymous-storage-v1]
readonly = False
reserved_space = 12345
...

[storageserver.plugins.privatestorage-secure-access-token-v1]
public_key = ...
...

The contents of these sections provide the value for configuration as passed to IFoolscapStoragePlugin.get_storage_server. They allow for (perhaps obviously) configuration of each storage server plugin.

comment:4 Changed at 2019-06-27T22:39:29Z by exarkun

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.