Skip to content

feat(attestation_engine): verifier-allowlist-abuse-cases-rate-limits-…#380

Open
ritik4ever wants to merge 1 commit intoCommitlabs-Org:masterfrom
ritik4ever:feature/attestation-engine-verifier-allowlist-abuse-cases-rate-limits-audit-log-events
Open

feat(attestation_engine): verifier-allowlist-abuse-cases-rate-limits-…#380
ritik4ever wants to merge 1 commit intoCommitlabs-Org:masterfrom
ritik4ever:feature/attestation-engine-verifier-allowlist-abuse-cases-rate-limits-audit-log-events

Conversation

@ritik4ever
Copy link
Copy Markdown

Rate limiting on add_verifier / remove_verifier via RateLimiter (configure with set_rate_limit using symbols "add_verif" / "rm_verif")
Duplicate add → emits VerifAddAbuse event, returns idempotently
Remove of non-existent verifier → emits VerifRmAbuse event, returns idempotently
Enhanced VerifierAdded / VerifierRemoved events now include caller + timestamp
Fix pre-existing E0255 compile error in shared_utils (duplicate explicit + glob re-exports)
Test plan
Run cargo test -p attestation_engine --features testutils — all 8 new tests pass
Security notes
require_auth() + admin check runs before rate-limit check — unauthenticated callers cannot consume quota
Rate limits are a no-op when unconfigured (safe default)
Closes #229

…audit-log-events

- add_verifier: rate-limit per caller, detect duplicate adds (VerifAddAbuse event), enhanced VerifierAdded audit event with caller+timestamp
- remove_verifier: rate-limit per caller, detect remove of non-existent verifier (VerifRmAbuse event), enhanced VerifierRemoved audit event
- fix(shared_utils): remove duplicate explicit+glob re-exports causing E0255 compile error
- fix(shared_utils/pausable): remove unused paused_key variable
- tests: 8 new tests covering success, idempotent abuse cases, unauthorized failure modes, and rate-limit-exceeded panic cases
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 25, 2026

@ritik4ever Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ritik4ever
Copy link
Copy Markdown
Author

ritik4ever commented Mar 25, 2026

@1nonlypiece please reveiw my pr

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.

Verifier allowlist abuse cases \u2014 rate limits, audit log events, failure modes

1 participant