refactor(bare): enhance security and performance optimizations
- Remove unnecessary sorting in advertise_refs for deterministic output - Add path traversal detection and validation in bare_dir construction - Implement symlink resolution checks to prevent security vulnerabilities - Refactor cache system with CRC validation and improved metrics - Integrate repo-specific cache invalidation using indexed keys - Add comprehensive unit tests for commit operations and diff functionality - Move configuration constants to centralized config module - Optimize string operations in disk cache random value generation - Enhance license detection algorithm with cleaner matching logic - Streamline argument processing in various git operations - Update dependencies including crc32fast and flate2 for performance - Add signal handling capability to tokio runtime configuration
This commit is contained in:
+4
-6
@@ -4,13 +4,11 @@ version = "1.0.0"
|
||||
edition = "2024"
|
||||
authors = ["gitks contributors"]
|
||||
description = "A gRPC-accessible Git repository operations library for bare repositories"
|
||||
repository = ""
|
||||
readme = ""
|
||||
homepage = ""
|
||||
repository = "https://github.com/appks/gitks"
|
||||
homepage = "https://github.com/appks/gitks"
|
||||
license = "PolyForm-Noncommercial-1.0.0"
|
||||
keywords = ["git", "grpc", "bare-repository", "gix"]
|
||||
categories = ["development-tools"]
|
||||
documentation = ""
|
||||
|
||||
[lib]
|
||||
path = "lib.rs"
|
||||
@@ -27,13 +25,13 @@ duct = { version = "1", features = [] }
|
||||
tracing = { version = "0.1", features = ["log"] }
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
|
||||
tracing-appender = "0.2"
|
||||
tokio = { version = "1", features = ["rt-multi-thread", "macros", "process", "io-util", "sync", "net"] }
|
||||
tokio = { version = "1", features = ["rt-multi-thread", "macros", "process", "io-util", "sync", "net", "signal"] }
|
||||
tokio-stream = { version = "0.1", features = ["full"] }
|
||||
tokio-util = "0.7"
|
||||
thiserror = { version = "2", features = [] }
|
||||
prost = "0.14"
|
||||
prost-types = "0.14"
|
||||
tonic = { version = "0.14", features = ["transport"] }
|
||||
tonic = { version = "0.14", features = ["transport", "gzip"] }
|
||||
tonic-health = "0.14"
|
||||
tonic-prost = "0.14"
|
||||
tempfile = "3"
|
||||
|
||||
Reference in New Issue
Block a user