Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 32 additions & 17 deletions kms-connector/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions kms-connector/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,19 @@ clap = { version = "=4.5.47", default-features = true, features = [
"cargo",
"derive",
] }
config = { version = "=0.15.15", default-features = false, features = ["toml"] }
config = { version = "=0.15.19", default-features = false, features = ["toml"] }
dashmap = { version = "=6.1.0", default-features = false }
futures = { version = "=0.3.31", default-features = false }
git-version = { version = "=0.3.9", default-features = false }
humantime-serde = "=1.1.1"
opentelemetry = "=0.30.0"
opentelemetry-otlp = { version = "=0.30.0", features = ["grpc-tonic"] }
opentelemetry_sdk = "=0.30.0"
prometheus = "=0.14.0"
rustls = { version = "=0.23.31", default-features = false, features = [
"aws-lc-rs",
] }
serde = { version = "=1.0.226", default-features = false, features = [
serde = { version = "=1.0.228", default-features = false, features = [
"derive",
"std",
] }
Expand Down Expand Up @@ -98,7 +99,6 @@ mocktail = "=0.3.0"
rand = "=0.9.2"
rstest = "=0.26.1"
serial_test = "3.2.0"
tempfile = "=3.20.0"
testcontainers = "=0.24.0"
toml = { version = "=0.9.5", default-features = true }
toml = { version = "=0.9.8", default-features = true }
tracing-test = { version = "=0.2.5", default-features = false }
54 changes: 27 additions & 27 deletions kms-connector/config/gw-listener.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,43 @@ chain_id = 54321

# Gateway WebSocket RPC URL endpoint (required)
# ENV: KMS_CONNECTOR_GATEWAY_URL
gateway_url = "ws://localhost:8545"
gateway_url = "http://localhost:8545"

# URL of the KMS Connector internal database (required)
# Format: see https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING-URIS
# ENV: KMS_CONNECTOR_DATABASE_URL
database_url = "postgres://postgres:postgres@localhost/kms-connector"

# The endpoint used to monitor the connector components (optional, defaults to "0.0.0.0:9100")
# ENV: KMS_CONNECTOR_MONITORING_ENDPOINT
# monitoring_endpoint = "0.0.0.0:9100"

# The timeout to perform each external service connection healthcheck (optional, defaults to 3s)
# ENV: KMS_CONNECTOR_HEALTHCHECK_TIMEOUT (format: https://docs.rs/humantime/latest/humantime/)
# healthcheck_timeout = "3s"

# The maximum number of tasks to process events/responses concurrently (optional, defaults to 1000)
# ENV: KMS_CONNECTOR_TASK_LIMIT
# task_limit = 1000

# The polling interval for decryption requests (optional, defaults to 1s)
# ENV: KMS_CONNECTOR_DECRYPTION_POLLING (format: https://docs.rs/humantime/latest/humantime/)
# decryption_polling = "1s"

# The polling interval for key management requests (optional, defaults to 30s)
# ENV: KMS_CONNECTOR_KMS_GENERATION_POLLING (format: https://docs.rs/humantime/latest/humantime/)
# key_management_polling = "30s"

# Block number to start processing from (optional, defaults to latest block if not set)
# ENV: KMS_CONNECTOR_FROM_BLOCK_NUMBER
# from_block_number = 1234

# Configuration of the Decryption contract (required)
[decryption_contract]
# Address of the Decryption contract (required)
# Format: hex string with 0x prefix
# ENV: KMS_CONNECTOR_DECRYPTION_CONTRACT__ADDRESS
address = "0xF0bFB159C7381F7CB332586004d8247252C5b816"
address = "0x0000000000000000000000000000000000000000"
# EIP-712 domain name for Decryption contract (optional, defaults to "Decryption")
# ENV: KMS_CONNECTOR_DECRYPTION_CONTRACT__DOMAIN_NAME
# domain_name = "Decryption"
Expand All @@ -35,34 +59,10 @@ address = "0xF0bFB159C7381F7CB332586004d8247252C5b816"
# Address of the KMSGeneration contract (required)
# Format: hex string with 0x prefix
# ENV: KMS_CONNECTOR_KMS_GENERATION_CONTRACT__ADDRESS
address = "0x5ffdaAB0373E62E2ea2944776209aEf29E631A64"
address = "0x0000000000000000000000000000000000000000"
# EIP-712 domain name for KMSGeneration contract (optional, defaults to "KMSGeneration")
# ENV: KMS_CONNECTOR_KMS_GENERATION_CONTRACT__DOMAIN_NAME
# domain_name = "KMSGeneration"
# EIP-712 domain version for KMSGeneration contract (optional, defaults to "1")
# ENV: KMS_CONNECTOR_KMS_GENERATION_CONTRACT__DOMAIN_VERSION
# domain_version = "1"

# The endpoint used to monitor the connector components (optional, defaults to "0.0.0.0:9100")
# ENV: KMS_CONNECTOR_MONITORING_ENDPOINT
# monitoring_endpoint = "0.0.0.0:9100"

# The timeout to perform each external service connection healthcheck (optional, defaults to 3s)
# ENV: KMS_CONNECTOR_HEALTHCHECK_TIMEOUT_SECS
# healthcheck_timeout_secs = 3

# The maximum number of tasks to process events/responses concurrently (optional, defaults to 1000)
# ENV: KMS_CONNECTOR_TASK_LIMIT
# task_limit = 1000

# The polling interval for decryption requests (optional, defaults to 1000ms)
# ENV: KMS_CONNECTOR_DECRYPTION_POLLING_MS
# decryption_polling_ms = 1000

# The polling interval for key management requests (optional, defaults to 30000ms)
# ENV: KMS_CONNECTOR_KMS_GENERATION_POLLING_MS
# key_management_polling_ms = 30000

# Block number to start processing from (optional, defaults to latest block if not set)
# ENV: KMS_CONNECTOR_FROM_BLOCK_NUMBER
# from_block_number = 1234
Loading