[PR #12] Initial work on adding audit capabilities to lottip #12

Open
opened 2026-02-26 10:34:30 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/orderbynull/lottip/pull/12
Author: @rkoshy
Created: 6/24/2022
Status: 🔄 Open

Base: masterHead: master


📝 Commits (10+)

📊 Changes

23 files changed (+1349 additions, -1421 deletions)

View changed files

📝 chat/client.go (+2 -2)
client_to_server_handler.go (+37 -0)
docker/.gitattributes (+2 -0)
📝 docker/Dockerfile (+9 -10)
📝 docker/run.sh (+23 -4)
📝 fs.go (+318 -94)
fsm.go (+207 -0)
go.mod (+24 -0)
📝 http.go (+8 -5)
logger.go (+88 -0)
📝 main.go (+95 -10)
packetizer.go (+60 -0)
📝 protocol/const.go (+12 -12)
protocol/decoder.go (+0 -608)
protocol/decoder_test.go (+0 -391)
protocol/packet.go (+0 -215)
📝 proxy.go (+115 -67)
server_to_client_handler.go (+193 -0)
web/css/prism.css (+143 -0)
📝 web/css/style.css (+1 -1)

...and 3 more files

📄 Description

This is not meant to be clean code -- it's structurally sound, but was more interested in getting something working for our needs. It may be worth cleaning up.

  1. Added packetization and processing code so that individual packets could be analyzed, rather than entire TCP buffers. This also accounts for partial packets in the stream.
  2. Beginnings of "Stateful Packet" inspection and logging of connection + user
  3. Blocks certain commands - should really be configurable.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/orderbynull/lottip/pull/12 **Author:** [@rkoshy](https://github.com/rkoshy) **Created:** 6/24/2022 **Status:** 🔄 Open **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`6a59be4`](https://github.com/orderbynull/lottip/commit/6a59be4f1d7de13840b1a231b60bd6a52d6a5505) Updated pingPeriod and writeDeadlinePeriod - [`b250cb5`](https://github.com/orderbynull/lottip/commit/b250cb5727b300e72fea3b04d1f61b19e52ef555) Updated Dockerfile - [`47060c2`](https://github.com/orderbynull/lottip/commit/47060c2c8e3b0610e0cf7766d0595ea590336111) Added .gitattributes to docker -folder - [`6fa5f0e`](https://github.com/orderbynull/lottip/commit/6fa5f0eaeb1b56c557fcbdb314e030efd3fc1f75) Update run.sh - [`6869848`](https://github.com/orderbynull/lottip/commit/6869848f7f34c16d12d0ac01d9f4b91ec5ff9cc2) Replaced imports - [`8e0e02a`](https://github.com/orderbynull/lottip/commit/8e0e02a6a1cd2208b17e9f6957013fe812764959) Updated title - [`f5e18c5`](https://github.com/orderbynull/lottip/commit/f5e18c5a846e1ed22bef19423a2c41797892cb11) Added prism - [`68a5a19`](https://github.com/orderbynull/lottip/commit/68a5a1954f5bfc06d161edea048ee0ffd0af7e33) Add log to request and response - [`bfcb813`](https://github.com/orderbynull/lottip/commit/bfcb813ed4b58fc03320aa805866a5757a99b405) Fix run.sh to run lottip from /root/go/bin - [`3d89e89`](https://github.com/orderbynull/lottip/commit/3d89e89b6b5ef20f2e92d087aeb391ef1134c261) Remove src ### 📊 Changes **23 files changed** (+1349 additions, -1421 deletions) <details> <summary>View changed files</summary> 📝 `chat/client.go` (+2 -2) ➕ `client_to_server_handler.go` (+37 -0) ➕ `docker/.gitattributes` (+2 -0) 📝 `docker/Dockerfile` (+9 -10) 📝 `docker/run.sh` (+23 -4) 📝 `fs.go` (+318 -94) ➕ `fsm.go` (+207 -0) ➕ `go.mod` (+24 -0) 📝 `http.go` (+8 -5) ➕ `logger.go` (+88 -0) 📝 `main.go` (+95 -10) ➕ `packetizer.go` (+60 -0) 📝 `protocol/const.go` (+12 -12) ➖ `protocol/decoder.go` (+0 -608) ➖ `protocol/decoder_test.go` (+0 -391) ➖ `protocol/packet.go` (+0 -215) 📝 `proxy.go` (+115 -67) ➕ `server_to_client_handler.go` (+193 -0) ➕ `web/css/prism.css` (+143 -0) 📝 `web/css/style.css` (+1 -1) _...and 3 more files_ </details> ### 📄 Description This is not meant to be clean code -- it's structurally sound, but was more interested in getting something working for our needs. It may be worth cleaning up. 1. Added packetization and processing code so that individual packets could be analyzed, rather than entire TCP buffers. This also accounts for partial packets in the stream. 2. Beginnings of "Stateful Packet" inspection and logging of connection + user 3. Blocks certain commands - should really be configurable. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lottip#12
No description provided.