This project is mirrored from https://gitee.com/mirrors/Mizu.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 26 Mar, 2022 1 commit
  2. 03 Mar, 2022 1 commit
  3. 16 Feb, 2022 3 commits
  4. 09 Feb, 2022 2 commits
    • gadotroee's avatar
    • M. Mert Yıldıran's avatar
      Add unit tests for HTTP dissector (#767) · db427d91
      M. Mert Yıldıran authored
      * Add unit tests for HTTP dissector
      
      * Ignore some fields on test environment
      
      * Remove Git patches
      
      * Don't have indent in the expected JSONs
      
      * Fix more issues and update expected JSONs
      
      * Refactor the test environment lookup
      
      * Add a Makefile
      
      * Include HTTP tests into the CI
      
      * Fix the linting errors
      
      * Fix another linting error
      
      * Update the expected JSONs
      
      * Sort `PostData.Params` params as well
      
      * Move expected JSONs into `expect/dissect`
      
      * Add `TestAnalyze` method
      
      * Add `TestRepresent` method
      
      * Add `TestRegister`, `TestMacros` and `TestPing` methods
      
      * Test extensions first
      
      * Remove expected JSONs
      
      * Remove `bin` directory and update `Makefile` rules
      
      * Update `.gitignore`
      
      * Fix skipping download functionality in the Makefile
      
      * Run `go mod tidy`
      
      * Fix the race condition in the tests
      
      * Revert "Test extensions first"
      
      This reverts commit b8350cf1.
      
      * Make `TEST_UPDATE` e...
      db427d91
  5. 08 Feb, 2022 1 commit
  6. 07 Feb, 2022 1 commit
  7. 06 Feb, 2022 1 commit
  8. 31 Jan, 2022 1 commit
  9. 25 Jan, 2022 1 commit
    • M. Mert Yıldıran's avatar
      Add ARM64 and cross-compilation support to the agent image (#659) · a9a61edd
      M. Mert Yıldıran authored
      * modified Dockerfile to work for both amd64 (Intel) and arm64 (M1)
      
      * added changelog
      
      * Update `Dockerfile` to have `ARCH` build argument
      
      * Remove `docs/CHANGES.md`
      
      * Upgrade the Basenine version from `v0.3.0` to `v0.4.6`
      
      * Update `publish.yml` to have `ARCH` build argument
      
      * Switch `BasenineImageRepo` to Docker Hub
      
      * Have separate build arguments for `ARCH` and `GOARCH`
      
      * Upgrade the Basenine version from `v0.4.6` to `v0.4.10`
      
      * Oops forgot to update the 10th duplicated shell script
      
      * Fix the oopsie and reduce duplications
      
      * Fix `Dockerfile`
      
      * Fix the incompatibility issue between Go plugins and gold linker in Alpine inside `Dockerfile`
      
      * Fix `asm: xxhash_amd64.s:120: when dynamic linking, R15 is clobbered by a global variable access` error
      
      * Update `Dockerfile` to have cross-compilation on an AMD64 machine
      
      Also revert changes in the shell scripts
      
      * Delete `debug.Dockerfile`
      
      * Create a custom base (`debian:buster-slim` based) image for the shipped image
      
      * Replace `mertyildiran/debian-pcap` with `up9inc/debian-pcap`
      
      * Upgrade Basenine version to `v0.4.12`
      
      * Use `debian:stable-slim` as the base
      
      * Fix the indentation in the `Dockerfile`
      
      * Update `publish.yml`
      
      * Enable `publish.yml` for `feature/multiarch_build` branch
      
      * Tag correctly and set `ARCH` Docker argument
      
      * Remove the lines that are forgotten to be removed from the shell scripts
      
      * Add `MizuAgentImageRepo` constant and use it as default `AgentImage` value
      
      * Bring back `Set up Cloud SDK` step to `Build the CLI and publish` job
      
      * Build ARM64 CLI for Linux as well
      
      * Revert "Enable `publish.yml` for `feature/multiarch_build` branch"
      
      This reverts commit d30be4c1.
      
      * Revert Go 1.17 upgrade
      
      * Remove `build_extensions_debug.sh` as well
      
      * Make the `Dockerfile` to compile the agent statically
      
      * Statically link the protocol extensions
      
      * Fix `Dockerfile`
      
      * Bring back `-s -w` flags
      
      * Verify the signatures of the downloads in `dockcross/linux-arm64-musl`
      
      * Revert modifications in some shell scripts
      
      * Make the `BUILDARCH` and `TARGETARCH` separation in the `Dockerfile`
      
      * Separate cross-compilation builder image into a separate repo named `up9inc/linux-arm64-musl-go-libpcap`
      
      * Fill the shell script and specify the tag for `dockcross/linux-arm64-musl`
      
      * Remove the unnecessary dependencies from `builder-native-base`
      
      * Improve the comments in the `Dockerfile`
      
      * Upgrade Basenine version to `v0.4.13`
      
      * Fix `Dockerfile`
      
      * Revert "Revert "Enable `publish.yml` for `feature/multiarch_build` branch""
      
      This reverts commit 303e466b.
      
      * Revert "Revert "Revert "Enable `publish.yml` for `feature/multiarch_build` branch"""
      
      This reverts commit 0fe252bb
      
      .
      
      * Remove `push-docker-debug` from the `Makefile`
      
      * Rename `publish.yml` to `release.yml`
      Co-authored-by: default avatarAlex Haiut <alex@up9.com>
      a9a61edd
  10. 12 Jan, 2022 1 commit
  11. 27 Oct, 2021 1 commit
  12. 15 Sep, 2021 1 commit
  13. 02 Sep, 2021 1 commit
    • M. Mert Yıldıran's avatar
      Refactor Mizu, define an extension API and add new protocols: AMQP, Kafka (#224) · 366c1d0c
      M. Mert Yıldıran authored
      * Separate HTTP related code into `extensions/http` as a Go plugin
      
      * Move `extensions` folder into `tap` folder
      
      * Move HTTP files into `tap/extensions/lib` for now
      
      * Replace `orcaman/concurrent-map` with `sync.Map`
      
      * Remove `grpc_assembler.go`
      
      * Remove `github.com/up9inc/mizu/tap/extensions/http/lib`
      
      * Add a build script to automatically build extensions from a known path and load them
      
      * Start to define the extension API
      
      * Implement the `run()` function for the TCP stream
      
      * Add support of defining multiple ports to the extension API
      
      * Set the extension name inside the extension
      
      * Declare the `Dissect` function in the extension API
      
      * Dissect HTTP request from inside the HTTP extension
      
      * Make the distinction of outbound and inbound ports
      
      * Dissect HTTP response from inside the HTTP extension
      
      * Bring back the HTTP request-response pair matcher
      
      * Return a `*api.RequestResponsePair` from the dissection
      
      * Bring back the gRPC-HTTP/2 parser
      
      * Fix the issues in `handleHTTP1ClientStream` and `handleHTTP1ServerStream`
      
      * Call a function pointer to emit dissected data back to the `tap` package
      
      * roee changes -
      trying to fix agent to work with the "api" object) - ***still not working***
      
      * small mistake in the conflicts
      
      * Fix the issues that are introduced by the merge conflict
      
      * Add `Emitter` interface to the API and send `OutputChannelItem`(s) to `OutputChannel`
      
      * Fix the `HTTP1` handlers
      
      * Set `ConnectionInfo` in HTTP handlers
      
      * Fix the `Dockerfile` to build the extensions
      
      * remove some unwanted code
      
      * no message
      
      * Re-enable `getStreamProps` function
      
      * Migrate back from `gopacket/tcpassembly` to `gopacket/reassembly`
      
      * Introduce `HTTPPayload` struct and `HTTPPayloader` interface to `MarshalJSON()` all the data structures that are returned by the HTTP protocol
      
      * Read `socketHarOutChannel` instead of `filteredHarChannel`
      
      * Connect `OutputChannelItem` to the last WebSocket means that finally the web UI started to work again
      
      * Add `.env.example` to React app
      
      * Marshal and unmarshal `*http.Request`, `*http.Response` pairs
      
      * Move `loadExtensions` into `main.go` and map extensions into `extensionsMap`
      
      * Add `Summarize()` method to the `Dissector` interface
      
      * Add `Analyze` method to the `Dissector` interface and `MizuEntry` to the extension API
      
      * Add `Protocol` struct and make it effect the UI
      
      * Refactor `BaseEntryDetails` struct and display the source and destination ports in the UI
      
      * Display the protocol name inside the details layout
      
      * Add `Represent` method to the `Dissector` interface and manipulate the UI through this method
      
      * Make the protocol color affect the details layout color and write protocol abbreviation vertically
      
      * Remove everything HTTP related from the `tap` package and make the extension system fully functional
      
      * Fix the TypeScript warnings
      
      * Bring in the files related AMQP into `amqp` directory
      
      * Add `--nodefrag` flag to the tapper and bring in the main AMQP code
      
      * Implement the AMQP `BasicPublish` and fix some issues in the UI when the response payload is missing
      
      * Implement `representBasicPublish` method
      
      * Fix several minor issues
      
      * Implement the AMQP `BasicDeliver`
      
      * Implement the AMQP `QueueDeclare`
      
      * Implement the AMQP `ExchangeDeclare`
      
      * Implement the AMQP `ConnectionStart`
      
      * Implement the AMQP `ConnectionClose`
      
      * Implement the AMQP `QueueBind`
      
      * Implement the AMQP `BasicConsume`
      
      * Fix an issue in `ConnectionStart`
      
      * Fix a linter error
      
      * Bring in the files related Kafka into `kafka` directory
      
      * Fix the build errors in Kafka Go files
      
      * Implement `Dissect` method of Kafka and adapt request-response pair matcher to asynchronous client-server stream
      
      * Do the "Is reversed?" checked inside `getStreamProps` and fix an issue in Kafka `Dissect` method
      
      * Implement `Analyze`, `Summarize` methods of Kafka
      
      * Implement the representations for Kafka `Metadata`, `RequestHeader` and `ResponseHeader`
      
      * Refactor the AMQP and Kafka implementations to create the summary string only inside the `Analyze` method
      
      * Implement the representations for Kafka `ApiVersions`
      
      * Implement the representations for Kafka `Produce`
      
      * Implement the representations for Kafka `Fetch`
      
      * Implement the representations for Kafka `ListOffsets`, `CreateTopics` and `DeleteTopics`
      
      * Fix the encoding of AMQP `BasicPublish` and `BasicDeliver` body
      
      * Remove the unnecessary logging
      
      * Remove more logging
      
      * Introduce `Version` field to `Protocol` struct for dynamically switching the HTTP protocol to HTTP/2
      
      * Fix the issues in analysis and representation of HTTP/2 (gRPC) protocol
      
      * Fix the issues in summary section of details layout for HTTP/2 (gRPC) protocol
      
      * Fix the read errors that freezes the sniffer in HTTP and Kafka
      
      * Fix the issues in HTTP POST data
      
      * Fix one more issue in HTTP POST data
      
      * Fix an infinite loop in Kafka
      
      * Fix another freezing issue in Kafka
      
      * Revert "UI Infra - Support multiple entry types + refactoring (#211)"
      
      This reverts commit f74a52d4.
      
      * Fix more issues that are introduced by the merge
      
      * Fix the status code in the summary section
      
      * adding the cleaner again (why we removed it?).
      add TODO: on the extension loop .
      
      * fix dockerfile (remove deleting .env file) - it is found in dockerignore and fails to build if the file not exists
      
      * fix GetEntrties ("/entries" endpoint) - working with "tapApi.BaseEntryDetail" (moved from shared)
      
      * Fix an issue in the UI summary section
      
      * Refactor the protocol payload structs
      
      * Fix a log message in the passive tapper
      
      * Adapt `APP_PORTS` environment variable to the new extension system and change its format to `APP_PORTS='{"http": ["8001"]}' `
      
      * Revert "fix dockerfile (remove deleting .env file) - it is found in dockerignore and fails to build if the file not exists"
      
      This reverts commit 4f514ae1.
      
      * Bring in the necessary changes from f74a52d4
      
      * Open the API server URL in the web browser as soon as Mizu is ready
      
      * 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
      
      * Swap `TcpID` without overwriting it
      
      * Sort extension by priority
      
      * Try to dissect with looping through all the extensions
      
      * fix getStreamProps function.
      (it should be passed from CLI as it was before).
      
      * Turn TCP reader back into two Goroutines (client and server)
      
      * typo
      
      * Learn `isClient` from the TCP stream
      
      * Set `viewer` style `overflow: "auto"`
      
      * Fix the memory leaks in AMQP and Kafka dissectors
      
      * Revert some of the changes in be7c65eb
      
      * Remove `allExtensionPorts` since it's no longer needed
      
      * Remove `APP_PORTS` since it's no longer needed
      
      * Fix all of the minor issues in the React code
      
      * Check Kafka header size and fail-fast
      
      * Break the dissectors loop upon a successful dissection
      
      * Don't break the dissector loop. Protocols might collide
      
      * Improve the HTTP request-response counter (still not perfect)
      
      * Make the HTTP request-response counter perfect
      
      * Revert "Revert some of the changes in be7c65eb"
      
      This reverts commit 08e7d786.
      
      * Bring back `filterItems` and `isHealthCheckByUserAgent` functions
      
      * Remove some development artifacts
      
      * remove unused and commented lines that are not relevant
      
      * Fix the performance in TCP stream factory. Make it create two `tcpReader`(s) per extension
      
      * Change a log to debug
      
      * Make `*api.CounterPair` a field of `tcpReader`
      
      * Set `isTapTarget` to always `true` again since `filterAuthorities` implementation has problems
      
      * Remove a variable that's only used for logging even though not introduced by this branch
      
      * Bring back the `NumberOfRules` field of `ApplicableRules` struct
      
      * Remove the unused `NewEntry` function
      
      * Move `k8sResolver == nil` check to a more appropriate place
      
      * default healthChecksUserAgentHeaders should be empty array (like the default config value)
      
      * remove spam console.log
      
      * Rules button cause app to crash (access the service via incorrect property)
      
      * Ignore all .env* files in docker build.
      
      * Better caching in dockerfile: only copy go.mod before go mod download.
      
      * Check for errors while loading an extension
      
      * Add a comment about why `Protocol` is not a pointer
      
      * Bring back the call to `deleteOlderThan`
      
      * Remove the `nil` check
      
      * Reduce the maximum allowed AMQP message from 128MB to 1MB
      
      * Fix an error that only occurs when a Kafka broker is initiating
      
      * Revert the change in b2abd7b9
      
      
      
      * Fix the service name resolution in all protocols
      
      * Remove the `anydirection` flag and fix the issue in `filterAuthorities`
      
      * Pass `sync.Map` by reference to `deleteOlderThan` method
      
      * Fix the packet capture issue in standalone mode that's introduced by the removal of `anydirection`
      
      * Temporarily resolve the memory exhaustion in AMQP
      
      * Fix a nil pointer dereference error
      
      * Fix the CLI build error
      
      * Fix a memory leak that's identified by `pprof`
      Co-authored-by: default avatarRoee Gadot <roee.gadot@up9.com>
      Co-authored-by: default avatarNimrod Gilboa Markevich <nimrod@up9.com>
      366c1d0c
  14. 18 Aug, 2021 1 commit
  15. 12 Aug, 2021 1 commit
  16. 11 Aug, 2021 1 commit
  17. 09 Aug, 2021 1 commit
  18. 05 Aug, 2021 1 commit
  19. 03 Aug, 2021 2 commits
  20. 22 Jul, 2021 1 commit
  21. 23 May, 2021 1 commit
  22. 10 May, 2021 1 commit
  23. 09 May, 2021 2 commits
    • gadotroee's avatar
      Build push image to the right place and adjust makefile to use script (#35) · c3d0941d
      gadotroee authored
      * build push docker image
      
      * Update build-push-featurebranch.sh
      c3d0941d
    • gadotroee's avatar
      0.9 (#37) · d21297bc
      gadotroee authored
      
      * Update .gitignore
      
      * WIP
      
      * WIP
      
      * Update README.md, root.go, and 4 more files...
      
      * Update README.md
      
      * Update README.md
      
      * Update root.go
      
      * Update provider.go
      
      * Update provider.go
      
      * Update root.go, go.mod, and go.sum
      
      * Update mizu.go
      
      * Update go.sum and provider.go
      
      * Update portForward.go, watch.go, and mizu.go
      
      * Update README.md
      
      * Update watch.go
      
      * Update mizu.go
      
      * Update mizu.go
      
      * no message
      
      * no message
      
      * remove unused things and use external for object id (instead of copy)
      
      * no message
      
      * Update mizu.go
      
      * Update go.mod, go.sum, and 2 more files...
      
      * no message
      
      * Update README.md, go.mod, and resolver.go
      
      * Update README.md
      
      * Update go.mod
      
      * Update loader.go
      
      * some refactor
      
      * Update loader.go
      
      * no message
      
      * status to statusCode
      
      * return data directly
      
      * Traffic viewer
      
      * cleaning
      
      * css
      
      * no message
      
      * Clean warnings
      
      * Makefile - first draft
      
      * Update Makefile
      
      * Update Makefile
      
      * Update Makefile, README.md, and 4 more files...
      
      * Add api build and clean to makefile (files restructure) (#9)
      
      * no message
      * add clean api command
      
      * no message
      
      * stating with web socket
      
      * Add tap as a separate executable (#10)
      
      * Added tap.
      
      * Ignore build directories.
      
      * Added tapper build to Makefile.
      
      * Improvements  (#12)
      
      * no message
      
      * no message
      
      * Feature/makefile (#11)
      
      * minor fixes
      
      * makefile fixes - docker build
      
      * minor fix in Makefile
      Co-authored-by: default avatarAlex Haiut <alex@up9.com>
      
      * Update Dockerfile, multi-runner.sh, and 31 more files...
      
      * Update multi-runner.sh
      
      * no message
      
      * Update .dockerignore, Dockerfile, and 30 more files...
      
      * Update cleaner.go, grpc_assembler.go, and 2 more files...
      
      * start the pod with host network and privileged
      
      * fix multi runner passive tapper command
      
      * add HOST_MODE env var
      
      * do not return true in the should tap function
      
      * remove line in the end
      
      * default value in api is input
      fix description and pass the parameter in the multi runner script
      
      * missing flag.parse
      
      * no message
      
      * fix image
      
      * Create main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Update main.yml
      
      * Small fixes - permission + har writing exception (#17)
      
      * Select node by pod (#18)
      
      * Select node by pod.
      
      * Removed watch pod by regex. Irrelevant for now.
      
      * Changed default image to develop:latest.
      
      * Features/clifix (#19)
      
      * makefile fixes - docker build
      
      * readme update, CLI usage fix
      
      * added chmod
      Co-authored-by: default avatarAlex Haiut <alex@up9.com>
      
      * meta information
      
      * Only record traffic of the requested pod. Filtered by pod IP. (#21)
      
      * fixed readme and reduced batch size to 5 (#22)
      Co-authored-by: default avatarAlex Haiut <alex@up9.com>
      
      * API and TAP in single process  (#24)
      
      * no message
      * no message
      
      * CLI make --pod required flag and faster api image build (#25)
      
      * makefile fixes - docker build
      
      * readme update, CLI usage fix
      
      * added chmod
      
      * typo
      
      * run example incorreect in makefile
      
      * no message
      
      * no message
      
      * no message
      Co-authored-by: default avatarAlex Haiut <alex@up9.com>
      
      * Reduce delay between tap and UI - Skip dump to file (#26)
      
      * Pass HARs between tap and api via channel.
      
      * Fixed make docker commad.
      
      * Various fixes.
      
      * Added .DS_Store to .gitignore.
      
      * Parse flags in Mizu main instead of in tap_output.go.
      
      * Use channel to pass HAR by default instead of files.
      
      * Infinite scroll (#28)
      
      * no message
      
      * infinite scroll + new ws implementation
      
      * no message
      
      * scrolling top
      
      * fetch button
      
      * more Backend changes
      
      * fix go mod and sum
      
      * mire fixes against develop
      
      * unused code
      
      * small ui refactor
      Co-authored-by: default avatarRoee Gadot <roee.gadot@up9.com>
      
      * Fix gRPC crash, display gRPC as base64, display gRPC URL and status code (#27)
      
      * Added Method (POST) and URL (emtpy) to gRPC requests.
      
      * Removed quickfix that skips writing HTTP/2 to HAR.
      
      * Use HTTP/2 body to fill out http.Request and htt.Response.
      
      * Make sure that in HARs request.postData.mimeType and response.content.mimeType are application/grpc in case of grpc.
      
      * Comment.
      
      * Add URL and status code for gRPC.
      
      * Don't assume http scheme.
      
      * Use http.Header.Set instead of manually acccessing the underlaying map.
      
      * General stats api fix  (#29)
      
      * refactor and validation
      
      * Show gRPC as ASCII (#31)
      
      * Moved try-catch up one block.
      
      * Display grpc as ASCII.
      
      * Better code in entries fetch endpoint (#30)
      
      * no message
      * no message
      
      * Feature/UI/filters (#32)
      
      * UI filters
      
      * refactor
      
      * Revert "refactor"
      
      This reverts commit 70e7d4b6acf2e214f95c7b497a6043ee3b3f2086.
      
      * remove recursive func
      
      * CLI cleanup (#33)
      
      * Moved cli root command to tap subcommand.
      
      * tap subcommand works.
      
      * Added view and fetch placeholders.
      
      * Updated descriptions.
      
      * Fixed indentation.
      
      * Added versio subcommand.
      
      * Removed version flag.
      
      * gofmt.
      
      * Changed pod from flag to arg.
      
      * Commented out "all namespaces" flag.
      
      * CLI cleanup 2 (#34)
      
      * Renamed dashboard -> GUI/web interface.
      
      * Commented out --quiet, removed unused config variables.
      
      * Quiter output when calling unimplemented subcommands.
      
      * Leftovers from PR #30 (#36)
      Co-authored-by: default avatarup9-github <info@up9.com>
      Co-authored-by: default avatarRamiBerm <54766858+RamiBerm@users.noreply.github.com>
      Co-authored-by: default avatarLiraz Yehezkel <lirazy@up9.com>
      Co-authored-by: default avatarAlex Haiut <alex@testr.io>
      Co-authored-by: default avatarlirazyehezkel <61656597+lirazyehezkel@users.noreply.github.com>
      Co-authored-by: default avatarAlex Haiut <alex@up9.com>
      Co-authored-by: default avatarnimrod-up9 <59927337+nimrod-up9@users.noreply.github.com>
      Co-authored-by: default avatarRamiBerm <rami.berman@up9.com>
      Co-authored-by: default avatarAlex Haiut <alex.haiut@gmail.com>
      d21297bc
  24. 03 May, 2021 1 commit
    • nimrod-up9's avatar
      Reduce delay between tap and UI - Skip dump to file (#26) · b0313491
      nimrod-up9 authored
      * Pass HARs between tap and api via channel.
      
      * Fixed make docker commad.
      
      * Various fixes.
      
      * Added .DS_Store to .gitignore.
      
      * Parse flags in Mizu main instead of in tap_output.go.
      
      * Use channel to pass HAR by default instead of files.
      b0313491
  25. 28 Apr, 2021 3 commits
  26. 27 Apr, 2021 1 commit