on caa93f4 help sign in
caa93f4Simplify server: extract storeFederated and maskedServer helpers, reduce duplicationiko cdfb214Simplify server: flatten nested ifs, inline helpers, factor common patternsiko 7147117Simplify server: unify gateAuth, extract authPreCheck, inline forwardForNewlyOnline, refactor helpersiko 17842b5Simplify server: extract chargeRate helper, remove redundant empty-check branches, inline intermediatesiko 697a16cSimplify server: replace fold-based minBy/maxBy with sortBy, extract emptyPollResp and sendErrResp helpers to collapse 2000-char response literalsiko 595060fSimplify server: add helpers (id, removeWhere, mapWhere, findFirst, appendCapped, mkGossip, recordAcksAndDeliveries)iko 83d4d5bSimplify server: add filter/pluck/countWhere/elem helpers, extract gateAuth for handlersiko 19a7d60Simplify server: flatten nested conditions, unify rate helpers, use pruneRefiko f78eed7Simplify server: add pruneRef, withMaintAuth, and list helpers to collapse boilerplateiko a98972eSimplify validators and dedups: add all/unique helpers, replace 6 fold patternsiko 5ec7573Simplify server: add forEach/mapEach helpers, eliminate 11 recursive boilerplate iteratorsiko 19734ffSimplify server: drop dead helpers, inline single-use functions, use plain == for tokens, linear backoffiko 15e70b5Simplify server implementation: flatten 16-way sharding, remove caches and rate limiter complexityiko fa7e299Remove compile-time maintenance secret fallback; require runtime secret onlyiko d946df5Remove POST /maintenance/config (SetConfig) endpointiko 3a92fc8Implement 9 server optimizations: consolidate forward bucket analysis, optimize batch recipient operations, add ackGracePeriod runtime config, and track nonce eviction metricsiko 1216c73Replace all logging to use standard library logInfo, logWarn, and logError functionsiko 05dda8eImplement 14 server improvements: fix request completion timestamp tracking, deduplicate session revocation comparisons, add missing forward count decrements, make escape functions truly tail-recursive, thread rate limiters through batch forward recursion, add forward retry jitter, isolate background task phases, and add cancel metricsiko ae4cf04Implement 6 server improvements: add missing Poll messageCancellations, fix zipParallelArrays duplicate corruption, fix recordForwardNonce race, batch receiptsByBucket atomics, prune drop counters, and track revoke/logout latencyiko 9ec75e7Implement 8 server improvements: remove dead code, fix O(n²) receipt indexing, per-bucket nonce eviction cutoffs, activeRequests panic recovery, 2x rate limiter window retention, gossip merge determinism, and runtime config overridesiko d751898Implement 19 server improvements: cancel authorization hardening, TOCTOU fixes, prune synchronization, nonce eviction correctness, session refresh contention reduction, Prometheus metrics, latency histograms, federation delivery receipts, request pressure health, dynamic stuck detection, and presence TTL alignmentiko 62b66d1Implement 11 server improvements: loadPct exposure, nonce entropy, effective rate limit logging, health visibility, scope validation, serverGeneration uniqueness, O(n²) fix in grouping, structured federation retryAfterMs, latency percentiles, per-peer gossip stats, and cancel notificationsiko 79833edImplement 7 server improvements: loadPct exposure, batch delivery eviction, gossip backoff, requireClientIp validation, nonce replay protection, cached health, and per-sender capiko 161cd87Implement 12 server improvements: nonce replay protection, adaptive rate caching, gossip backoff, seenBy validation, token timing fix, and reconciliation optimizationiko 765edfeSimplify federation signature verification: remove re-fetch retry, assume persistent keysiko 57b23f5Add Ed25519 federation signing: eliminate verify callback round-trips with signature-based auth and cached peer keysiko 8cd1b8cImplement 6 server improvements: batch forward optimization, pending cancel stats, enhanced nonce eviction logging, cancel health checks, startup probe verification, and two-phase federation probeiko e51c63dImplement 8 server improvements: structured logging, two-pass ack cleanup, federation retry jitter, nonce eviction logging, code simplifications, missing enum case, and adaptive poll timeoutiko 03f16bdImplement 8 server improvements: adaptive rate limiting fix, LRU-based drop counter eviction, forward queue health caching, gossip filtering optimization, session lookup fast-path, and operational tuningiko 7eba17eImplement 14 security, performance, resilience, and operational improvementsiko 9a4b1a5Implement 13 security, performance, resilience, and operational improvementsiko 88da7beRemove snapshot implementation — state cells are automatically persistediko 580833fImplement 10 server improvements: federation cancel retries, delivery receipt deduplication, rate limit override persistence, sender capacity tracking, constant-time IP comparison, per-sender drop counters, forward storm mitigation, bootstrap snapshot restore, rate limit preservation, and per-bucket atomic operationsiko 634d723Implement 10 server improvements: input validation capping, bucket-state threading, counter batching, constant-time auth, federation docs, capacity tracking, pure batch validation, gossip deduplication, and TOCTOU documentationiko 05b405dImplement 9 server improvements: drain fast-paths, atomic rate reads, session refresh throttling, federation retry hints, bucketed forward batching, ack event logging, and snapshot optimizationiko 37cddf3Implement 8 server improvements: priority starvation prevention, snapshot integrity hardening, per-bucket forward operations, cancel nonces, ack validation, and federation health metricsiko 662d060Implement 8 server improvements: message priority federation, cached sender receipts, Azure SSRF defense, atomic snapshots, clock jump handling, watchdog monitoringiko 2cb5e4eImplement 10 server improvements: backpressure, priority polling, adaptive rates, audit logging, nonce optimization, body defense, stale peer cleanup, snapshot security, hung connections, and cloud TLD blocksiko 37afea4Implement 15 server improvements: message priority, federation protocol versioning, per-peer latency tracking, snapshot integrity, active request counter, batch rate limiting, and reconciliation drift thresholdiko d15d568Implement 12 server improvements: JSON escaping, capacity masking, poll flags, batch forward protocol, gossip dedup, countByRecipient optimization, federation ack status, health capacity warnings, stats enhancements, and snapshot integrityiko 05bf0efImplement 9 server improvements: forward TTL propagation, batch federation cancel, delivery receipts, health monitoring, rotate secret enforcement, security warnings, slow request logging, snapshot contention reductioniko fa8dd31Add delivery receipts and sender TTL; optimize batch messaging and security (JSON escaping, filtering, token caching)iko 44b945bImplement 15 server improvements: federation cancel/forward batching, snapshot v8 with senderExpirations, runtime secret rotation, stats enhancements, rate limiting, cache/IP-binding fixes, structured loggingiko 154d8eeImplement 15 server improvements: security (log injection, verify caching, snapshot integrity), robustness (ack logging, clock jump), performance (short-circuit, round-robin), operational (rate counters, sessions endpoint), protocol (federation hints, batch dedup)iko 88482b4Add forward counter, fix safeCompareLen truncation, refresh sessions, optimize ack per-bucketiko 5aace88Implement 12 server improvements: verify metrics, pending ack cleanup snapshots, per-bucket pruning, rate limit fix, IP session revocation, and forward prioritizationiko 7e7eb77Implement 14 server improvements: verify timeout, runtime rate limits, snapshot checksums, reconcile endpoint, per-bucket optimizations, version tracking, and documentationiko e5cfebcRemove message TTL feature and simplify message expiration to always use 7-day defaultiko 66a992cRemove secret rotation and pre-shared federation key supportiko 8728a13Add federation message cancellation endpoint and clarify pre-shared key implementationiko