# rust-fafb-q SDK test configuration
#
# Fixed, well-known credentials and settings for client SDK compatibility
# testing. DO NOT use these keys in production.
#
# See docs/client_sdk_spec.md § "Compatibility Testing" for full details.

[tcp]
bind_address = "0.0.0.0"
port = 9876
max_message_size = 1048576

[http]
bind_address = "0.0.0.0"
port = 8080

[storage]
data_dir = "/app/data"

[metrics]
enabled = true

[queue]
max_depth = 10000
backpressure_policy = "DropOldest"
max_redelivery_attempts = 3
dlq_topic_suffix = "__dlq"

# ── Test namespace: full permissions ─────────────────────────────────────────
[namespaces.test]
api_key = "sdk-test-key-000000000000"
permissions = ["Subscribe", "Publish", "Query", "Fetch"]

# ── Test namespace: publish-only (for permission-denied testing) ─────────────
[namespaces.publish-only]
api_key = "sdk-test-publish-only-00"
permissions = ["Publish"]

# ── Test namespace: query-only (for permission-denied testing) ───────────────
[namespaces.query-only]
api_key = "sdk-test-query-only-0000"
permissions = ["Query"]

# ── Test namespace: subscribe-only (no fetch — for fetch permission testing) ──
[namespaces.subscribe-only]
api_key = "sdk-test-subscribe-only-0"
permissions = ["Subscribe"]
