Skip to content

Add checksum_log param support from cryptomeria-ingest - #40

Merged
tuxmonteiro merged 2 commits into
mainfrom
feat/checksum_log_support
Aug 12, 2026
Merged

Add checksum_log param support from cryptomeria-ingest#40
tuxmonteiro merged 2 commits into
mainfrom
feat/checksum_log_support

Conversation

@tuxmonteiro

Copy link
Copy Markdown
Contributor

Exposes the new checksum_log: bool field from cryptomeria-ingest's DataSourceConfig on SourceConfig and forwards it in to_data_source.

  • Adds checksum_log: bool to SourceConfig with #[serde(default)] (defaults to false)
  • Forwards checksum_log in SourceConfig::to_data_source when constructing DataSourceConfig
  • Adds 4 unit tests: default false, TOML parsing, forwarding, and default-in-DataSourceConfig
  • Updates config.toml.example with commented-out examples for OKX and Kraken sections

When true, Kraken CRC32 checksum mismatches are logged at WARN level instead of DEBUG. Defaults to false for security (prevents an exchange feed from injecting log lines that interpolate an exchange-controlled checksum value).

Fixes #39

Expose the new checksum_log: bool field from cryptomeria-ingest's DataSourceConfig on SourceConfig and forward it in to_data_source. When true, Kraken CRC32 checksum mismatches are logged at WARN level instead of DEBUG. Defaults to false for security (prevents exchange feed from injecting log lines).
@tuxmonteiro
tuxmonteiro merged commit 72dd08b into main Aug 12, 2026
@tuxmonteiro
tuxmonteiro deleted the feat/checksum_log_support branch August 12, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for checksum_log param from cryptomeria-ingest

1 participant