- 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
44 lines
984 B
TOML
44 lines
984 B
TOML
[package]
|
|
name = "chainfire-raft"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
description = "Raft consensus for Chainfire distributed KVS"
|
|
|
|
[features]
|
|
default = ["openraft-impl"]
|
|
openraft-impl = ["openraft"]
|
|
custom-raft = []
|
|
|
|
[dependencies]
|
|
chainfire-types = { workspace = true }
|
|
chainfire-storage = { workspace = true }
|
|
|
|
# Raft
|
|
openraft = { workspace = true, optional = true }
|
|
rand = "0.8"
|
|
|
|
# Async
|
|
tokio = { workspace = true }
|
|
async-trait = { workspace = true }
|
|
futures = { workspace = true }
|
|
|
|
# Serialization
|
|
serde = { workspace = true }
|
|
bincode = { workspace = true }
|
|
|
|
# Utilities
|
|
tracing = { workspace = true }
|
|
parking_lot = { workspace = true }
|
|
dashmap = { workspace = true }
|
|
bytes = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
tempfile = { workspace = true }
|
|
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
|
|
|
|
[lints]
|
|
workspace = true
|