Commit Graph

50 Commits

Author SHA1 Message Date
M. Mert Yildiran
ea7f529423 Turn TCP reader back into two Goroutines (client and server) 2021-08-25 17:31:52 +03:00
M. Mert Yildiran
b2a07f37a4 Sort extension by priority 2021-08-25 16:13:57 +03:00
M. Mert Yildiran
3ca6437320 Swap TcpID without overwriting it 2021-08-25 16:05:01 +03:00
M. Mert Yildiran
d0f0e187cb Make the TCP reader consists of a single Go routine (instead of two) and try to dissect in both client and server mode by rewinding 2021-08-25 15:39:03 +03:00
M. Mert Yildiran
842122b5a1 Refactor the protocol payload structs 2021-08-23 17:06:35 +03:00
M. Mert Yildiran
674041f014 Fix one more issue in HTTP POST data 2021-08-23 00:21:12 +03:00
M. Mert Yildiran
4cd5fc25fd Fix the issues in HTTP POST data 2021-08-22 23:50:48 +03:00
M. Mert Yildiran
60a6be677f Fix the read errors that freezes the sniffer in HTTP and Kafka 2021-08-22 22:44:11 +03:00
M. Mert Yildiran
6f84138eb7 Fix the issues in summary section of details layout for HTTP/2 (gRPC) protocol 2021-08-22 20:46:17 +03:00
M. Mert Yildiran
e90fd58d5e Fix the issues in analysis and representation of HTTP/2 (gRPC) protocol 2021-08-22 19:50:27 +03:00
M. Mert Yildiran
820dc09976 Introduce Version field to Protocol struct for dynamically switching the HTTP protocol to HTTP/2 2021-08-22 18:35:17 +03:00
M. Mert Yildiran
2c827fc524 Remove the unnecessary logging 2021-08-22 17:24:19 +03:00
M. Mert Yildiran
494af0c8c7 Remove everything HTTP related from the tap package and make the extension system fully functional 2021-08-21 10:00:02 +03:00
M. Mert Yildiran
d20cc1412b Make the protocol color affect the details layout color and write protocol abbreviation vertically 2021-08-21 09:06:53 +03:00
M. Mert Yildiran
c5969c267e Add Represent method to the Dissector interface and manipulate the UI through this method 2021-08-21 08:19:09 +03:00
M. Mert Yildiran
03099edfc1 Display the protocol name inside the details layout 2021-08-21 03:55:42 +03:00
M. Mert Yildiran
3dff8b48f7 Refactor BaseEntryDetails struct and display the source and destination ports in the UI 2021-08-21 02:47:08 +03:00
M. Mert Yildiran
ccb924f507 Add Protocol struct and make it effect the UI 2021-08-21 00:47:47 +03:00
M. Mert Yildiran
c668680f54 Add Analyze method to the Dissector interface and MizuEntry to the extension API 2021-08-20 21:34:44 +03:00
M. Mert Yildiran
3b0502180f Add Summarize() method to the Dissector interface 2021-08-20 19:19:32 +03:00
M. Mert Yildiran
f97e7c4793 Move loadExtensions into main.go and map extensions into extensionsMap 2021-08-20 18:30:21 +03:00
M. Mert Yildiran
461bcf9f24 Marshal and unmarshal *http.Request, *http.Response pairs 2021-08-20 03:00:55 +03:00
M. Mert Yildiran
fb56106741 Connect OutputChannelItem to the last WebSocket means that finally the web UI started to work again 2021-08-20 01:28:12 +03:00
M. Mert Yildiran
061cb098e9 Introduce HTTPPayload struct and HTTPPayloader interface to MarshalJSON() all the data structures that are returned by the HTTP protocol 2021-08-19 21:38:18 +03:00
Roee Gadot
58deed9eab no message 2021-08-19 09:14:33 +03:00
Roee Gadot
f078aa6c36 remove some unwanted code 2021-08-19 09:12:59 +03:00
M. Mert Yildiran
d7c3b04bcc Set ConnectionInfo in HTTP handlers 2021-08-18 11:14:29 +03:00
M. Mert Yildiran
902b6bff87 Fix the HTTP1 handlers 2021-08-18 10:45:31 +03:00
M. Mert Yildiran
9fd069a4ff Add Emitter interface to the API and send OutputChannelItem(s) to OutputChannel 2021-08-18 10:30:55 +03:00
M. Mert Yildiran
2d188c2dc9 Fix the issues that are introduced by the merge conflict 2021-08-18 09:21:38 +03:00
Roee Gadot
77783a58e9 roee changes -
trying to fix agent to work with the "api" object) - ***still not working***
2021-08-18 08:28:22 +03:00
M. Mert Yildiran
e1267b6c44 Call a function pointer to emit dissected data back to the tap package 2021-08-18 08:11:32 +03:00
M. Mert Yildiran
b1f20fea1e Fix the issues in handleHTTP1ClientStream and handleHTTP1ServerStream 2021-08-18 07:18:22 +03:00
M. Mert Yildiran
c3357aa9ed Bring back the gRPC-HTTP/2 parser 2021-08-18 06:15:16 +03:00
M. Mert Yildiran
6b584c4c3f Return a *api.RequestResponsePair from the dissection 2021-08-17 15:06:27 +03:00
M. Mert Yildiran
9a2edbac56 Bring back the HTTP request-response pair matcher 2021-08-17 14:53:32 +03:00
M. Mert Yildiran
90278bb754 Dissect HTTP response from inside the HTTP extension 2021-08-17 13:49:11 +03:00
M. Mert Yildiran
611c92a6d4 Make the distinction of outbound and inbound ports 2021-08-17 13:40:15 +03:00
M. Mert Yildiran
b384b62ac5 Dissect HTTP request from inside the HTTP extension 2021-08-17 13:24:42 +03:00
M. Mert Yildiran
4e4644d3ce Declare the Dissect function in the extension API 2021-08-17 09:23:19 +03:00
M. Mert Yildiran
5ce85f4162 Set the extension name inside the extension 2021-08-17 09:10:50 +03:00
M. Mert Yildiran
5c0a7d907a Add support of defining multiple ports to the extension API 2021-08-17 08:47:59 +03:00
M. Mert Yildiran
3410a6067c Implement the run() function for the TCP stream 2021-08-17 08:43:16 +03:00
M. Mert Yildiran
bfa9d9960f Start to define the extension API 2021-08-17 07:48:25 +03:00
M. Mert Yildiran
95a9ee7571 Add a build script to automatically build extensions from a known path and load them 2021-08-17 05:56:56 +03:00
M. Mert Yildiran
e1167c4065 Remove github.com/up9inc/mizu/tap/extensions/http/lib 2021-08-17 05:34:59 +03:00
M. Mert Yildiran
2166801910 Remove grpc_assembler.go 2021-08-17 05:19:12 +03:00
M. Mert Yildiran
790ba30654 Replace orcaman/concurrent-map with sync.Map 2021-08-17 05:12:44 +03:00
M. Mert Yildiran
2c7e857075 Move HTTP files into tap/extensions/lib for now 2021-08-17 04:02:48 +03:00
M. Mert Yildiran
648a4d21f3 Move extensions folder into tap folder 2021-08-17 02:34:54 +03:00