Repository navigation
feat: implement #1008 #1009 #1010 #1011 — rate limiting, audit loggin… - #1053
Merged
Conversation
Stellar-split#1011 — rate limiting, audit logging, contract upgrade, emergency pause Stellar-split#1011 — emergency_pause.rs - Named pause conditions with severity levels (Info/Warning/Critical) - Auto-pause on Critical condition trigger - Multi-step recovery plan with per-step completion tracking - Notification subscriber list (external contracts called on pause/unpause) - Aggregate analytics: pause count, duration, critical trigger count Stellar-split#1010 — contract_upgrade.rs - Semantic version management (major.minor.patch) - UpgradeManifest: breaking changes, new features, migration flag - Pre-upgrade validation (version increasing, hash match) - Upgrade history log (bounded, 20 entries) - Rollback capability: stores previous WASM hash, capped rollback counter Stellar-split#1009 — audit_logging.rs - Compliance log with monotonic sequence numbers - LogEventKind: AdminAction, InvoiceLifecycle, Payment, SecurityEvent, UpgradeEvent, RateLimitEvent - Data retention policy (configurable window, purge on demand) - Tamper-evident data_hash field (SHA-256 of off-chain encrypted payload) - Access-controlled reader list (separate from admin/operator roles) - Analysis helpers: count_by_kind, entries_in_range, time-range queries Stellar-split#1008 — rate_limiting.rs - Per-user per-operation sliding-window counter - Exponential backoff on repeated violations (configurable steps + cap) - Admin override: reset a user's state; remove a config - Aggregate analytics: total checked/allowed/denied, per-op denial counts - Denial-rate in basis points (0–10 000) Supporting changes: - error.rs: add RecoveryIncomplete = 77 with recovery suggestion - lib.rs: declare pub mod for all 4 modules; expose ~30 new entry points - .gitignore: add rules for .xdr/.base64 artefacts, .soroban/, editor state
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…g, contract upgrade, emergency pause
#1011 — emergency_pause.rs
#1010 — contract_upgrade.rs
#1009 — audit_logging.rs
#1008 — rate_limiting.rs
Supporting changes: