Experimental sync to peers on localnetwork
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dmedia |
Fix Released
|
High
|
Jason Gerard DeRose |
Bug Description
This is an experimental feature to do automatic CouchDB replication to peers in the same Dmedia library.
First of all, this feature provides NO PRIVACY WHATSOEVER. It's secure in that non-authorized devices should not be able to write updates into your CouchDB, but it's totally insecure in that the replication is all in clear-text and non-authorized devices can capture the entire contents of your CouchDB.
Because of this, the feature is disabled by default and is deliberately difficult to enable. To peer your machines, start on one machine by running the new `init-library` script in the Dmedia source tree, like this:
jderose@
{
"library_id": "YSZE4SDLZHLFB4
"tokens": {
"token": "QGLHD4TWMXAWL2
}
}
The above JSON gets written to ~/.local/
In other words, each time you run init-library, all the values are random... but to have multiple machines in the same library, you have to copy the exact same library.json file around between them.
Related branches
- James Raymond: Approve
-
Diff: 265 lines (+115/-38)3 files modifieddmedia-service (+22/-1)
dmedia/service/replicator.py (+68/-37)
init-library (+25/-0)
Changed in dmedia: | |
status: | Triaged → Fix Committed |
Changed in dmedia: | |
status: | Fix Committed → Fix Released |