Commit Graph

25 Commits

Author SHA1 Message Date
M. Mert Yildiran
46f3d290b0 Revert "Revert "Revert "Revert "Revert "Temporarily disable OpenSSL"""""
This reverts commit 57d0584655.
2022-06-02 23:45:13 +03:00
M. Mert Yildiran
57d0584655 Revert "Revert "Revert "Revert "Temporarily disable OpenSSL""""
This reverts commit 6e1bd5d4f3.
2022-06-02 23:07:30 +03:00
M. Mert Yildiran
6e1bd5d4f3 Revert "Revert "Revert "Temporarily disable OpenSSL"""
This reverts commit e5a1de9c71.
2022-06-02 22:54:36 +03:00
M. Mert Yildiran
2492ae1c3b Rename golang_read_write to golang_event 2022-06-02 22:43:51 +03:00
M. Mert Yildiran
e5a1de9c71 Revert "Revert "Temporarily disable OpenSSL""
This reverts commit 2433d867af.
2022-06-02 09:29:51 +03:00
M. Mert Yildiran
2433d867af Revert "Temporarily disable OpenSSL"
This reverts commit f54d9a453f.
2022-06-02 09:18:21 +03:00
M. Mert Yildiran
14107d7169 Add a tracepoint for sys_enter_close to detect socket closes 2022-06-02 08:14:49 +03:00
M. Mert Yildiran
4e8d760a12 Add MIZU_GLOBAL_GOLANG_PATH environment variable 2022-06-01 17:30:29 +03:00
M. Mert Yildiran
f54d9a453f Temporarily disable OpenSSL 2022-05-30 23:29:13 +03:00
M. Mert Yildiran
efc81b9baf Fix exe path finding 2022-05-30 23:27:19 +03:00
M. Mert Yildiran
fcb7663b99 Replace Libssl occurrences with Ssllib for consistency 2022-05-30 22:34:01 +03:00
M. Mert Yildiran
e0a7a04543 Add an environment variable to test Golang locally 2022-05-30 22:32:14 +03:00
M. Mert Yildiran
be1a572f35 Remove unused parameter 2022-05-30 22:27:39 +03:00
M. Mert Yildiran
81a1f50d2c Fix the linter error 2022-05-30 19:22:22 +03:00
M. Mert Yildiran
b91ad2c76c Add golangConnection struct and implement pollGolangReadWrite method 2022-05-30 19:10:16 +03:00
M. Mert Yildiran
2dc40d5976 Add Golang hooks and offsets 2022-05-30 17:07:29 +03:00
M. Mert Yildiran
464aa98f23 Add golang_uprobes.c 2022-05-30 14:20:15 +03:00
David Levanon
57f8a8dca9 Feature/fix tls not listening (#1046)
* avoid chunks with invalid address

* tls tapper should distict between pids

* prettfy tls verbose log and tls key

* support tls from multi threads + duplicate calls to the same target

* introduce fdCache and user address pair as tls key

* remove unused comment

* fix merge conflicts

* use lru for fdcache

* pr fixes - renaming

* fix conflict issue
2022-05-02 21:33:26 +03:00
M. Mert Yıldıran
1de50b0572 Fix the request-response matcher maps iteration in clean() method and share the streams map with the TLS tapper (#1059)
* Fix `panic: interface conversion: api.RequestResponseMatcher is nil, not *http.requestResponseMatcher` error

Also fix the request-response matcher maps iteration in `clean()` method.

* Fix the mocks in the unit tests

* Remove unnecessary fields from `tlsPoller` and implement `SetProtocol` method

* Use concrete types in `tap` package

* Share the streams map with the TLS tapper

* Check interface conversion error
2022-05-01 16:16:22 +03:00
M. Mert Yıldıran
e1ad302c29 Make logger a separate module such that don't depend on shared module as a whole for logging (#1047)
* Make `logger` a separate module such that don't depend on `shared` module as a whole for logging

* Update `Dockerfile`
2022-04-27 22:26:27 +03:00
David Levanon
1213162b85 Add kube namespace to tls (TRA-4443) (#1013)
* add namespace to tls - initial commit
* add tls namespace to mizu entry
2022-04-18 16:12:51 +03:00
David Levanon
590fa08c81 EBPF error handling 2022-03-28 14:19:06 +03:00
David Levanon
763b0e7362 quick tls update pods solution (#918)
Update TLS tappers when tapped pods are updated via WS.
2022-03-24 15:21:56 +02:00
David Levanon
6979441422 tls missing addresses (#825)
* stream seen file descriptors from ebpf

* re-generate bpf object files

* fixing pr comments
2022-03-14 15:40:27 +02:00
David Levanon
87ef469e25 Add tls tapper (#683)
* initial tls tapper commit

* add tls flag to mizu cli

* support ssl_read_ex/ssl_write_ex

* use hostproc to find libssl

* auto discover tls processes

* support libssl1.0

* recompile ebpf with old clang/llvm

* Update tap/passive_tapper.go

Co-authored-by: M. Mert Yıldıran <mehmet@up9.com>

* Update tap/tlstapper/tls_poller.go

Co-authored-by: M. Mert Yıldıran <mehmet@up9.com>

* Update tap/tlstapper/tls_poller.go

Co-authored-by: M. Mert Yıldıran <mehmet@up9.com>

* Update tap/tlstapper/tls_poller.go

Co-authored-by: M. Mert Yıldıran <mehmet@up9.com>

* Update tap/tlstapper/tls_poller.go

Co-authored-by: M. Mert Yıldıran <mehmet@up9.com>

* Update tap/tlstapper/tls_poller.go

Co-authored-by: M. Mert Yıldıran <mehmet@up9.com>

* Update tap/tlstapper/tls_poller.go

Co-authored-by: M. Mert Yıldıran <mehmet@up9.com>

* Update tap/tlstapper/tls_poller.go

Co-authored-by: M. Mert Yıldıran <mehmet@up9.com>

* upgrade ebpf go lib

* handling big tls messages

* fixing max buffer size in ebpf

* remove unused import

* fix linter issues

* minor pr fixes

* compile with old clang

* fix cgroup file format

* pr fixes + cgroup extract enhance

* fix linter

* adding indirect ebpf dep to agent go.mod

* adding ebpf docker builder

* minor pr fixes

* add req resp matcher to dissect

* rename ssl hooks to ssl hooks structs

* move to alpine, use local copy of mizu instead of git, add readme

* use global req resp mather for tls

Co-authored-by: M. Mert Yıldıran <mehmet@up9.com>
Co-authored-by: gadotroee <55343099+gadotroee@users.noreply.github.com>
2022-02-16 15:34:51 +02:00