photoncloud-monorepo/creditservice/Cargo.toml
centra d2149b6249 fix(lightningstor): Fix SigV4 canonicalization for AWS S3 auth
- 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
2025-12-12 06:23:46 +09:00

76 lines
2 KiB
TOML

[workspace]
resolver = "2"
members = [
"crates/creditservice-types",
"crates/creditservice-proto",
"crates/creditservice-api",
"crates/creditservice-server",
"creditservice-client",
]
[workspace.package]
version = "0.1.0"
edition = "2021"
license = "MIT OR Apache-2.0"
rust-version = "1.75"
authors = ["PhotonCloud Contributors"]
repository = "https://github.com/photoncloud/creditservice"
[workspace.dependencies]
# Internal crates
creditservice-types = { path = "crates/creditservice-types" }
creditservice-proto = { path = "crates/creditservice-proto" }
creditservice-api = { path = "crates/creditservice-api" }
creditservice-client = { path = "creditservice-client" }
# External dependencies (aligned with PhotonCloud stack)
tokio = { version = "1.40", features = ["full"] }
tokio-stream = "0.1"
futures = "0.3"
async-trait = "0.1"
# gRPC
tonic = { version = "0.12", features = ["tls", "tls-roots"] }
tonic-build = "0.12"
tonic-health = "0.12"
prost = "0.13"
prost-types = "0.13"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Storage clients
chainfire-client = { path = "../chainfire/chainfire-client" }
# flaredb-client = { path = "../flaredb/crates/flaredb-client" }
# IAM client
# iam-client = { path = "../iam/crates/iam-client" }
# Metrics client (NightLight)
# nightlight-client = { path = "../nightlight/crates/nightlight-client" }
# Decimal for precise credit calculations
rust_decimal = { version = "1.33", features = ["serde"] }
# Time
chrono = { version = "0.4", features = ["serde"] }
# UUID
uuid = { version = "1.6", features = ["v4", "serde"] }
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Config
config = "0.14"
toml = "0.8"
clap = { version = "4.4", features = ["derive", "env"] }
# Error handling
thiserror = "1.0"
anyhow = "1.0"
# HTTP client (for NightLight integration)
reqwest = { version = "0.11", default-features = false, features = ["json", "rustls-tls"] }