Security & Consensus Model

icCron Security Architecture

icCron executes scheduled workloads inside an isolated Rust canister w2fxo-5qaaa-aaaan-q6zxq-cai on the Internet Computer, combining cryptographic caller identity, SHA-256 API key isolation, and subnet-wide consensus.

SHA-256 Hashed

Project-Scoped API Keys

API keys (icp_cron_...) are hashed with SHA-256 before persistence. Raw secrets are shown once at creation and every HTTP request is strictly scoped to that key's project_id and owner.

SSRF Guard

Strict Target URL Validation

Every HttpWebhook target must use HTTPS and passes SSRF validation rejecting localhost, 127.0.0.1, ::1, private RFC 1918 networks, and cloud metadata endpoints (169.254.169.254).

Threshold Consensus

Deterministic Subnet Outcalls

HTTPS outcalls execute across independent Internet Computer subnet nodes and pass through transform_http_response to strip non-deterministic headers before consensus.

Internet Identity

Principal-Gated Control Plane

Project creation, renaming, API key issuance, and credit purchases require authenticated Internet Identity callers. Anonymous principals are rejected at the canister boundary.

Circuit Breaker

Dead Letter Queue & Auto-Pause

Jobs exceeding max_retries are automatically moved out of the active timer queue into Dead Letter Queue or AutoPausedDormant states to prevent runaway cycle burn.

Stable Memory

Upgrade-Safe Rust State

Projects, jobs, schedules, API keys, and execution logs reside in ic-stable-structures BTreeMaps so Wasm upgrades preserve state deterministically without heap migration risk.

Webhook Consensus Requirement

Because every replica on the IC subnet independently sends each HTTPS outcall, webhook endpoints must return deterministic response bodies (such as {"ok":true}) rather than per-node IP echoes or random timestamps.

Read llm.txt