Implements the 14-table task-store schema from plan §4 and a Redis mirror of the same keyspace so the system can survive pod restarts and run multi-replica HPA. ## Changes - TaskStore trait defines all 14 table operations - SqliteTaskStore implements full persistence with WAL mode - RedisTaskStore implements HA-compatible backend with _index sets - Schema migration system with version tracking - TaskRegistryImpl supports runtime-selected backend - Helm values.schema.json enforces redis+replicas>1 constraint - Comprehensive property tests (proptest) and integration tests - Phase 3 DoD integration tests verify all criteria met ## 14 Tables 1. tasks - Miroir task registry 2. node_settings_version - per-(index, node) settings freshness 3. aliases - single-target + multi-target aliases 4. sessions - read-your-writes session pins 5. idempotency_cache - write dedup 6. jobs - work-queued background jobs 7. leader_lease - singleton-coordinator lease 8. canaries - canary definitions 9. canary_runs - canary run history 10. cdc_cursors - per-(sink, index) CDC cursor 11. tenant_map - API-key → tenant mapping 12. rollover_policies - ILM rollover policies 13. search_ui_config - per-index search-UI config 14. admin_sessions - Admin UI session registry Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
57 lines
1.6 KiB
TOML
57 lines
1.6 KiB
TOML
[package]
|
|
name = "miroir-proxy"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
|
|
[features]
|
|
default = []
|
|
tracing = ["opentelemetry", "opentelemetry-otlp", "opentelemetry_sdk", "tracing-opentelemetry"]
|
|
|
|
[[bin]]
|
|
name = "miroir-proxy"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
async-trait = "0.1"
|
|
axum = "0.7"
|
|
http = "1.1"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "signal"] }
|
|
reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
config = "0.14"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
|
|
prometheus = "0.13"
|
|
uuid = { version = "1.11", features = ["v7"] }
|
|
subtle = "2"
|
|
hmac = "0.12"
|
|
sha2 = "0.10"
|
|
base64 = "0.22"
|
|
chacha20poly1305 = "0.10"
|
|
rand = "0.8"
|
|
dashmap = "6"
|
|
hex = "0.4"
|
|
tower = "0.5"
|
|
miroir-core = { path = "../miroir-core", features = ["axum", "redis-store"] }
|
|
rust-embed = "8"
|
|
mime_guess = "2"
|
|
chrono = "0.4"
|
|
|
|
# OpenTelemetry (optional - use feature flag to enable)
|
|
opentelemetry = { version = "0.27", optional = true }
|
|
opentelemetry-otlp = { version = "0.27", features = ["grpc-tonic"], optional = true }
|
|
opentelemetry_sdk = { version = "0.27", features = ["rt-tokio"], optional = true }
|
|
tracing-opentelemetry = { version = "0.28", optional = true }
|
|
|
|
[dev-dependencies]
|
|
tower = "0.5"
|
|
http-body-util = "0.1"
|
|
mockito = "1"
|
|
tokio = { version = "1", features = ["rt", "macros", "rt-multi-thread"] }
|
|
testcontainers = "0.23"
|
|
testcontainers-modules = { version = "0.11", features = ["redis"] }
|
|
tempfile = "3"
|