Compare commits

...

482 Commits
4.0.0 ... wot

Author SHA1 Message Date
Kevin F 61051d5711 Removed old scripts 2023-01-16 23:33:57 -06:00
Kevin F 59ad2731ba Disconnect peers who stem a bad block 2023-01-16 23:31:30 -06:00
Kevin F 560a20e90a Only expose wot to rpc if rpc is active 2023-01-16 23:30:50 -06:00
Kevin F ce3a548c70 Added create block RPC wrapper 2023-01-16 23:29:50 -06:00
Kevin F 8712a1c401 Changed rpc block wrapper to use multiprocessing 2023-01-12 21:51:27 -06:00
Kevin F 8511fb42b6 Added test for multiprocess wrapper 2023-01-12 21:51:03 -06:00
Kevin F 9eb2e5d413 Added multiprocess wrapper to do simple function calls in a seperate process 2023-01-12 21:42:22 -06:00
Kevin F 39c01fdbc5 Improved RPC, added threaded RPC with result fetcher 2023-01-12 00:23:28 -06:00
Kevin F 7bcef03592 Added setunixsocket and settcpsocket helper commands to RPC plugin 2023-01-11 16:51:11 -06:00
Kevin F 2b224cae84 Added create_block RPC endpoint 2023-01-10 22:08:08 -06:00
Kevin F 7895442b51 Respond to OPTIONS in rpc 2023-01-04 00:52:15 -06:00
Kevin F 474ef21163 Remove old dispatcher for getting blocks in RPC blocks wrapper 2023-01-02 19:36:37 -06:00
Kevin F 8e35a79864 Started on trust identity CLI menu option 2022-12-09 19:46:29 +00:00
Kevin F 8e730cef98 WOT API can now serialize identities 2022-12-02 21:42:11 +00:00
Kevin F 738fa0c361 Ping the RPC api before using the wot CLI 2022-12-02 21:41:48 +00:00
Kevin F b3eb0caffd Add result plugin to reduce confusing use of exceptions 2022-12-02 21:41:10 +00:00
Kevin F 446662cc60 Fix RPC plugin server binding incorrectly to TCP and doubling up JSON encoding 2022-12-02 21:40:33 +00:00
Kevin F 180116a55d Fix killdaemon logging 2022-12-02 21:19:42 +00:00
Kevin F bc3d6571bb merge seattle work 2022-11-27 01:03:44 +00:00
Kevin F 30d50ceacf merge seattle work 2022-11-27 01:03:36 +00:00
Kevin F e84ad93de7 work on wot cli 2022-11-22 00:57:14 -05:00
Kevin F 84e16e5b82 bump dependencies 2022-10-31 17:01:15 +00:00
Kevin F cd3a7cd7b2 Added identity generation 2022-10-22 06:22:29 +00:00
Kevin F 24e0157e15 Updated dockerfile 2022-10-22 06:22:05 +00:00
Kevin F c2db671a85 Work on secure identity keystorage using system keyring 2022-10-17 20:45:45 +00:00
Kevin F 9501d73546 Adding WOT API to RPC to enable 3rd party apps like merkato 2022-10-14 18:26:07 +00:00
Kevin F 4572f255fb Wot adjustments, blockdb plugin events 2022-10-01 04:25:46 +00:00
Kevin F 20393a547e bump dependencies 2022-09-27 19:21:31 +00:00
Kevin F 015a072b0b Fix test writing to wrong test dir directory 2022-09-27 19:08:58 +00:00
Kevin F 5ae5897703 Removed defunct utils that will probably never be used again 2022-09-27 19:06:18 +00:00
Kevin F e9efffff34 Removed crappy logger and replaced it with a sane built in logging logger 2022-09-27 17:21:00 +00:00
Kevin F 2eea681e98 Removed defunct tests and fixed remaining tests 2022-09-27 00:49:51 +00:00
Kevin F 3852b15c89 Fix gossip server not closing connections 2022-09-27 00:49:25 +00:00
Kevin F 3643e4f8d7 Removed lots of defunct cruft 2022-09-26 20:06:05 +00:00
Kevin F 8676a18c87 Split up requirements that default official plugins have 2022-09-26 20:04:03 +00:00
Kevin F 97d8662f15 started splitting dependencies by plugin 2022-09-25 23:18:18 -04:00
Kevin F a517ad3aee Mostly finished with wot command processing 2022-09-23 17:31:34 -04:00
Kevin F d915a2aaed handle unix peer socket file not existing 2022-09-17 01:24:11 -05:00
Kevin F 25e705c0b2 Removed sqlite as dependency 2022-09-17 01:23:27 -05:00
Kevin F 6f3e5aebd9 Removed defunct Onionrusers 2022-09-17 01:23:01 -05:00
Kevin F 584bc6b73f + Added ONIONR_PROFILING enviornment variable to profile onionr daemon or commands
+ Added SIGUSR1 handler to dump stacktrace of all active threads
2022-09-17 01:22:42 -05:00
Kevin F 171ea25f46 Wot import fixes 2022-09-17 00:02:49 -05:00
Kevin F 2c9836c54f Added REPL plugin 2022-09-16 23:33:39 -05:00
Kevin F a036c1839f Added event for main loop 2022-09-16 23:24:44 -05:00
Kevin F 6ad36bf4e5 Removed deprecated DB code and onioncrypto 2022-09-16 23:24:25 -05:00
Kevin F cdeaa403af Added set wrapper to contain identities
Finished signature revoking implementation
2022-09-15 20:03:29 -05:00
Kevin F fae9521d8f Made trust distance test graph generation reliable 2022-09-15 20:01:59 -05:00
Kevin F 05e04ef557 Adjusted trust signatures to sign the wot command 2022-09-15 01:27:46 -05:00
Kevin F 5bb43326e7 Finished tests for trust payload processing 2022-09-14 12:35:20 -05:00
Kevin F 9058f7bee5 Added basic test for trust payload processing 2022-09-13 21:40:39 -05:00
Kevin F 08d8fda857 developing signature processing in wot 2022-09-13 12:29:50 -05:00
Kevin F 650e943182 Work on WOT block processing and signatures 2022-09-08 18:44:23 -05:00
Kevin F e3d06ff0f5 Defunct code removal 2022-09-01 21:31:49 -05:00
Kevin F 83007cb28d Finished loading identities from blocks 2022-09-01 21:31:04 -05:00
Kevin F 57b1e07715 Finished identity serialization 2022-08-31 00:30:28 -05:00
Kevin F bddddd7c5b Remove notifications for now 2022-08-22 12:27:06 -05:00
Kevin F 85b6f468fd Remove ID commands for now 2022-08-22 10:35:49 -05:00
Kevin F 5ca2c8d329 Corrected missing hashes 2022-08-22 10:19:39 -05:00
Kevin F c0d3b367dc Get distance of trust with bfs 2022-08-18 00:12:01 -05:00
Kevin F 86615305d7 Fix tor peers not being removed from connection pool when they fail 2022-08-16 19:30:05 -05:00
Kevin F 69a31d1d83 Fixed high CPU usage when there are no outbound connections 2022-08-16 17:22:28 -05:00
Kevin F 954f5d793d fix log spamming 2022-08-16 17:11:56 -05:00
Kevin F c95d4b2685 README cleanup 2022-08-16 16:24:13 -05:00
Kevin F 736549c1dc added dependencies for rpc 2022-08-16 16:08:39 -05:00
Kevin F 2deb9271dc README cleanup 2022-08-16 16:01:00 -05:00
Kevin F 189645d560 correct readme to current status 2022-08-16 10:46:23 -05:00
Kevin F b59e79a21f Init wot plugin 2022-08-16 09:55:01 -05:00
Kevin F 3b8644fa8f Init wot plugin 2022-08-16 09:54:54 -05:00
Kevin F b2ebc56419 Added RPC plugin scaffolding 2022-08-11 14:25:07 -05:00
Kevin F bc71d12b77 Removed notifications requirements 2022-08-11 14:24:40 -05:00
Kevin F 264eeaa988 Started serializedAPI plugin 2022-08-09 19:02:37 -05:00
Kevin F c880b6fa7a Removed webUI and unused god objects
Remove defunct requirements
Removed more defunct code
Prepare onionrvalues for new release
disable unixtransport by default
2022-08-06 12:01:32 -05:00
Kevin F 228d3cbe35 Fix tor announcing to itsself 2022-08-02 21:06:30 -05:00
Kevin F 9864fa5040 Tweaked some gossip timeout values and fixed tor not storing full address in config 2022-07-31 12:23:01 -05:00
Kevin F 3a7e378d8b Added block database cleaner 2022-07-31 00:32:43 -05:00
Kevin F f220e398f1 Substantial bug fixes and performance improvements 2022-07-30 15:41:11 -05:00
Kevin F 8bd4a4c524 Fixed stemout blocking and performance issues 2022-07-28 16:10:36 -05:00
Kevin F c663be30f1 bump flask 2022-07-28 16:09:31 -05:00
Kevin F 90176e43fb Implemented non-dandelion uploading to improve network performance 2022-07-26 12:45:48 -05:00
Kevin F 9b6d1f5dbd Fix diffuseblocks blocking the event loop 2022-07-25 14:37:39 -05:00
Kevin F e7daaf576f Added logic for less strict dandelion++ fanout in order to enable smaller networks to function more quickly 2022-07-24 00:37:10 -05:00
Kevin F 84c13ade51 gossip fixes 2022-07-19 00:32:54 -05:00
Kevin F d2b5298bc6 Fix conflicting module names in transports 2022-07-17 00:01:07 -05:00
Kevin F d11d12b67f async bug fixes 2022-07-11 10:27:13 -05:00
Kevin F 1eadb4bf6e bumped dependencies 2022-07-10 22:28:30 -05:00
Kevin F 64a88118bd added unix transport for testing 2022-06-26 14:43:16 -05:00
Kevin F b25e376349 gossip bug and performance fixes 2022-06-26 00:34:49 -05:00
Kevin F b9fa446cb0 Fix missing comma 2022-06-21 12:10:11 -05:00
Kevin F 6b6d357a13 Small gossip fixes 2022-06-14 11:01:07 -05:00
Kevin F ac88e0a1da Stem out even if we only have 1 peer 2022-06-14 11:00:08 -05:00
Kevin F cdccde2d9d Don't write python bytecode 2022-06-14 10:55:38 -05:00
Kevin F 7b0c761dd1 Bump psutil, flask, and ujson 2022-06-10 13:25:21 -05:00
Kevin F 911d8118bc Small gossip fixes 2022-06-05 15:11:53 -05:00
Kevin F ac17b53663 Fix ping not properly responding 2022-06-05 14:46:13 -05:00
Kevin F 946fdbd06d Don't add .onion if it is not needed 2022-06-05 14:46:01 -05:00
Kevin F 9088d931c9 Move setupconfig up to fix default config not being used properly 2022-06-05 14:40:31 -05:00
Kevin F 421c6da25a Load and save tor peers 2022-05-30 19:52:03 -05:00
Kevin F 158178d6fc Don't spam tracebacks when sockets timeout 2022-05-20 10:13:12 -05:00
Kevin F 85626d6642 Removed close gossip command 2022-05-18 23:56:25 -05:00
Kevin F 9f25291c3a Finished client announce tests 2022-05-18 23:39:14 -05:00
Kevin F 15a4744a70 Completed new new peers test 2022-05-16 09:53:33 -05:00
Kevin F 1b21e25f7e Finished basic get_new_peers tests 2022-05-15 23:21:45 -05:00
Kevin Froman 0b4e264877 Dont accept peers too large 2022-05-15 21:54:14 -04:00
Kevin F 12d4ed7638 started get new peers test 2022-05-14 11:28:12 -05:00
Kevin F 2be0175326 started get new peers test 2022-05-13 00:17:06 -05:00
Kevin F 5bdfbd7c43 started get new peers test 2022-05-12 09:21:38 -05:00
Kevin F 93fc1827b5 Added remaining stem choice test cases 2022-05-10 09:29:28 -05:00
Kevin F 3a26d053fe Gossip client tests, fixed delayed threads 2022-05-09 12:38:03 -05:00
Kevin F 7b7d6a03d3 Ignore broken pipes when streaming blocks in the gossip client 2022-05-05 22:31:05 -05:00
Kevin F 50f0cfa6f4 Added basic streamblocks test, slight fixes for streamblocks 2022-05-05 00:07:58 -05:00
Kevin F 91df7507f4 db set_if_new returns bool on if a new key was set or not and doesn't raise duplicate exception 2022-05-05 00:05:53 -05:00
Kevin F c065be0145 Fix blockdb has_block not having block path 2022-05-05 00:04:37 -05:00
Kevin F 4edbde82cc Added example plugin that tests block insertion 2022-05-01 16:06:32 -05:00
Kevin F 1b37264eb7 Work on gossip tests and cleaned up api server some 2022-05-01 00:45:26 -05:00
Kevin F e6b61c5f59 Added put block test (1 block) 2022-04-24 15:19:39 -05:00
Kevin F ca2344c72c Added peer announce and exchange tests 2022-04-23 00:41:57 -05:00
Kevin F 237cdde4e5 Added peer exchange test (passing) 2022-04-20 00:28:29 -05:00
Kevin F 6a6460ef31 Added testing of streaming multiple blocks from gossip peer 2022-04-16 12:55:01 -05:00
Kevin F 4caee50ce7 Remove dead neighbor closeness benchmark 2022-04-16 12:49:42 -05:00
Kevin F a61cd273a8 Implemented basic server diffusal test 2022-04-05 01:17:40 -05:00
Kevin F c7ba974264 Block diffusal mostly done 2022-04-04 00:48:30 -05:00
Kevin F 9d2c2641f4 Block diffusal mostly done 2022-04-03 01:16:58 -05:00
Kevin F 996bff267b Work on normal gossip diffusion 2022-03-30 01:13:42 -05:00
Kevin F dae99dc2f7 Work on normal gossip diffusion 2022-03-28 00:13:36 -05:00
Kevin F 5858b0aca3 updated readme 2022-03-28 00:13:03 -05:00
Kevin F df02bdb826 Work on normal gossip diffusion 2022-03-26 18:26:55 -05:00
Kevin F c215d4decd Work on normal gossip diffusion 2022-03-26 18:24:40 -05:00
Kevin F b07c176f5c Refactored gossip peer set, gossip block queues, and dandelionphase to use singleton/module instances instead of being passed around 2022-03-21 01:03:53 -05:00
Kevin F 9c44069248 Misc bug fixes for gossip 2022-03-20 18:05:44 -05:00
Kevin F 5b5e5ef764 Don't bother to check if tor address in bootstrap list ends in .onion, it always shouldn't 2022-03-20 13:00:33 -05:00
Kevin F fd9e6f5ede Dandelion phases now have IDs so it can be known more easily if an epoch elapsed 2022-03-20 13:00:04 -05:00
Kevin F 8b2b6a613e corrected remaining_time being used as atter when resting during end op remaining time in dandelion client loop 2022-03-20 12:56:36 -05:00
Kevin F be1dde95a6 Corrected type hinting for block queues and peer sets 2022-03-20 12:54:57 -05:00
Kevin F 9ef6f46a5c Implemented do_stem_stream to stem blocks for dandelion++ 2022-03-20 12:53:40 -05:00
Kevin F e985966e7c Turned dandelion stem into a module and corrected use of wait_for 2022-03-20 12:52:58 -05:00
Kevin F f740d475c4 Specify that Onionr's pid is a pid in log 2022-03-20 12:51:54 -05:00
Kevin F a53c31fda7 peer.get_socket implementations now must take timeout arg used for initial connection 2022-03-20 12:51:25 -05:00
Kevin F 511803f565 update readme to reflect current state of development 2022-03-20 12:50:19 -05:00
Kevin F 1b77c60346 Remove todo.txt and replace with ROADMAP.md 2022-03-20 12:48:27 -05:00
Kevin F 568a192c97 Fix license docstring boilerplate spacing 2022-03-17 19:56:31 -05:00
Kevin F 2544579363 updated readme to reflect current work 2022-03-16 00:57:05 -05:00
Kevin F 6c2b1e49a2 Implemented dandelion stemout stream building 2022-03-14 10:04:28 -05:00
Kevin F 9bf16c5758 Work on stemout 2022-03-13 00:35:22 -06:00
Kevin F 19159ffa06 Work on stemout 2022-03-12 19:28:18 -06:00
Kevin F 4c54677387 Use tuple of queues for block queues instead of list for clarity that queues cannot be added 2022-03-11 11:15:18 -06:00
Kevin F 747b7d70a8 Added ordered_set dependency so we can pick from gossip peer set more efficiently 2022-03-11 10:55:33 -06:00
Kevin F fefec8bdc8 added block store function used when not in stem phase 2022-03-10 01:10:13 -06:00
Kevin F 9d17c7bd64 Implemented server dandelion++ stem portion 2022-03-04 18:05:12 -06:00
Kevin F 17b268d9e4 lots of work on gossip 2022-03-02 07:29:59 -06:00
Kevin F 4f3da58a60 Only 1 command per peer connection should be handled 2022-02-27 13:36:39 -06:00
Kevin F 1a7ce7d386 Try mulitiple times and log an error if we can't bootstrap to anyone 2022-02-27 13:36:02 -06:00
Kevin F 44f6b90777 When checking for peer online to add to peer pool, make sure it closes and avoid attempting if its already in the pool 2022-02-27 13:34:16 -06:00
Kevin F 5337b0aba4 bootstrap logic separated out of plugin and announcement logic mostly completed 2022-02-26 01:07:18 -06:00
Kevin F 34f9ffbf6b Made peers hashable and comparable for their use in the peer set 2022-02-26 01:06:17 -06:00
Kevin F 8d394c76a7 Peer announcing client side done 2022-02-25 01:02:04 -06:00
Kevin F df3568fc15 Scaffolding before implementing peer exchange logic 2022-02-24 01:03:50 -06:00
Kevin F 850468dc39 Scaffolding before implementing peer exchange logic 2022-02-23 11:47:01 -06:00
Kevin F d6b1c98cbd Ping loop while brainstorming. 2022-02-22 14:34:19 -06:00
Kevin F 8eec2167c8 Tor can now initialize peers 2022-02-21 15:15:26 -06:00
Kevin F d48af45210 better error handling in plugin importing 2022-02-18 14:40:00 -06:00
Kevin F 81a0d83b53 Fix import in getsocks 2022-02-18 14:39:46 -06:00
Kevin F 15875d26c6 Work on gossip system and tor transport 2022-02-16 23:58:04 -06:00
Kevin F 2bcfbf0d79 Tor address generation completed. New system stores the priv key in config as a cleaner method 2022-02-16 00:49:32 -06:00
Kevin F e5b396fc11 Work on gossip system and tor transport 2022-02-14 17:47:54 -06:00
Kevin F 713aeb199d Added DandelionPhase to pick stem mode or not 2022-02-12 14:36:45 -06:00
Kevin F 026f39b680 Work on new gossip system 2022-02-11 00:56:19 -06:00
Kevin F ebb75b136d Fix sigterm handler shutdown call 2022-02-10 17:38:22 -06:00
Kevin F ed6e2d05b4 ignore another python path in big brother disk ministry 2022-02-10 17:37:58 -06:00
Kevin F d388bba646 Added files for new dandelion++ gossip and transport system 2022-02-09 19:29:16 -06:00
Kevin F cbd9a3cbec bump version codename 2022-02-09 19:28:52 -06:00
Kevin F e55beec18c Adjusted onionrthreads to take kwargs 2022-02-09 19:28:31 -06:00
Kevin F 4fba79950c adjusted pythonpath .env 2022-02-09 19:28:00 -06:00
Kevin F cedd01c98f Removed netcontroller
Removed etc (moving most to onionrutils)
Small refactoring
2022-02-06 19:18:53 -06:00
Kevin F df686b3995 Completed basic blockdb tests 2022-02-06 18:06:34 -06:00
Kevin F 9c3ed5bb10 Removed more scripts 2022-02-06 18:05:49 -06:00
Kevin F 29b28accf1 Started test for blockdb 2022-02-05 13:25:28 -06:00
Kevin F 79639ba0af Added unittest for onionr subprocess module 2022-02-05 00:24:31 -06:00
Kevin F 061e2d1e01 Added generic multiprocess wrapper
Corrected blocks after timeout function
2022-02-04 00:18:57 -06:00
Kevin F eb763cf293 Work on blockdb functions 2022-02-03 12:55:07 -06:00
Kevin F ff9eb13579 Added block type iteration generator 2022-02-03 00:32:26 -06:00
Kevin F 844723cea9 Remove tests associated with removed code 2022-02-02 14:45:27 -06:00
Kevin F bb34f9042e Remove tests associated with removed code 2022-02-02 13:33:37 -06:00
Kevin F 44d5eeab2a Remove tests associated with removed code 2022-02-02 00:34:50 -06:00
Kevin F 15931ccc32 add onionrblocks dependency 2022-01-31 23:16:52 -06:00
Kevin F 21d1f69bbe Removed some dead scripts 2022-01-31 22:55:50 -06:00
Kevin F fd93f6151e + Add pijion support
* Fix shutdown
2022-01-30 23:59:34 -06:00
Kevin F 1d22b43ef9 Removed old block system 2022-01-30 19:39:24 -06:00
Kevin F e99056afac More cleanup 2022-01-19 18:47:28 -06:00
Kevin F cb647daa85 Cleaning up transport remnants 2022-01-11 18:13:19 -06:00
Kevin F 4bd9bd6e9d Removed lan and tor transports 2022-01-11 01:20:15 -06:00
Kevin F 2352e066cc work on moving to vdf 2022-01-06 14:48:22 -06:00
Kevin F 6a8ab46815 Added vdf create wrapper
Removed some dead code
2021-12-31 15:46:56 -06:00
Kevin F 8f784f208b Added new bootstrap node, more to come 2021-12-30 01:05:19 -06:00
Kevin F de18cdfd55 Update netcheck onions to v3 2021-12-28 21:35:58 -06:00
Kevin F 06907a80fa Bumped dependencies 2021-12-28 13:53:34 -06:00
kev aecd9ad9ef Update 'README.md' 2021-02-01 04:58:07 +00:00
Kevin Froman 3e17cf7c0b added papers list dev doc 2021-01-24 07:16:44 +00:00
Kevin Froman 735220d8da update runtime result 2021-01-23 19:21:02 +00:00
Kevin Froman 914b505dfa added remote ui plugin 2021-01-23 05:41:36 +00:00
Kevin Froman 8659fa613e merge master for docker fixes 2021-01-23 04:04:17 +00:00
Kevin Froman 7fa320cfc5 don't print version command to devnull in run script either
added docker and VPS documentation
2021-01-23 04:00:14 +00:00
Kevin Froman 9306143e4c dont check hostname if not bound to loopback in client api security 2021-01-23 04:00:03 +00:00
Kevin Froman 7303cf041e if binding to 0.0.0.0, don't validate source ip in client api 2021-01-23 04:00:03 +00:00
Kevin Froman 4e96d18396 print tor errors to stdout 2021-01-23 04:00:03 +00:00
Duncan X Simpson 133b3ea699 Docker improvements
- Create run-onionr-node.sh to parse env and supply args to run-onionr-node.py
- Dockerfile:
  - Run onionr by default rather than bash
  - Run as unprivileged user by default instead of root
  - Use /app for all code
  - Specify python 3.7 (3.8 fails to build cffi)
  - Use apt-get rather than apt (apt's CLI is not stable)
  - Slight reformatting and consolidation
  - do not use devnull in run-onionr-node.py
2021-01-23 04:00:03 +00:00
Duncan X Simpson 3a98183fa0 Compare uid not username in create_dirs() 2021-01-23 04:00:03 +00:00
Kevin Froman 8083489110 removed process info from run-onionr-node script 2021-01-23 04:00:03 +00:00
dependabot-preview[bot] cb2e29ad6e Bump pdoc3 from 0.9.1 to 0.9.2
Bumps [pdoc3](https://github.com/pdoc3/pdoc) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/pdoc3/pdoc/releases)
- [Changelog](https://github.com/pdoc3/pdoc/blob/master/CHANGELOG)
- [Commits](https://github.com/pdoc3/pdoc/compare/0.9.1...0.9.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-23 04:00:03 +00:00
dependabot-preview[bot] 6b6a698370 Bump pip-tools from 5.4.0 to 5.5.0
Bumps [pip-tools](https://github.com/jazzband/pip-tools) from 5.4.0 to 5.5.0.
- [Release notes](https://github.com/jazzband/pip-tools/releases)
- [Changelog](https://github.com/jazzband/pip-tools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jazzband/pip-tools/compare/5.4.0...5.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-23 04:00:03 +00:00
Kevin Froman d10ccd2e13 Merge branch 'docker' of https://git.k7dxs.net/dxs/onionr 2021-01-22 19:47:06 +00:00
Kevin Froman 513b758c7a removed process info from run-onionr-node script 2021-01-22 18:55:58 +00:00
Kevin F 5a9594074e
Merge pull request #109 from beardog108/dependabot/pip/pdoc3-0.9.2
Bump pdoc3 from 0.9.1 to 0.9.2
2021-01-16 20:31:45 +00:00
dependabot-preview[bot] ba8b9b49ed
Bump pdoc3 from 0.9.1 to 0.9.2
Bumps [pdoc3](https://github.com/pdoc3/pdoc) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/pdoc3/pdoc/releases)
- [Changelog](https://github.com/pdoc3/pdoc/blob/master/CHANGELOG)
- [Commits](https://github.com/pdoc3/pdoc/compare/0.9.1...0.9.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-16 20:31:06 +00:00
Kevin F 8c9a24b227
Merge pull request #117 from beardog108/dependabot/pip/pip-tools-5.5.0
Bump pip-tools from 5.4.0 to 5.5.0
2021-01-16 20:29:44 +00:00
Kevin Froman c28e5dea74 Merge branch 'master' of ssh://git.voidnet.tech:/kev/Onionr 2021-01-16 20:28:21 +00:00
Kevin Froman 07d9207808 Fix regression when opening homepage 2021-01-16 06:38:12 +00:00
Kevin Froman ad91a3222f show web url every time onionr daemon starts 2021-01-16 02:08:36 +00:00
Kevin Froman a032782d26 merge readme changes 2021-01-16 01:42:33 +00:00
Kevin Froman 1042676f26 added security mechanisms doc 2021-01-16 01:40:48 +00:00
Kevin Froman 9bf27b345d improved readme layout 2021-01-16 01:40:37 +00:00
Kevin Froman 8a2d0a635a accept #1 fixing #31 arm64 build issues 2021-01-15 22:24:21 +00:00
footsiefat 5a0231653f Added a new ARM64 (Raspberry Pi's for example) patch allowing for proper support now. 2021-01-15 22:23:24 +00:00
footsiefat e71935fcef Added a new ARM64 (Raspberry Pi's for example) patch allowing for proper support now. 2021-01-15 22:21:38 +00:00
Kevin Froman 87685fd728 add license to disk ministry 2021-01-15 21:36:57 +00:00
Kevin Froman d0df62770f added doc that describes testing 2021-01-15 19:41:31 +00:00
Kevin Froman e95b75b193 update runtime-result 2021-01-15 18:48:14 +00:00
Kevin Froman 59090b4a03 Merge branch 'master' of git.voidnet.tech:kev/Onionr 2021-01-15 08:57:33 +00:00
Kevin Froman ab41282fba Added instructions for generating requirements.txt 2021-01-15 08:56:20 +00:00
kev d1e4ae6032 Use list for version infos in issue template 2021-01-15 08:56:20 +00:00
kev b6b941bf9b Remove i2p and add cpu to issue template for now 2021-01-15 08:56:20 +00:00
Kevin Froman 509e8a290b don't use hard coded python version number in .env file 2021-01-15 08:56:20 +00:00
Kevin Froman b267d3028e bump version to 8.0.2 2021-01-15 08:55:42 +00:00
Kevin Froman 76f1d164e7 + added basic dev guide
* fixes #22
* When restarting from cli, always output to previous process' terminal
2021-01-15 07:30:38 +00:00
Kevin Froman 54f6e3bdc6 Added instructions for generating requirements.txt 2021-01-15 01:53:31 +00:00
Kevin Froman fd440b8b91 Merge branch 'master' of git.voidnet.tech:kev/Onionr 2021-01-15 01:13:47 +00:00
Kevin Froman 8797bce4fa don't use hard coded python version number in .env file 2021-01-15 01:11:52 +00:00
kev b42dc8fbc6 Use list for version infos in issue template 2021-01-15 02:10:30 +02:00
kev e950f3242e Remove i2p and add cpu to issue template for now 2021-01-15 01:55:28 +02:00
Kevin Froman eefcb8ccbe added basic dev guide 2021-01-14 05:59:00 +00:00
Kevin Froman f4e37bbf4e added basic dev guide 2021-01-14 05:56:22 +00:00
Kevin Froman 7dce969eaa added benchmark for neighbor closeness 2021-01-13 21:06:28 +00:00
Kevin Froman 79b46b62eb add SO link to err msg when sqlite is not installed 2021-01-13 09:37:47 +00:00
Kevin Froman 314bec0909 move centos install 2021-01-12 05:01:45 +00:00
Kevin Froman fcc3bd656d added quickstart guide pdf 2021-01-12 00:37:31 +00:00
Kevin F 4b7be71102
Merge pull request #118 from digitalhuman/patch-1
Install on CentOS 7
2021-01-12 00:33:03 +00:00
Kevin Froman 8a722a0911 removed outdated html autogenerated docs 2021-01-12 00:15:59 +00:00
Victor Angelier CCX 797da0aaea
Install on CentOS 7
Enjoy!
2021-01-11 19:37:56 +01:00
Kevin Froman 52bffa0aae update readme 2021-01-11 04:55:39 +00:00
dependabot-preview[bot] d7bcd2b4a8
Bump pip-tools from 5.4.0 to 5.5.0
Bumps [pip-tools](https://github.com/jazzband/pip-tools) from 5.4.0 to 5.5.0.
- [Release notes](https://github.com/jazzband/pip-tools/releases)
- [Changelog](https://github.com/jazzband/pip-tools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jazzband/pip-tools/compare/5.4.0...5.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-30 17:58:21 +00:00
Kevin Froman 0fb5e5df10 remove chat web files 2020-12-29 07:58:44 +00:00
Kevin Froman ae84d09e8e * detect stale run file
fixes #27
2020-12-22 08:57:15 -06:00
Kevin Froman 80e4562029 Merge branch 'master' of https://git.voidnet.tech/kev/onionr 2020-12-22 04:15:56 -06:00
Kevin Froman 427957b9e8 add all venvs to gitignore and update changelog 2020-12-22 01:55:05 +00:00
Kevin Froman 9d55c62d68 * revert pow to 5
* is is_alive in sneakernet observer
* catch subprocess err in 3.9.x (dirty hack) in vanityonionr and block gen
* bump version
2020-12-22 01:53:04 +00:00
Kevin Froman e36f44f9a1 bump deps 2020-12-22 00:54:29 +00:00
Kevin Froman 57638e73f7 added faq.md 2020-12-18 00:12:22 +00:00
Duncan X Simpson 2dc11303d7 Docker improvements
- Create run-onionr-node.sh to parse env and supply args to run-onionr-node.py
- Dockerfile:
  - Run onionr by default rather than bash
  - Run as unprivileged user by default instead of root
  - Use /app for all code
  - Specify python 3.7 (3.8 fails to build cffi)
  - Use apt-get rather than apt (apt's CLI is not stable)
  - Slight reformatting and consolidation
2020-12-15 22:38:46 -07:00
Duncan X Simpson 9345d27d6a Compare uid not username in create_dirs() 2020-12-15 22:38:38 -07:00
Kevin Froman 5afbed63cf Merge branch 'bind-args' 2020-12-16 04:47:16 +00:00
Kevin Froman c44d6624ff correct yt link
Docker improvements

- Run onionr by default rather than bash
- Run as unprivileged user by default instead of root
- Use /app for all code
- Specify python 3.7 (3.8 fails to build cffi)
- Use apt-get rather than apt (apt's CLI is not stable)
- Slight reformatting and consolidation

Added custom port and bind address args
2020-12-16 04:46:46 +00:00
Kevin Froman ae359de562 Added custom port and bind address args 2020-12-16 04:44:25 +00:00
dependabot-preview[bot] 2bd58945da Bump watchdog from 0.10.4 to 1.0.1
Bumps [watchdog](https://github.com/gorakhargosh/watchdog) from 0.10.4 to 1.0.1.
- [Release notes](https://github.com/gorakhargosh/watchdog/releases)
- [Changelog](https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst)
- [Commits](https://github.com/gorakhargosh/watchdog/compare/v0.10.4...v1.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-16 04:44:25 +00:00
Duncan X Simpson b1ef248ee9 Docker improvements
- Modify onionr.sh to parse env and supply args to run-onionr-node.py
- Run onionr by default rather than bash
- Run as unprivileged user by default instead of root
- Use /app for all code
- Specify python 3.7 (3.8 fails to build cffi)
- Use apt-get rather than apt (apt's CLI is not stable)
- Slight reformatting and consolidation
2020-12-16 04:44:25 +00:00
Kevin Froman 416e43e7bb correct yt link 2020-12-16 04:44:25 +00:00
Kevin Froman 1eb6140811 Added custom port and bind address args 2020-12-15 21:59:36 -06:00
Kevin Froman 700bde4bd8 Merge branch 'master' of https://git.k7dxs.net/dxs/onionr 2020-12-15 19:55:46 -06:00
Kevin Froman 71b511382b correct yt link 2020-12-15 19:54:33 -06:00
Duncan X Simpson 67f5c30d85 Docker improvements
- Modify onionr.sh to parse env and supply args to run-onionr-node.py
- Run onionr by default rather than bash
- Run as unprivileged user by default instead of root
- Use /app for all code
- Specify python 3.7 (3.8 fails to build cffi)
- Use apt-get rather than apt (apt's CLI is not stable)
- Slight reformatting and consolidation
2020-12-14 23:27:32 -07:00
Kevin Froman 9684585432 Fix consent message in onboarding 2020-12-13 00:22:51 +00:00
Kevin Froman 9d6216e16b decrease pow, bump version 2020-12-04 09:41:40 +00:00
Kevin Froman 2a6f6bb1aa speed up tests by lowering pow in their configs 2020-12-03 06:36:30 +00:00
Kevin Froman 7820c87b79 bump version 2020-12-03 06:36:15 +00:00
Kevin Froman 93d176badc fix upload.py logging b_hash define 2020-12-03 06:12:06 +00:00
Kevin Froman 968f468027 Merge branch 'fixmultiprocessexit' of /home/user/win-merges/bare-onionr/onionr into fixmultiprocessexit 2020-12-03 05:24:42 +00:00
Kevin Froman 86fd936d52 exit faster from communicator 2020-12-03 05:20:03 +00:00
Kevin Froman e34b499044 purge old blocks if POW increases 2020-12-02 20:46:36 -06:00
Kevin Froman 01ed4d49d0 fix wsl apport breaking sites 2020-12-03 01:25:24 -06:00
Kevin Froman 9db9c495c8 check block POW *before* syncning from lan 2020-12-02 23:01:12 -06:00
Kevin Froman dcc304be9d fix wsl apport breaking sitecreator 2020-12-02 23:00:51 -06:00
Kevin Froman eaf61c280a fixed subprocesspow not exiting on wsl 2020-12-01 16:24:10 -06:00
Kevin Froman e831a27ae3 bug fixes in block creation and directory security 2020-11-23 03:47:50 +00:00
Kevin Froman de271794fd added git-update.sh 2020-11-23 03:07:47 +00:00
Kevin Froman 21df88fdaa bumped deps 2020-11-22 01:15:06 +00:00
dependabot-preview[bot] 9d4afc4b3a Bump pip-tools from 5.3.1 to 5.4.0
Bumps [pip-tools](https://github.com/jazzband/pip-tools) from 5.3.1 to 5.4.0.
- [Release notes](https://github.com/jazzband/pip-tools/releases)
- [Changelog](https://github.com/jazzband/pip-tools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jazzband/pip-tools/compare/5.3.1...5.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-22 01:13:20 +00:00
Kevin Froman 28044f2bd7 bump version 2020-11-22 01:11:14 +00:00
Kevin Froman adba4be099 fix tests 2020-11-22 00:43:59 +00:00
Kevin Froman 30a4285b92 - Removed direct connections (will be a different project in the future)
- removed chat for now
- removed onionrcommunicatortimers
2020-11-21 05:31:19 +00:00
Kevin Froman 59330149e1 removed netcheck comm timer 2020-11-18 22:16:37 -06:00
Kevin Froman a775f3b26d dont upload blocks that arent valid (anymore?), progress removing communicator timers 2020-11-16 06:57:38 +00:00
Kevin Froman cc703fc404 progress removing communicator timers 2020-11-15 18:52:52 +00:00
Kevin Froman ecd2cc54da progress removing communicator timers 2020-11-15 18:26:25 +00:00
Kevin Froman bbd76da333 added flood fill work, misc bug fixes and removing communicator timers 2020-11-13 08:17:48 +00:00
Kevin Froman 04105a2b70 show more info in show-blocks.py script 2020-11-03 04:38:35 +00:00
Kevin Froman 8d839f62c9 bump version 2020-11-03 04:21:17 +00:00
Kevin Froman a0ae62d0a3 added togglenetwork module in torcontrol 2020-11-03 03:56:24 +00:00
Kevin Froman a9d0524ccc + added sandbox script
* handle sigterm
2020-11-02 23:47:38 +00:00
Kevin Froman 130e9de5e9 remove disablenetwork for now 2020-11-02 02:09:52 +00:00
Kevin Froman f0cd2fb2b9 moved blockmetadata to onionrblocks 2020-11-02 01:31:11 +00:00
Kevin Froman 44112750ec Merge branch 'master' into flood-fill 2020-10-29 20:58:17 +00:00
Kevin Froman f2d7075b3a bump version 2020-10-28 08:28:56 +00:00
Kevin Froman 256c402223 fix connectnewpeers not using specified peer 2020-10-28 07:54:11 +00:00
Kevin Froman 2601263b87 disable forward secrecy for now, fix autocomplete for to address in mail 2020-10-28 02:49:21 +00:00
Kevin Froman 3ab8681b24 Merge branch 'master' of gitlab.com:beardog/Onionr 2020-10-27 15:58:27 +00:00
Kevin Froman 2837210cf4 blockapi decrypt fix 2020-10-27 15:58:06 +00:00
Kevin Froman d0e6f6c4af bump requirements 2020-10-26 08:45:02 +00:00
Kevin Froman 67054446ae bump requirements 2020-10-26 08:36:53 +00:00
Kevin Froman f7f4732789 added floodfill network visualization script 2020-10-26 08:32:36 +00:00
Kevin Froman f80d58e5b8 added floodfill network visualization script 2020-10-26 06:57:22 +00:00
Kevin Froman 4a831a4a4d fixed closeness calculation 2020-10-26 06:11:24 +00:00
Kevin Froman 57ec04eff5 remove hs after creation in generate onions 2020-10-26 06:10:56 +00:00
Kevin Froman da11c74f6c finished closeness measurement 2020-10-25 04:12:42 +00:00
Kevin Froman c4be08bd23 added onion generator script 2020-10-24 16:50:25 +00:00
Kevin Froman 299980f126 work on flood fill network 2020-10-24 08:07:54 +00:00
Kevin Froman b5fe4453ed added graph simulation script 2020-10-22 16:23:16 +00:00
Kevin Froman 77de7e318d fix zalgo overflow in circles ui 2020-10-22 15:16:49 +00:00
Kevin Froman eec8c356ad fix systemrandom shuffle 2020-10-22 15:16:19 +00:00
Kevin Froman 6a4744997c correct wording in log warning in sidebar 2020-10-22 14:53:11 +00:00
Kevin Froman cf0507b82d ensure whole tree is made in createdirs 2020-10-22 14:52:49 +00:00
Kevin Froman 862b39c217 fix systemrandom shuffle 2020-10-22 14:25:57 +00:00
Kevin Froman b424ef6674 disable restart tor button if tor is not enabled 2020-10-22 13:46:28 +00:00
Kevin Froman 4847d9bddf added cpu optimize onboarding option 2020-10-22 12:51:20 +00:00
Kevin Froman 51c3078b90 newline in tor sidebar log 2020-10-22 12:45:38 +00:00
Kevin Froman 8a4c138eed don't netcheck if tor disabled 2020-10-22 12:45:19 +00:00
Kevin Froman 5dddeb3f10 remove random shuffle function for systemrandom equivalent 2020-10-21 09:46:05 +00:00
Kevin Froman fb85856f76 added bootstrap run argument 2020-10-21 05:34:43 +00:00
Kevin Froman 5c61708c61 added graph simulation script 2020-10-19 07:32:34 +00:00
Kevin Froman 183e6491d0 use SystemRandom for randomshuffle instead of own rolled implementation 2020-10-19 07:28:38 +00:00
Kevin Froman 3ca05e2390 added sidebar log warning 2020-10-19 07:28:17 +00:00
Kevin Froman 88ec98c92a size sanity in webui sidebar log output 2020-10-19 03:25:49 +00:00
Kevin Froman 8f52fa4669 autoscroll sidebar log 2020-10-17 10:11:07 +00:00
Kevin Froman 60c7e6cb37 now shows log in sidebar 2020-10-17 09:54:29 +00:00
Kevin Froman c23b286540 added file reader offset 2020-10-17 07:51:28 +00:00
Kevin Froman 723d004e5c disable autocomplete for mail message subjects 2020-10-17 02:45:14 +00:00
Kevin Froman 989692c6ac add disable-plugin-list, --store-plaintext and --dev-mode run arguments
fixes #6
2020-10-17 01:36:50 +00:00
Kevin Froman fcfecaff7e fix removing circles from nav bar when disabled 2020-10-16 06:30:17 +00:00
Kevin Froman 895b4fe4fd side bar and ui node list fixes 2020-10-15 23:24:25 +00:00
Kevin Froman cf669024bf handle invalid input when adding peer better 2020-10-15 22:02:51 +00:00
Kevin Froman a9096dc048 correct return type in storage setdata 2020-10-15 09:50:52 +00:00
Kevin Froman 1e7d7840b1 added showblocks script 2020-10-15 04:00:09 +00:00
Kevin Froman 57225f57f0 work on fixing weird upload issues 2020-10-15 03:56:43 +00:00
Kevin Froman fbcb95be9e fix mixmate indent 2020-10-15 02:46:20 +00:00
Kevin Froman c2b7246048 handle bad user ids in mail ui better 2020-10-14 22:28:56 +00:00
Kevin Froman e0f59784b1 Fix mixmate and sneakernet 2020-10-14 00:07:41 +00:00
Kevin Froman 2291d5a5f2 reduce pow 2020-10-12 09:22:54 +00:00
Kevin Froman d067a343e6 fixed pex 2020-10-11 05:58:42 +00:00
Kevin Froman 3ef29077e7 plaintext block fixes with sharing, fixed peer lookup 2020-10-10 23:23:22 +00:00
Kevin Froman 835c2e527e Fixed encrypted uploads 2020-10-10 08:49:33 +00:00
Kevin Froman 1c44a514a5 Fixed encrypted uploads 2020-10-10 08:43:20 +00:00
Kevin Froman 5baa048a4e Fixed encrypted uploads 2020-10-10 08:41:55 +00:00
Kevin Froman 0338cd64b6 do not upload plaintext to peers that do not support it, closes #14 2020-10-10 04:50:11 +00:00
Kevin Froman fc7db42deb do not upload plaintext to peers that do not support it, closes #14 2020-10-10 04:26:51 +00:00
Kevin Froman 503bf65cbe fix error on deletion or upload of plaintext blocks to node that does not support it 2020-10-10 02:51:04 +00:00
Kevin F da57dc373f
Merge pull request #100 from beardog108/dependabot/pip/ujson-4.0.1
Bump ujson from 4.0.0 to 4.0.1
2020-10-10 01:01:46 +00:00
dependabot-preview[bot] f0bb41daac
Bump ujson from 4.0.0 to 4.0.1
Bumps [ujson](https://github.com/ultrajson/ultrajson) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/ultrajson/ultrajson/releases)
- [Commits](https://github.com/ultrajson/ultrajson/compare/4.0.0...4.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-10 00:18:40 +00:00
Kevin Froman 2dc706a894 fixed sneakernet, removed unused vdf 2020-10-10 00:16:24 +00:00
Kevin Froman d0baa7fd12 deleted csharppow and bumped version 2020-10-09 17:57:12 +00:00
Kevin Froman 10689f24d7 added graph info to readme 2020-10-09 06:39:32 +00:00
Kevin F b010fa8326
Merge pull request #99 from beardog108/dependabot/pip/ujson-4.0.0
Bump ujson from 3.2.0 to 4.0.0
2020-10-09 01:41:26 +00:00
Kevin Froman b5b7c756ea removed old onionr contact address from readme 2020-10-09 00:41:12 +00:00
dependabot-preview[bot] 99371cfec5
Bump ujson from 3.2.0 to 4.0.0
Bumps [ujson](https://github.com/ultrajson/ultrajson) from 3.2.0 to 4.0.0.
- [Release notes](https://github.com/ultrajson/ultrajson/releases)
- [Commits](https://github.com/ultrajson/ultrajson/compare/3.2.0...4.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-07 17:54:24 +00:00
Kevin Froman 10ba2be93f small bug fixes, added more cors headers for pub api browser requests 2020-10-06 02:53:56 +00:00
Kevin Froman 45940b2dba + added address adding input to web ui in sidebar
fixes #10
2020-10-03 22:43:18 +00:00
Kevin Froman 092233027c allow truncated hashes in getblocks public endpoint 2020-09-30 10:05:40 +00:00
Kevin Froman 5abe4cf704 (re)added cors to public api 2020-09-30 07:45:14 +00:00
Kevin Froman ab9726a41a in removeblock calculate size of block before removing it 2020-09-28 08:19:06 +00:00
Kevin Froman 6370d07f90 fix standalone block file ext in removeblock 2020-09-28 08:18:30 +00:00
Kevin Froman fa0318802b use new pow value formats 2020-09-25 08:09:08 +00:00
Kevin Froman 366295f09c Added upload mixing run script arg 2020-09-25 08:08:58 +00:00
Kevin Froman 48f988877d use new pow value formats 2020-09-25 07:32:29 +00:00
Kevin Froman 68a557daf5 added block type filter for public get blocks endpoint 2020-09-25 05:17:08 +00:00
Kevin Froman 02cdbc75ce c# pow implementation work 2020-09-23 21:21:43 +00:00
Kevin F 843f1c1a8e
Merge pull request #97 from beardog108/dependabot/pip/helium-3.0.5
Bump helium from 3.0.4 to 3.0.5
2020-09-23 18:11:14 +00:00
Kevin F 50f0ff8da6
Merge pull request #98 from beardog108/dependabot/pip/gevent-20.9.0
Bump gevent from 20.6.2 to 20.9.0
2020-09-23 18:11:07 +00:00
Kevin Froman 60d6aa0510 c# pow implementation work 2020-09-23 00:36:08 +00:00
dependabot-preview[bot] 0c315c3181
Bump gevent from 20.6.2 to 20.9.0
Bumps [gevent](https://github.com/gevent/gevent) from 20.6.2 to 20.9.0.
- [Release notes](https://github.com/gevent/gevent/releases)
- [Changelog](https://github.com/gevent/gevent/blob/master/docs/changelog_pre.rst)
- [Commits](https://github.com/gevent/gevent/compare/20.6.2...20.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-22 22:30:39 +00:00
Kevin Froman e9dbc9fa09 c# pow implementation work 2020-09-21 07:10:10 +00:00
Kevin Froman 499981ed52 c# pow implementation work 2020-09-20 21:13:46 +00:00
Kevin Froman 60c1ec07e9 started c# pow implementation 2020-09-19 21:01:31 +00:00
Kevin Froman fd0f13cf63 started c# pow implementation 2020-09-19 21:01:22 +00:00
Kevin Froman 3199f93d4b work on making mail more efficient, added --private-ke argument imp to run script 2020-09-19 08:25:10 +00:00
Kevin Froman 646a7c0b80 Removed difficulty adjuster from pow
Fixed board popularity cache
2020-09-19 03:08:42 +00:00
Kevin Froman 5b3d76067a Move users to use phrase system for sites as well 2020-09-15 18:12:39 +00:00
Kevin Froman c0ebfec034 Default disabled upload mixing with new config value 2020-09-15 18:11:44 +00:00
Kevin Froman c19797bb2e Added remove log on exit argument to run script 2020-09-15 18:10:39 +00:00
Kevin Froman 1f067f614a Added tor restart button to index and tor restart command. Enabled tor restart daemon event 2020-09-15 17:08:50 +00:00
Kevin Froman b4d80da3ff Work on fixing node uptime 2020-09-14 23:28:01 +00:00
dependabot-preview[bot] 43d3e687d7
Bump helium from 3.0.4 to 3.0.5
Bumps [helium](https://github.com/mherrmann/helium) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/mherrmann/helium/releases)
- [Commits](https://github.com/mherrmann/helium/compare/v3.0.4...v3.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-14 12:23:42 +00:00
Kevin Froman 4bc2bf5db5 removed deterministic keys due to poor hashing 2020-09-14 11:54:14 +00:00
Kevin Froman c7e0b6c1b2 Removed batch files, added WIP run wrapper script 2020-09-13 03:26:02 +00:00
Kevin Froman 247b1f616d added missing last release to changelog 2020-09-10 22:04:53 +00:00
Kevin Froman b4ddf343fc Removed unreachable return in onionrproofs 2020-09-10 21:44:42 +00:00
Kevin Froman 196d02a751 Sped up + fixed statistics table command using psutil, removed checkcommunicator as a result 2020-09-10 21:44:30 +00:00
Kevin Froman a5b6805b5f Update readme to have version tag 2020-09-10 20:50:41 +00:00
Kevin Froman e11c3d2733 Merge branch 'master' into remote-access 2020-09-08 18:31:12 +00:00
Kevin F 97708e5875
Merge pull request #91 from beardog108/dependabot/pip/pip-tools-5.3.1
Bump pip-tools from 5.2.1 to 5.3.1
2020-09-08 18:30:49 +00:00
Kevin F 41e57cb5b9
Merge pull request #96 from beardog108/dependabot/pip/ujson-3.2.0
Bump ujson from 3.0.0 to 3.2.0
2020-09-08 18:27:53 +00:00
dependabot-preview[bot] 79a5e6ca3e
Bump ujson from 3.0.0 to 3.2.0
Bumps [ujson](https://github.com/ultrajson/ultrajson) from 3.0.0 to 3.2.0.
- [Release notes](https://github.com/ultrajson/ultrajson/releases)
- [Commits](https://github.com/ultrajson/ultrajson/compare/3.0.0...3.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-08 16:46:17 +00:00
Kevin Froman 2ce5f48c90 Added ui.public_remote_enabled and ui.public_remote_hosts 2020-09-08 08:39:18 +00:00
Kevin Froman 17ef138c21 bump version 2020-09-07 05:49:13 +00:00
Kevin Froman cb88ff8c3f update runtime test 2020-09-07 05:47:58 +00:00
Kevin Froman d40bd85368 added test for api version 2020-09-07 05:13:36 +00:00
dependabot-preview[bot] d7e7d4499b
Bump pip-tools from 5.2.1 to 5.3.1
Bumps [pip-tools](https://github.com/jazzband/pip-tools) from 5.2.1 to 5.3.1.
- [Release notes](https://github.com/jazzband/pip-tools/releases)
- [Changelog](https://github.com/jazzband/pip-tools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jazzband/pip-tools/compare/5.2.1...5.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-07 04:08:23 +00:00
Kevin F 104f71c0c3
Merge pull request #95 from beardog108/dependabot/pip/pdoc3-0.9.1
Bump pdoc3 from 0.8.3 to 0.9.1
2020-09-07 04:06:52 +00:00
Kevin Froman 16cdd6d877 Merge branch 'master' of ssh://git.voidnet.tech:/kev/Onionr 2020-09-07 03:44:17 +00:00
Kevin Froman b7091d2062 fix showlogo crash when not connected to terminal, bump version 2020-09-07 03:42:13 +00:00
Kevin Froman f8fcd6d4e5 Formatting changes 2020-09-07 03:18:23 +00:00
Kevin Froman 15a66c7fb4 fix showlogo crash when not connected to terminal 2020-09-07 03:17:20 +00:00
Kevin Froman 37e5dbab4b Moved plugin web files to be in the plugin folder to reduce staticfiles blueprint coupling 2020-09-01 22:41:59 +00:00
dependabot-preview[bot] 3df1859df5
Bump pdoc3 from 0.8.3 to 0.9.1
Bumps [pdoc3](https://github.com/pdoc3/pdoc) from 0.8.3 to 0.9.1.
- [Release notes](https://github.com/pdoc3/pdoc/releases)
- [Changelog](https://github.com/pdoc3/pdoc/blob/master/CHANGELOG)
- [Commits](https://github.com/pdoc3/pdoc/compare/0.8.3...0.9.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-27 23:12:01 +00:00
Kevin Froman 14f2d03ebf Formatting improvements in httpapis 2020-08-26 08:25:43 +00:00
Kevin Froman 3422ca43ff Fixing block syncing quirks 2020-08-25 15:02:13 -05:00
Kevin Froman a83351a73c misc formatting improvements 2020-08-25 13:20:37 -05:00
Kevin Froman 39650a4ca0 catch and log when cannot reach non-managed tor 2020-08-23 22:26:54 -05:00
Kevin Froman 8d54519771 implemented the sybil attack script 2020-08-23 11:54:14 -05:00
Kevin Froman 9f1f1435ce Fix block downloading for shared state 2020-08-23 11:53:49 -05:00
Kevin Froman 78e533952c added sybil attack script 2020-08-23 07:17:10 -05:00
Kevin Froman e19e23022b show message if user tries to open .onion as onionr site 2020-08-23 06:29:40 -05:00
Kevin Froman 68aac2153b add some more useful logging for failed signed blocks in validatemetadata 2020-08-23 06:29:12 -05:00
Kevin Froman 15379a7c2f add readline to client api request crafter 2020-08-23 05:53:43 -05:00
Kevin Froman 61bc5fd34b use better language for LE on onboarding page 2020-08-23 05:17:32 -05:00
Kevin Froman b66e1d852e clear stats interval on shutdown button, remove deprecated sync httpget 2020-08-23 05:17:15 -05:00
Kevin Froman 02fde0ad70 fix subprocesspow keyboard interrupt not being catched 2020-08-21 10:44:59 -05:00
Kevin Froman 308fca7c22 added creating blocks count to sidebar 2020-08-21 09:57:59 -05:00
Kevin Froman 72653c1e93 check for light theme before enabling particles 2020-08-21 09:57:28 -05:00
Kevin Froman cd0b69b03f Use init-time creation only of StorageCounter to use less inotify instances 2020-08-21 09:56:49 -05:00
Kevin Froman bbc9646a25 fix LANServer dns rebinding crashing because of old kwarg format 2020-08-20 20:03:11 -05:00
Kevin Froman fd73f63ecd fix public block list not working because of old kwarg format 2020-08-20 20:00:44 -05:00
Kevin Froman 2cf7a8c8b3 Fix unclickable labels in onboarding 2020-08-20 01:29:29 -05:00
Kevin Froman 6089cc3c98 fix formatting in onionrservices 2020-08-19 23:05:06 -05:00
Kevin Froman 05127dd3b7 remove warden since it won't be implemented 2020-08-19 23:04:29 -05:00
Kevin Froman d39c12ab4d Update runtime test 2020-08-17 19:16:07 -05:00
Kevin Froman ce0e60c4ea Correct formatting in expiredblocks 2020-08-17 19:03:42 -05:00
Kevin Froman 0938bf0692 Deduplicate infoNumbers in transportinfo keydb 2020-08-17 19:03:21 -05:00
Kevin Froman fb4dd07ba4 fix missed blockHash->block_hash change in onionrstorage 2020-08-17 19:02:51 -05:00
Kevin Froman 6f242298fe Don't run LAN unittests on QubesOS 2020-08-17 19:02:24 -05:00
Kevin Froman 0b2658374b Added/corrected timeouts for sqlite3 database connections
Bumped mail plugin patch version for sqlite3 timeout change
Code formatting corrections
2020-08-16 19:52:50 -05:00
Kevin Froman 2a7c933321 Utils format fixes 2020-08-12 18:07:04 -05:00
Kevin Froman c9af24392d Fix netutils formatting 2020-08-12 17:30:12 -05:00
Kevin Froman 272d7d7f74 Removed Windows specific code 2020-08-12 17:21:11 -05:00
Kevin Froman ce63c4cd3b Show a terminal message if bridge is enabled but one is not set. By design, there is no easy way for us to get Tor bridges automatically
work on tor blocking detection
2020-08-12 13:16:13 -05:00
Kevin Froman e900d597d8 Added repo-size shield to readme 2020-08-12 03:22:52 -05:00
Kevin Froman 2ddeab8788 work on tor blocking detection 2020-08-11 23:49:26 -05:00
Kevin Froman a24086da62 add comments to bootstrappeers 2020-08-10 21:35:19 -05:00
Kevin Froman 8389ed190c Basic check for QubesOS in runtime tests and to avoid starting LAN server 2020-08-10 01:09:19 -05:00
Kevin Froman 87b8655b83 do not start lan on qubes 2020-08-10 01:03:32 -05:00
Kevin Froman feb8004c95 fix generating hashes not being removed when done, add endpoint to get generating hashes 2020-08-09 22:13:06 -05:00
Kevin Froman a01b645a79 added dump endpoints to debug api 2020-08-08 21:19:09 -05:00
Kevin Froman 3473c5e36a Improved torcontrol formatting and efficency 2020-08-08 21:18:56 -05:00
Kevin Froman e14955cb6b Improved formatting and removed unnecessary imports in torcontrol 2020-08-08 20:44:11 -05:00
Kevin Froman 504c53edb3 added debug info api files 2020-08-08 15:59:44 -05:00
Kevin Froman 5e00bb930f added client api request crafting script 2020-08-08 15:40:20 -05:00
Kevin Froman 6976dcf8f3 Friends API now shows redirect error message when ref header not set instead of request failing 2020-08-08 15:39:24 -05:00
Kevin Froman 552e7427d8 Merge branch 'master' of ssh://git.voidnet.tech:/kev/Onionr into sidebar 2020-08-08 12:52:39 -05:00
kev 661a4ee3d2 Fix doc links in readme 2020-08-08 20:52:02 +03:00
Kevin Froman 96af4e8db0 Fixed some broken things from communicator decoupling 2020-08-08 12:38:14 -05:00
Kevin Froman bff2595ac9 Merge branch 'new-release' into sidebar 2020-08-08 10:51:04 -05:00
Kevin Froman 522cd2c462 bumped requirements versions 2020-08-08 00:11:45 -05:00
Kevin 2f5c1311be update readme to reflect release tag usage 2020-08-07 22:41:56 -05:00
Kevin 077f530b72 Fix peeraction still using comm_inst 2020-08-07 21:57:02 -05:00
Kevin 5930f3bfad Added missing tests and sidebar files 2020-08-04 22:35:45 -05:00
Kevin ab10cea8b6 add forgotten spawndaemonthreads and added license info to bulma extension files 2020-08-04 08:45:06 -05:00
Kevin 086f2f718c fix onlinepeers decoupling 2020-08-04 08:44:24 -05:00
Kevin 4cf17ffe62 work on removing communicator 2020-07-30 20:15:36 -05:00
Kevin 0b34aa7385 added onionrthreads to replace communicator timers 2020-07-29 20:36:41 -05:00
Kevin 6f1daf50d3 added setup kvvars 2020-07-29 20:36:11 -05:00
Kevin 5bde99967b Moved all communicator ext vars to KV 2020-07-29 04:32:09 -05:00
Kevin f28d469e56 Moved all communicator ext vars to KV 2020-07-29 03:57:06 -05:00
Kevin 080f33bf1f More decoupling, removed unnecessary announceCache 2020-07-26 21:45:17 -05:00
Kevin fad5e8547e Moved cooldownPeer to KV to further reduce coupling 2020-07-26 19:15:26 -05:00
Kevin dde10b7005 Moved offllinePeers to KV to further reduce coupling 2020-07-26 19:12:52 -05:00
Kevin 10c1cd7803 Moved blocksToUpload to KV to further reduce coupling 2020-07-26 19:02:39 -05:00
Kevin 97a5f50271 Moved dbTimestamps and newPeers to KV for more decoupling 2020-07-26 15:49:34 -05:00
Kevin e00d41f8a9 Moved onlinePeers and announceCache to kv for more decoupling 2020-07-26 15:26:15 -05:00
Kevin 6a6718c9fd Moved onlinePeers to KV to further reduce coupling 2020-07-25 22:28:32 -05:00
Kevin 0e4e7bb050 Moved communicator shutdown over to KV model for more decoupling 2020-07-25 21:36:48 -05:00
Kevin F 0460d3380f
Merge pull request #89 from beardog108/dependabot/pip/deadsimplekv-0.3.2
Bump deadsimplekv from 0.3.1 to 0.3.2
2020-07-25 21:30:17 -05:00
dependabot-preview[bot] e3b1eaad17
Bump deadsimplekv from 0.3.1 to 0.3.2
Bumps [deadsimplekv](https://github.com/beardog108/deadsimplekv) from 0.3.1 to 0.3.2.
- [Release notes](https://github.com/beardog108/deadsimplekv/releases)
- [Changelog](https://github.com/beardog108/DeadSimpleKV/blob/master/CHANGELOG.md)
- [Commits](https://github.com/beardog108/deadsimplekv/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-24 20:08:08 +00:00
Kevin 6ecb62356a Moved blockQueue to DSKV singleton as part of communicator decoupling 2020-07-24 14:37:01 -05:00
Kevin 47013431d2 Removed use of communicator's storagecounter to reduce coupling 2020-07-24 03:27:42 -05:00
Kevin b4be481f81 bumped urllib3 to 1.25.10 2020-07-24 03:03:21 -05:00
Kevin f4d1739e4a made storagecounter use a watchdog (inotify) instead of excessive file reads 2020-07-24 02:57:44 -05:00
Kevin 8b5c87d356 Removed single-process POW support, which was just needed on Windows 2020-07-23 15:16:52 -05:00
882 changed files with 7314 additions and 85334 deletions

View File

@ -1,4 +1,6 @@
onionr/data/**/*
onionr/data
RUN-WINDOWS.bat
MY-RUN.sh
Dockerfile
.dockerignore
.git

2
.env
View File

@ -1 +1 @@
PYTHONPATH=./venv/bin/python3.8
PYTHONPATH=./venv/bin/python310:./src/

6
.gitignore vendored
View File

@ -13,11 +13,11 @@ src/data/*
src/data-backup/*
run.sh
src/.onionr-lock
daemon-true.txt
.vscode/tags
.vscode/settings.json
venv/*
venv*
src/fs*
src/tmp/*
testdata/*
@ -40,3 +40,5 @@ src/data/*.log
onionr-*.pkg.tar.gz
pkg/
spawnnodes.py
static-data/tor-node-list.dat

View File

@ -1,12 +0,0 @@
# Incomplete List of Contributors
Onionr is created by a team of hard working volunteers.
In no order of importance, these people make Onionr happen:
* [Beardog (Kevin Froman)](https://www.chaoswebs.net/) - Project founder, owner and core developer
* [InvisaMage](https://invisamage.com/) - Web UI Bulma design
* [Arinerron](https://arinerron.com/) - Logger and config modules, testing and other contributions
* [Anhar Ismail](https://github.com/anharismail) - Created Onionr's logo
+ Other contributors and testers

48
CHANGELOG.md Normal file
View File

@ -0,0 +1,48 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [8.0.1] - 2020-12-22
* Fix subprocess in 3.9x with dumb hack
* Dependency bumps
## [8.0.0] - 2020-12-04
* Decrease PoW until better implementation is made
## [7.2.0] - 2020-12-03
* Purge blocks not meeting current pow on startup
* Check block POW before LAN sync
* WSL fixes
## [7.1.0] - 2020-11-23
* Check for ownership of existing dirs in createdirs, this prevents the rare edge case where a user might use a home directory in a location an attacker could write (allowing arbitrary code execution via plugins). This was already partially mitigated by the chmod of the home directory in any case, but this further fixes the issue.
## [7.0.0] - 2020-11-22
* Removed communicator timers
* Removed direct connections and chat (these will be either plugins or separate programs/processes in the future)
## [5.1.0] - 2020-09-07
* Moved plugin web files to be in the plugin folder to reduce staticfiles blueprint coupling
* Added basic sidebar on index page
* Many bug fixes
## [5.0.1] - 2020-08-08
* bumped deadsimplekv to 0.3.2
* bumped urllib3 to 1.25.10
## [5.0.0] - 2020-07-23
- Removed single-process POW support (was only needed on Windows)

View File

@ -1,28 +1,31 @@
FROM python
FROM python:3.10
EXPOSE 8080
#Base settings
ENV HOME /root
USER root
RUN mkdir /app
WORKDIR /app
ENV ONIONR_DOCKER=true
#Install needed packages
RUN apt update && apt install -y tor locales
RUN apt-get update && apt-get install -y tor locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
WORKDIR /srv/
ADD ./requirements.txt /srv/requirements.txt
ADD ./requirements-x86-all-plugins.txt /app/requirements.txt
RUN pip3 install --require-hashes -r requirements.txt
WORKDIR /root/
#Add Onionr source
COPY . /root/
VOLUME /root/data/
COPY . /app/
#Set upstart command
CMD bash
VOLUME /app/data/