Commit graph

1045 commits

Author SHA1 Message Date
WaterWhisperer
38ae296b1b add unit tests for g3-cert-agent, g3-runtime and g3-types
Some checks are pending
CodeCoverage / lib unit test (push) Waiting to run
CodeCoverage / g3mkcert test (push) Waiting to run
CodeCoverage / g3keymess test (push) Waiting to run
CodeCoverage / g3proxy test (push) Waiting to run
CodeCoverage / g3bench test (push) Waiting to run
CodeCoverage / g3statsd test (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (java-kotlin) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
CrossCompiling / Build (push) Waiting to run
Linux-CI / Build (push) Waiting to run
Linux-CI / Clippy (push) Waiting to run
Linux-CI / Build vendored (push) Waiting to run
Linux-CI / Build with OpenSSL Async Job (push) Waiting to run
MacOS-CI / Build (push) Waiting to run
MacOS-CI / Build vendored (push) Waiting to run
StaticLinking / musl (push) Waiting to run
StaticLinking / msvc (push) Waiting to run
Windows-CI / Build (push) Waiting to run
Windows-CI / Build vendored (push) Waiting to run
2025-08-16 20:06:37 +08:00
Zhang Jingqiang
9145838bbe use kanal instead of flume
Some checks failed
CrossCompiling / Build (push) Has been cancelled
CodeCoverage / g3bench test (push) Has been cancelled
CodeCoverage / lib unit test (push) Has been cancelled
CodeCoverage / g3mkcert test (push) Has been cancelled
CodeCoverage / g3keymess test (push) Has been cancelled
CodeCoverage / g3proxy test (push) Has been cancelled
CodeCoverage / g3statsd test (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (java-kotlin) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
CodeQL Advanced / Analyze (rust) (push) Has been cancelled
Linux-CI / Build (push) Has been cancelled
Linux-CI / Clippy (push) Has been cancelled
Linux-CI / Build vendored (push) Has been cancelled
Linux-CI / Build with OpenSSL Async Job (push) Has been cancelled
MacOS-CI / Build (push) Has been cancelled
MacOS-CI / Build vendored (push) Has been cancelled
StaticLinking / musl (push) Has been cancelled
StaticLinking / msvc (push) Has been cancelled
Windows-CI / Build (push) Has been cancelled
Windows-CI / Build vendored (push) Has been cancelled
2025-08-15 13:03:46 +08:00
WaterWhisperer
4b318a62af add unit tests for network and stats modules in g3-types 2025-08-14 11:44:55 +08:00
WaterWhisperer
5c15bf6fe8 add tests for g3-dpi and g3-types 2025-08-13 08:48:17 +08:00
Zhang Jingqiang
e6a0a3c05b fix clippy 1.91 warning 2025-08-10 21:20:16 +08:00
Zhang Jingqiang
9c59aaa1c7 fix clippy 1.89 warnings 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
a571361e69 g3-yaml: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
7aca18017f g3-udpdump: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
ebf2099aad g3-types: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
aad51f2463 g3-tls-ticket: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
1091b97436 g3-tls-cert: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
5a974bfd20 g3-syslog: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
833be675c7 g3-stdlog: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
2515e5eabe g3-statsd-client: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
a194f4e54f g3-socks: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
274eb070ee g3-socket: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
f9028ab930 g3-smtp-proto: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
8e3d901d1e g3-slog-types: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
88869afa9d g3-runtime: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
afe2316829 g3-resolver: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
8a38dfc08d g3-redis-client: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
8887483244 g3-msgpack: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
e606fb7b41 g3-json: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
49b97c817a g3-journal: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
c7b64a833b g3-ip-locate: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
6bfed41b83 g3-io-ext: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
fc48e26c06 g3-imap-proto: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
562551b49c g3-icap-client: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
dc913cdabc g3-http: update MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
24fa10f3c9 g3-hickory-client: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
a8c4799223 g3-h2: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
354df8e780 g3-ftp-client: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
5109309397 g3-fluentd: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
725df70b19 g3-dpi: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
2b16bb1bbe g3-daemon: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
3d64fdeccd g3-cert-agent: bump MSRV to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
1ec5ed177b g3proxy: bump msrv to 1.88 2025-08-10 08:56:57 +08:00
Zhang Jingqiang
978b4e1af4 g3-openssl: add SslStream::peek method
Some checks failed
CodeCoverage / lib unit test (push) Has been cancelled
CodeCoverage / g3mkcert test (push) Has been cancelled
CodeCoverage / g3keymess test (push) Has been cancelled
CodeCoverage / g3proxy test (push) Has been cancelled
CodeCoverage / g3bench test (push) Has been cancelled
CodeCoverage / g3statsd test (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (java-kotlin) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
CodeQL Advanced / Analyze (rust) (push) Has been cancelled
CrossCompiling / Build (push) Has been cancelled
Linux-CI / Build (push) Has been cancelled
Linux-CI / Clippy (push) Has been cancelled
Linux-CI / Build vendored (push) Has been cancelled
Linux-CI / Build with OpenSSL Async Job (push) Has been cancelled
MacOS-CI / Build (push) Has been cancelled
MacOS-CI / Build vendored (push) Has been cancelled
StaticLinking / musl (push) Has been cancelled
StaticLinking / msvc (push) Has been cancelled
Windows-CI / Build (push) Has been cancelled
Windows-CI / Build vendored (push) Has been cancelled
2025-08-08 13:20:33 +08:00
WaterWhisperer
6b8d2f8cc5 update SSH protocol inspection
Some checks are pending
CodeCoverage / lib unit test (push) Waiting to run
CodeCoverage / g3mkcert test (push) Waiting to run
CodeCoverage / g3keymess test (push) Waiting to run
CodeCoverage / g3proxy test (push) Waiting to run
CodeCoverage / g3bench test (push) Waiting to run
CodeCoverage / g3statsd test (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (java-kotlin) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
CrossCompiling / Build (push) Waiting to run
Linux-CI / Build (push) Waiting to run
Linux-CI / Clippy (push) Waiting to run
Linux-CI / Build vendored (push) Waiting to run
Linux-CI / Build with OpenSSL Async Job (push) Waiting to run
MacOS-CI / Build (push) Waiting to run
MacOS-CI / Build vendored (push) Waiting to run
StaticLinking / musl (push) Waiting to run
StaticLinking / msvc (push) Waiting to run
Windows-CI / Build (push) Waiting to run
Windows-CI / Build vendored (push) Waiting to run
Refactor SSH client version exchange to correctly parse SSH-1.99 and mark it as modern SSH (Protocol::Ssh). Adjust the offset for dash check and trailing CR check for SSH-1.99.
2025-08-07 17:30:09 +08:00
WaterWhisperer
22b6689bd8 add protocol detection tests for multiple services
This commit adds extensive tests for server initial data protocol detection
across FTP, HTTP, IMAP, NATS, NNTP, POP3, and  SMTP services. The new
tests cover valid server greetings, invalid responses, data length boundaries,
line ending variations, and protocol exclusion behavior after detection.
2025-08-07 08:14:13 +08:00
WaterWhisperer
e91e1d89dd add tests for g3-clap and multiple g3-dpi protocols 2025-08-05 10:55:44 +08:00
Zhang Jingqiang
dc0a498dc1 g3-socket: fix TCP_CONGESTION definition on solaris 2025-08-04 07:59:51 +08:00
Zhang Jingqiang
6c55be9fb4 g3-socket: use our own sockopt methods
Some checks failed
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (java-kotlin) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
CrossCompiling / Build (push) Waiting to run
Linux-CI / Build (push) Waiting to run
Linux-CI / Clippy (push) Waiting to run
Linux-CI / Build vendored (push) Waiting to run
Linux-CI / Build with OpenSSL Async Job (push) Waiting to run
MacOS-CI / Build (push) Waiting to run
MacOS-CI / Build vendored (push) Waiting to run
StaticLinking / musl (push) Waiting to run
StaticLinking / msvc (push) Waiting to run
Windows-CI / Build (push) Waiting to run
Windows-CI / Build vendored (push) Waiting to run
CodeCoverage / lib unit test (push) Has been cancelled
CodeCoverage / g3mkcert test (push) Has been cancelled
CodeCoverage / g3keymess test (push) Has been cancelled
CodeCoverage / g3proxy test (push) Has been cancelled
CodeCoverage / g3bench test (push) Has been cancelled
CodeCoverage / g3statsd test (push) Has been cancelled
2025-08-01 17:54:17 +08:00
Zhang Jingqiang
39e4c89c4b use ptr cast instead of as convert 2025-08-01 13:18:21 +08:00
Zhang Jingqiang
81309d17fb g3bench: allow more flexible rate limit config
Some checks are pending
CodeCoverage / lib unit test (push) Waiting to run
CodeCoverage / g3mkcert test (push) Waiting to run
CodeCoverage / g3keymess test (push) Waiting to run
CodeCoverage / g3proxy test (push) Waiting to run
CodeCoverage / g3bench test (push) Waiting to run
CodeCoverage / g3statsd test (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (java-kotlin) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
CrossCompiling / Build (push) Waiting to run
Linux-CI / Build (push) Waiting to run
Linux-CI / Clippy (push) Waiting to run
Linux-CI / Build vendored (push) Waiting to run
Linux-CI / Build with OpenSSL Async Job (push) Waiting to run
MacOS-CI / Build vendored (push) Waiting to run
StaticLinking / musl (push) Waiting to run
StaticLinking / msvc (push) Waiting to run
Windows-CI / Build (push) Waiting to run
Windows-CI / Build vendored (push) Waiting to run
MacOS-CI / Build (push) Waiting to run
2025-07-31 18:33:18 +08:00
WaterWhisperer
1a4500b114 g3-json: fix variable in rustls server config cert pair parsing
Some checks are pending
CodeCoverage / lib unit test (push) Waiting to run
CodeCoverage / g3statsd test (push) Waiting to run
CodeCoverage / g3mkcert test (push) Waiting to run
CodeCoverage / g3keymess test (push) Waiting to run
CodeCoverage / g3proxy test (push) Waiting to run
CodeCoverage / g3bench test (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (java-kotlin) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
CrossCompiling / Build (push) Waiting to run
Linux-CI / Build (push) Waiting to run
Linux-CI / Clippy (push) Waiting to run
Linux-CI / Build vendored (push) Waiting to run
Linux-CI / Build with OpenSSL Async Job (push) Waiting to run
MacOS-CI / Build (push) Waiting to run
MacOS-CI / Build vendored (push) Waiting to run
StaticLinking / musl (push) Waiting to run
StaticLinking / msvc (push) Waiting to run
Windows-CI / Build (push) Waiting to run
Windows-CI / Build vendored (push) Waiting to run
In `as_rustls_server_config_builder`, when processing non-array certificate pairs, the function incorrectly used the top-level configuration value (`value`) instead of the current key's value (`v`). This would cause certificate parsing to fail since it passed the entire config instead of the specific cert pair value. The change replaces `value` with `v` to correctly parse individual certificate pairs.
2025-07-31 16:47:50 +08:00
WaterWhisperer
b0dfdb9ae5 g3-json: add unit tests for JSON value parsing modules
Implement unit tests for value parsing functionality in:
- Histogram metrics configuration
- OpenSSL certificate handling
- Regex pattern validation
- DNS resolution rules
- Rustls server configuration

Include test certificate/key files to support tests.
2025-07-31 16:47:50 +08:00
WaterWhisperer
ebc03c087e g3-json: add unit tests for JSON value parsers
Some checks failed
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (java-kotlin) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
CrossCompiling / Build (push) Waiting to run
Linux-CI / Clippy (push) Waiting to run
Linux-CI / Build (push) Waiting to run
Linux-CI / Build vendored (push) Waiting to run
Linux-CI / Build with OpenSSL Async Job (push) Waiting to run
MacOS-CI / Build (push) Waiting to run
MacOS-CI / Build vendored (push) Waiting to run
StaticLinking / musl (push) Waiting to run
StaticLinking / msvc (push) Waiting to run
Windows-CI / Build (push) Waiting to run
Windows-CI / Build vendored (push) Waiting to run
CodeCoverage / lib unit test (push) Has been cancelled
CodeCoverage / g3statsd test (push) Has been cancelled
CodeCoverage / g3mkcert test (push) Has been cancelled
CodeCoverage / g3keymess test (push) Has been cancelled
CodeCoverage / g3proxy test (push) Has been cancelled
CodeCoverage / g3bench test (push) Has been cancelled
- Add unit tests for JSON parsing functions across multiple value modules.
2025-07-27 23:53:50 +08:00
Zhang Jingqiang
192e8cf620 g3-http: drop useless bench code 2025-07-27 17:26:02 +08:00
Zhang Jingqiang
31e8fb900d g3-icap-client: allow to connect to a unix socket address
Some checks failed
CodeCoverage / lib unit test (push) Waiting to run
CodeCoverage / g3mkcert test (push) Waiting to run
CodeCoverage / g3keymess test (push) Waiting to run
CodeCoverage / g3proxy test (push) Waiting to run
CodeCoverage / g3bench test (push) Waiting to run
CodeCoverage / g3statsd test (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (java-kotlin) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
CrossCompiling / Build (push) Waiting to run
Linux-CI / Build vendored (push) Waiting to run
Linux-CI / Build (push) Waiting to run
Linux-CI / Clippy (push) Waiting to run
Linux-CI / Build with OpenSSL Async Job (push) Waiting to run
MacOS-CI / Build vendored (push) Waiting to run
MacOS-CI / Build (push) Waiting to run
StaticLinking / musl (push) Waiting to run
StaticLinking / msvc (push) Waiting to run
Windows-CI / Build (push) Waiting to run
Windows-CI / Build vendored (push) Waiting to run
Sphinx-Doc / build (g3proxy) (push) Has been cancelled
Sphinx-Doc / build (g3statsd) (push) Has been cancelled
Sphinx-Doc / build (g3tiles) (push) Has been cancelled
Sphinx-Doc / build (g3keymess) (push) Has been cancelled
2025-07-27 13:38:46 +08:00