- Replace form_urlencoded with RFC 3986 compliant URI encoding - Implement aws_uri_encode() matching AWS SigV4 spec exactly - Unreserved chars (A-Z,a-z,0-9,-,_,.,~) not encoded - All other chars percent-encoded with uppercase hex - Preserve slashes in paths, encode in query params - Normalize empty paths to '/' per AWS spec - Fix test expectations (body hash, HMAC values) - Add comprehensive SigV4 signature determinism test This fixes the canonicalization mismatch that caused signature validation failures in T047. Auth can now be enabled for production. Refs: T058.S1
69 lines
1.5 KiB
TOML
69 lines
1.5 KiB
TOML
[package]
|
|
name = "chainfire-server"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
description = "Chainfire distributed KVS server"
|
|
|
|
[lib]
|
|
name = "chainfire_server"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "chainfire"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
chainfire-types = { workspace = true }
|
|
chainfire-storage = { workspace = true }
|
|
chainfire-raft = { workspace = true, default-features = false, features = ["custom-raft"] }
|
|
chainfire-gossip = { workspace = true }
|
|
chainfire-watch = { workspace = true }
|
|
chainfire-api = { workspace = true }
|
|
|
|
# Async
|
|
tokio = { workspace = true }
|
|
futures = { workspace = true }
|
|
async-trait = { workspace = true }
|
|
|
|
# gRPC
|
|
tonic = { workspace = true }
|
|
tonic-health = { workspace = true }
|
|
|
|
# HTTP
|
|
axum = { workspace = true }
|
|
tower = { workspace = true }
|
|
tower-http = { workspace = true }
|
|
http = { workspace = true }
|
|
http-body-util = { workspace = true }
|
|
|
|
# Configuration
|
|
clap.workspace = true
|
|
config.workspace = true
|
|
toml = { workspace = true }
|
|
serde = { workspace = true }
|
|
|
|
# Logging
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
|
|
# Metrics
|
|
metrics = { workspace = true }
|
|
metrics-exporter-prometheus = { workspace = true }
|
|
|
|
# Utilities
|
|
anyhow = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
tempfile = { workspace = true }
|
|
chainfire-client = { workspace = true }
|
|
tokio = { workspace = true, features = ["rt-multi-thread", "macros", "time"] }
|
|
criterion = { workspace = true }
|
|
|
|
[[bench]]
|
|
name = "kv_bench"
|
|
harness = false
|
|
|
|
[lints]
|
|
workspace = true
|