Bug: New rate limiting breaks 6 existing security tests (173/179) #76
Labels
No labels
agent:implement
agent:ready
backend
bug
cannot-reproduce
confirmed
desktop
docs
documentation
duplicate
enhancement
feature
frontend
good first issue
help wanted
high-risk
in-review
invalid
mobile
needs-triage
P0-critical
P1-high
P2-medium
P3-low
qa
QA
question
ready
report
responsive
security
security-escalate
smart-contract
solana
tablet
test-pass
ux
wallet-issue
wallet:keplr
wallet:metamask
wallet:station
wallet:walletconnect
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-bridge-monorepo#76
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After pulling rate limit + nonce replay push, make solana-test gives 173/179 (6 failing). All failures are RateLimitExceededPerPeriod (error 6035) in existing tests that were not updated to configure rate limits before withdrawals. Affected: full_security_audit (2), security_audit (2), spl_security (2). New rate_limit test passes. Tests need to call set_rate_limit with sufficient limits in setup.
mentioned in issue #67
mentioned in commit
77f7b14358@brouie Please verify when you have a moment.
#76 fix pushed on
feat/solana-integration(77f7b14).setExplicitUnlimitedWithdrawRateLimitin test setup and wired it insecurity_audit,full_security_audit, andspl_security(native SOL + each SPL fixture mint) so implicitsupply/1000withdraw caps do not hitRateLimitExceededPerPeriod(6035).deposit_withdraw: corrected native withdraw amount to 18-decimal scale for the EVM mapping so the normalized payout is actually 0.5 SOL (the old constant normalized to 0 lamports and broke the balance assertion).full_security_audit“attacker execute” case: extra 2s sleep after the wrong-recipient attempt avoids flakyDelayNotElapsedon the strict delay boundary.anchor testinpackages/contracts-solana: 179 passing.@brouie Could you please verify the #76 fix on
feat/solana-integrationwhen you have time (Solanaanchor test/make solana-testinpackages/contracts-solana)? Leaving this issue open until you confirm.Verified. 179/179 ALL PASS on make solana-test after pulling fix. Rate limit setup added to security test suites. Closing.