Skip to content

Allow rateLimitAdmin to tune limiters via SetConfig; restrict SetRateLimitConfig to poolOwner#612

Open
stackman27 wants to merge 10 commits into
mainfrom
sish/fcr-changes
Open

Allow rateLimitAdmin to tune limiters via SetConfig; restrict SetRateLimitConfig to poolOwner#612
stackman27 wants to merge 10 commits into
mainfrom
sish/fcr-changes

Conversation

@stackman27
Copy link
Copy Markdown
Contributor

@stackman27 stackman27 commented Jun 2, 2026

Allow rateLimitAdmin to tune limiters via SetConfig; restrict SetRateLimitConfig to poolOwner

@stackman27 stackman27 requested a review from a team as a code owner June 2, 2026 02:59
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

👋 stackman27, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@stackman27 stackman27 force-pushed the sish/fcr-changes branch 2 times, most recently from 25d70fc to 45760c8 Compare June 2, 2026 06:05
Comment on lines +514 to +520
when (caller /= poolOwner) $ do
assertMsg "SetRateLimitConfig: rateLimitAdmin cannot change inboundRateLimiter"
(arg.inboundRateLimiter == cfg.inboundRateLimiter)
assertMsg "SetRateLimitConfig: rateLimitAdmin cannot change inboundCustomBlockConfirmationsRateLimiter"
(arg.inboundCustomBlockConfirmationsRateLimiter == cfg.inboundCustomBlockConfirmationsRateLimiter)
assertMsg "SetRateLimitConfig: rateLimitAdmin cannot change outboundRateLimiter"
(arg.outboundRateLimiter == cfg.outboundRateLimiter)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With these assertions, what can the rateLimitAdmin even do?
From the looks of it, this will now always fail if any of the rate limiters are to be changed, which is the whole point of this choice

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we wanted to do this, I think we should allow the RL admin to call SetConfig on the rate limiters themselves

Comment thread contracts/ccip/runtime/daml/CCIP/OffRamp.daml
Comment thread contracts/ccip/pools/burn-mint-token-pool/daml/CCIP/BurnMintTokenPool.daml Outdated
@stackman27 stackman27 changed the title FCR changes Allow rateLimitAdmin to tune limiters via SetConfig; restrict SetRateLimitConfig to poolOwner Jun 2, 2026
@stackman27 stackman27 marked this pull request as draft June 3, 2026 03:45
@stackman27 stackman27 marked this pull request as ready for review June 3, 2026 04:11
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.

2 participants