erinn
934bfe4f69
timeout downloads
continuous-integration/drone/push Build is pending
Details
continuous-integration/drone/pr Build is pending
Details
2021-11-04 14:28:58 -07:00
erinn
bf1a92528a
file resumption support
2021-11-04 14:07:43 -07:00
erinn
5162561b33
merge
2021-11-02 15:07:24 -07:00
erinn
22ef61a8d5
wip: file retries
2021-11-02 14:30:03 -07:00
Sarah Jamie Lewis
c62ecd6f71
Use length variable, Comment deprecation of GetOnion
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is failing
Details
2021-11-01 14:09:46 -07:00
Sarah Jamie Lewis
ead6a2698f
JoinServer errors should result in Error log
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-10-31 12:17:24 -07:00
Sarah Jamie Lewis
3d2cafd1de
Group Refactor Part 1
...
continuous-integration/drone/push Build is pending
Details
continuous-integration/drone/pr Build is pending
Details
Remove SendMessage* calls in place of a unified interface
Remove Unack*Messages from Group and Store everything in the timeline
2021-10-31 12:12:34 -07:00
Sarah Jamie Lewis
8fead28be9
Prefer public.name when upgrading
continuous-integration/drone/push Build is pending
Details
2021-10-26 14:48:26 -07:00
Sarah Jamie Lewis
65ecbad4d3
Add temporary override for profile.name
continuous-integration/drone/push Build is pending
Details
continuous-integration/drone/pr Build is pending
Details
2021-10-15 13:44:11 -07:00
Sarah Jamie Lewis
ce8d728471
Completely Remove SetAttribute and GetAttribute.
...
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is failing
Details
Also provides backwards compatible upgrade paths for Name and Tag
Moves Constants into Cwtch
2021-10-15 12:40:56 -07:00
Sarah Jamie Lewis
81f9d0b094
Scope/Zone API Fixes per Dan's comments
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-10-08 10:59:32 -07:00
Sarah Jamie Lewis
aec3c40180
Enforced Zoned Attribute Lookups
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-10-07 15:41:11 -07:00
Sarah Jamie Lewis
907a7ca638
File Sharing MVP ( #384 )
...
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/push Build is failing
Details
Co-authored-by: erinn <erinn@openprivacy.ca>
Reviewed-on: #384
Reviewed-by: Dan Ballard <dan@openprivacy.ca>
Co-authored-by: Sarah Jamie Lewis <sarah@openprivacy.ca>
Co-committed-by: Sarah Jamie Lewis <sarah@openprivacy.ca>
2021-09-30 00:57:13 +00:00
Sarah Jamie Lewis
a896456b8e
Revert "lastknownsignature spelling error"
...
continuous-integration/drone/push Build is pending
Details
continuous-integration/drone/pr Build is pending
Details
This reverts commit 56ee30565f
.
2021-09-29 13:52:48 -07:00
erinn
56ee30565f
lastknownsignature spelling error
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-09-02 12:52:45 -07:00
Sarah Jamie Lewis
e099f1bf29
BugFix: Crash when sending a message to a Peer who is not a Contact
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-07-08 12:33:09 -07:00
Sarah Jamie Lewis
8479a89234
Distinguish between Authenticated and Synced for Server Connections
...
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
Also Delete Old Server Code, and Update Integ Test to use Hardcoded Server for now
2021-06-29 15:43:42 -07:00
Sarah Jamie Lewis
a3665af870
Fixes to enable more efficient message syncing / storage
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-06-23 18:30:40 -07:00
Sarah Jamie Lewis
957558165d
Update Server State on ServerStateChangeEvent in addition to individual groups.
2021-06-09 13:26:19 -07:00
Sarah Jamie Lewis
c2ab6af7b8
Allow Updating of Message Flags
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is failing
Details
2021-06-08 15:35:50 -07:00
Sarah Jamie Lewis
d5024e2bd3
a few select staticcheck fixes
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-06-02 12:09:15 -07:00
Sarah Jamie Lewis
d84735cec7
Allow Explicit Server Resyncing
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is failing
Details
2021-06-02 11:13:08 -07:00
Sarah Jamie Lewis
fbd1f98b65
Refine Start Group Event + Auto Accept Self-created Groups
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-05-28 01:47:37 -07:00
Sarah Jamie Lewis
b847fc42b8
Add IndexedError for Peer Messages
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-05-26 10:07:08 -07:00
Sarah Jamie Lewis
08bb2f907f
Replace old GroupID with new Dervied GroupID
...
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
As we move towards a group model that allows for different management
constitutions we need to deprecate our old group security model that relied
on "owners" and transitive signing/verification checks.
This new model derives GroupID from the GroupKey and the GroupServer
binding it both. This allows participants to know if a message was
intended for the same group they are apart of (as GroupID is included
in every encrypted/signed message to Groups) while allowing more dynamic
management protocols to be built on top of the (now agnostic) group protocols.
This PR also adds more validation logic to invites and provides the ValidateInvite
function to allow the UI to validate invites separately from processing them.
2021-05-14 11:26:04 -07:00
Sarah Jamie Lewis
e7fc228cfa
Don't inline group server connections...
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-05-10 16:37:20 -07:00
Sarah Jamie Lewis
00dc2e60e5
Wire up SendMessageToGroupError
...
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
(Also makes this flow much more efficient by including groupId in the round trip)
2021-05-08 12:04:06 -07:00
Sarah Jamie Lewis
0f0b91fc98
Make contact retry more responsive in the optimisitic case
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-05-07 16:16:22 -07:00
Sarah Jamie Lewis
678c820db2
Handle Server Disconnections, and Partial Syncing
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-05-07 15:27:44 -07:00
Sarah Jamie Lewis
924be178af
Actually locally save server attributes
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-05-06 18:14:54 -07:00
Sarah Jamie Lewis
0075d1cd05
Store Server Key Bundle + a few stricter checks
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-05-06 17:15:33 -07:00
Sarah Jamie Lewis
fce22d48a2
Fix Mutex
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-05-04 12:23:25 -07:00
Sarah Jamie Lewis
bea58b5ba4
Groups Cleanup
2021-05-04 12:00:06 -07:00
erinn
c340167b35
add indexed acknowledgements
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-05-03 11:35:35 -07:00
Sarah Jamie Lewis
e119958db1
Reject Group Invite should delete group invite from storage
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-04-28 14:46:01 -07:00
Sarah Jamie Lewis
48335552c9
Add Server Restarts to Contact Retry Plugin
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-04-28 13:50:53 -07:00
Sarah Jamie Lewis
c568044c2c
Encode signatures thorugh the eventbus for NewMessageFromGroup
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-04-23 13:41:52 -07:00
Sarah Jamie Lewis
0ad787d07f
Listen to ProtocolEngineStopped Event and Handle Restart Listen
...
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/pr Build is passing
Details
Also upgrade connectivity and tapir
2021-04-13 15:12:12 -07:00
Sarah Jamie Lewis
296dc22b8e
API for Block/Allow Unknown Connections
...
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This was previously an application level setting handled by the UI. This commit
pushes back that functionality to the profile.
2021-04-06 14:22:36 -07:00
Sarah Jamie Lewis
b268a44287
Break apart CwtchPeer interface to better support testing and analysis
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-03-29 11:53:02 -07:00
Sarah Jamie Lewis
2832d17cb9
Deep Copy Events in the Event Bus to Prevent Map Concurrency Issue
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-03-24 16:07:39 -07:00
Sarah Jamie Lewis
86250564f0
Make ConnectionState a non-static map + Fix PeerApp for Connection-only Events
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2021-03-19 14:23:24 -07:00
Sarah Jamie Lewis
a1b2d8530f
Integrate Group Name into Invite
2020-12-16 21:41:24 -08:00
Sarah Jamie Lewis
62866da84c
Correctly Handle Messages from Unknown Peers
2020-11-12 14:00:18 -08:00
Sarah Jamie Lewis
b3ba23992e
Clean up some older TODOs
2020-11-05 14:44:27 -08:00
Sarah Jamie Lewis
80c6bcead7
Split Peer and Server Connection Launching
2020-10-29 14:23:26 -07:00
erinn
e9e6dc57f3
adding a comment for the linty lint friend
2020-10-22 16:21:33 -07:00
erinn
9c91a89f00
testing new message id id-ea
2020-10-22 16:05:14 -07:00
erinn
e4ab5b543b
bugfix
2020-10-22 16:03:46 -07:00
erinn
509e5c95ba
expose cwtchPeer.Profile.AddMessageToContactTimeline() via StoreMessage()
2020-10-22 16:03:46 -07:00
erinn
5772ce45a4
add cwtchPeer.InitForEvents which allows overriding the default set of eventbus events handles by the peer
2020-10-22 16:03:46 -07:00
Sarah Jamie Lewis
b8d308763c
Sign and Check ToFU Server Bundle
2020-10-01 14:06:30 -07:00
Sarah Jamie Lewis
2d9050346b
Fixing Tor/Server Integration
2020-09-21 15:39:54 -07:00
Sarah Jamie Lewis
d5fb0a5793
Tapir UI Integration First Pass
2020-09-21 14:41:40 -07:00
Sarah Jamie Lewis
8ed7dd471a
Small Fixes
2020-09-21 14:41:40 -07:00
Sarah Jamie Lewis
f74e8647ef
Fixup APIs, Error handling and formatting
2020-09-21 14:41:40 -07:00
Sarah Jamie Lewis
0550a71244
Tapir Server Refactor
2020-09-21 14:41:40 -07:00
Sarah Jamie Lewis
422b0d5deb
Allow Peers to Store History
2020-07-08 15:25:19 -07:00
Dan Ballard
e91e892eef
Adding new authorization level to peers; porting Blocked status to authorization; removing trusted; securing engine/peerapp message processing around authoriztion
2020-06-16 11:34:15 -07:00
Dan Ballard
5f39c1d498
make peer handling of NewRetValMessage optional, as UI handles it fully
2020-04-16 17:00:17 -07:00
Dan Ballard
dc3df531dd
peer getVal/retVal messages and functions and handling
2020-03-27 11:51:52 -07:00
Dan Ballard
12089d9fa4
migrate to stand alone log and connectivity packages
2020-02-10 18:36:28 -05:00
Dan Ballard
258cf84e68
fixing race conditions; removing peer.GetProfile as unsafe
2020-02-04 20:03:43 -05:00
Sarah Jamie Lewis
87a0265142
Merge branch 'peerAdd' of dan/cwtch into master
2019-11-05 14:33:35 -08:00
Dan Ballard
514d25c365
tie peerWithOnion to AddContact
2019-11-05 14:15:56 -08:00
Sarah Jamie Lewis
99ea31ce82
Adding Network Status Plugin + Fixing plugin goroutine leaks
2019-11-01 16:10:10 -07:00
Dan Ballard
b42baef6c5
add get/set attribute for profile/contact/group to cwtch_peer that does the action and emits an event; rename profile.GetGroupByGroupID to GetGroup for consitency
2019-10-31 14:39:31 -07:00
Dan Ballard
77d26d3877
profile and peer messaging refactor. Profiles once again store timelines for peers, should be used as canonical timeline by frontend UI
2019-10-21 13:56:07 -07:00
Dan Ballard
15582c7e79
Rework group invite workflow: delete cwtchPacket references as no longer needed. Remove more events from being default handled by Peer (but allow them for some usecases still (testing, simple apps).
2019-09-20 11:06:05 -07:00
Dan Ballard
bd75e44555
make event.Queue use internal infinite channels; make event.Manager not use failable writes
2019-08-14 14:00:04 -07:00
Sarah Jamie Lewis
3c67c47bb0
Add support for unblocking peers
2019-08-07 12:07:57 -07:00
Dan Ballard
695a622963
adding delete contact and group support
2019-08-07 11:35:08 -07:00
Sarah Jamie Lewis
6e64f65962
First cut of Tapir Integration
2019-07-29 12:49:23 -07:00
Dan Ballard
8c16210407
Add windows stub for pipeBridge to fix windows build; fix goland error arround ConnectionState[Type]
2019-07-26 15:34:21 -07:00
Dan Ballard
0465973a78
add app level functionality to reload from service
2019-07-19 20:08:00 -07:00
Dan Ballard
9f52e5de7b
fixes to pipe bridge: it base64 encodes data of messages before sending them over to preserve binary data; fixed a lack of wiring for ipcBridge in service
2019-07-05 17:51:10 -07:00
Dan Ballard
e1d6dd7253
adding named pipe IPC pipe for use with app client/service; some adjustments to app client/service based on usage by UI; bug fixes: groupInvite json over ipc pipe using json was bugged, 'fixed' with base64 encoding; fixed race condition with peer server connection creation
2019-06-24 18:57:31 -07:00
Dan Ballard
04dd8fa89c
App Client/Service: new IPCBridge type and test gochan impl; new IPC using eventManager; new App Client and Service; some app api changes and a few more events (NewPeer) and errors (Loading errors)
2019-06-11 10:43:03 -07:00
Dan Ballard
0c4bbe9ad1
Refactor: engine and peer decoupled, engine and eventbus now per peer
...
and stored top level in app. Storage has read only mode. Peer and group
state now event based and stored in profiles.
2019-05-22 12:54:47 -07:00
Dan Ballard
1e1cbe6cd8
make engine a interface and private struct, private most methods
2019-05-15 13:07:23 -07:00
Dan Ballard
2b2dcb9f6b
make cwtch responsible for firing joinServer after joining a group; fire a fetch done event
2019-04-23 13:31:57 -07:00
Sarah Jamie Lewis
a210986140
Upgrade SendMessageToGroup to return the signature for UX tracking purposes
2019-02-19 12:20:39 -08:00
Sarah Jamie Lewis
46bab264b4
Adding Accept Invite Flow
2019-02-13 17:57:42 -08:00
Sarah Jamie Lewis
b607293c2d
Fixing json/protobuf confusion
2019-02-12 18:46:23 -08:00
Sarah Jamie Lewis
3f6623bf42
Cutting cruft from import group
2019-02-12 18:04:21 -08:00
erinn
1f5a8685c4
store name of new contacts correctly
2019-02-11 13:40:20 -08:00
Sarah Jamie Lewis
8f3b607053
Fixing New Group Invite flow
2019-02-11 11:09:28 -08:00
Sarah Jamie Lewis
eb2a770085
Fix AddContact
2019-02-04 11:39:58 -08:00
Sarah Jamie Lewis
33a8922e43
Message Store Fix
2019-02-03 17:55:35 -08:00
Sarah Jamie Lewis
2b47c50d0d
Fixing up first time storage and ensuring we no longer dupe messages in timeline
2019-02-02 19:24:42 -08:00
erinn
ac077521be
save new groups and group timelines
2019-02-02 17:18:33 -08:00
Sarah Jamie Lewis
2239463512
ineffassign and misspell
2019-01-28 12:12:33 -08:00
erinn
dcc65f0ffe
iterating on eventbus fields
2019-01-22 11:11:25 -08:00
Sarah Jamie Lewis
dc6cd56098
Defining Event Fields as Constants
2019-01-21 12:22:43 -08:00
Sarah Jamie Lewis
16c8095e5f
Adding Timestamp to Events
...
Also starting to define common event fields to prevent type confusion / spelling issues
2019-01-21 11:56:35 -08:00
erinn
f28cf6b781
removing old timeline notification code and dropping support for updating existing groups
2019-01-19 15:16:38 -08:00
erinn
4f39aec94b
expose app eventbus and message ack IDs
2019-01-15 12:59:54 -08:00
Sarah Jamie Lewis
1028f04ae7
Setting Up Go Module and Fixing Dependency Bug
2019-01-13 15:52:55 -08:00
Sarah Jamie Lewis
849deb14dc
Autoblock Known Blocked Peers
2019-01-08 10:58:01 -08:00
Sarah Jamie Lewis
c3d797b2e1
Protocol Engine Refactor
2019-01-07 13:24:08 -08:00