-
Notifications
You must be signed in to change notification settings - Fork 0
feat(shield)!: GCRA rate limiting with pluggable keys, limits, and async fleet reconciliation #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
polaz
wants to merge
48
commits into
main
Choose a base branch
from
feat/#68
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
a54d856
feat(shield): GCRA rate limiting with pluggable keys and limits
polaz bedba5d
test(shield): add regression test for GCRA idle-key remaining cap
polaz aa34633
fix(shield): cap GCRA admissible count at bucket capacity
polaz 1862064
fix(shield): correct cross-instance counter accounting
polaz ebf6e81
fix(shield): de-identify store keys and namespace by rule fingerprint
polaz 9a2bc82
test(shield): add regression test for sub-second Retry-After rounding
polaz e022c8f
fix(shield): round Retry-After / RateLimit-Reset up from nanoseconds
polaz e1037f0
fix(shield): reject non-positive profile rate and burst
polaz 67895d5
fix(proxy): apply CORS outside the auth and rate-limit layers
polaz 93ed030
fix(shield): bound the limit-service resolution cache
polaz 51e3c6e
fix(shield): store GCRA theoretical arrival times in nanoseconds
polaz 88c3bc3
docs(shield): clarify phase-local fallback, header contract, and over…
polaz 7bb7c84
docs(shield): explain TAT reuse across a resolved-tier change
polaz b8ae323
test(shield): add regression test for evicting an active stale limit …
polaz 850dea7
fix(shield): evict limit cache by last access, not last fetch
polaz 4427cea
docs(shield): clarify JWT-limit scope and the fleet gate approximation
polaz bf3cc35
fix(shield): make delta push atomic and guard stale estimate writes
polaz 80bf2d5
fix(shield): preserve inner limiter's rate-limit headers
polaz 111d52e
fix(shield): carry unpushed deltas across an epoch roll
polaz 0db9e92
fix(shield): race-free reconcile via claim model, refresh, and eviction
polaz 2278c1c
fix(shield): fail closed on empty rules and report fleet remaining
polaz 4ddb413
fix(shield): reject dynamic zero rates and bound fetch storms
polaz 065a414
fix(shield): drop unpushable deltas instead of restoring (never double)
polaz 04a3ed1
style(shield): match phase on borrowed key
polaz 3b0280e
fix(shield): validate limit-service endpoint and honor unknown-tier n…
polaz 7412910
test(shield): add regression test for carryover epoch collapse
polaz bc68273
fix(shield): degrade on stale estimate, gate on carryover, no epoch c…
polaz f0e5c30
fix(shield): reject invalid header key names at startup
polaz dd46db9
fix(shield): throttle limit-service retries for stale keys during an …
polaz 02aad01
fix(shield): report tightest phase budget and a decaying global Retry…
polaz b519fd4
fix(shield): auto-reconnect the shared store; note window-reset is no…
polaz 0697fcb
fix(shield): require an http/https limit-service endpoint
polaz c9afc81
fix(shield): normalize header key names before fingerprinting
polaz 3488749
fix(shield): bound rate-limit state under key-cardinality floods
polaz d208a7c
fix(shield): fail closed on unknown client IP and unstarted fleet gate
polaz d2e7107
test(shield): reject unknown config fields and assert outer budget he…
polaz 4c16ca6
docs(shield): document burst>limit behaviour under fleet reconciliation
polaz c12f872
test(shield): add regression test for reset tie-break on equal remaining
polaz c8ae720
fix(shield): break RateLimit-Reset ties toward the longer-binding phase
polaz a67797e
fix(shield): throttle high-water GCRA sweeps to bound CPU
polaz b5bef30
fix(shield): enforce limit-service cache cap at insertion
polaz 041a87d
refactor(shield): extract reconciled_headers helper
polaz 7aefc04
test(shield): add regression test for fleet-bound RateLimit-Reset
polaz f6da6a5
fix(shield): report fleet-derived reset when the fleet budget binds
polaz 021352f
docs(shield): note reconciliation needs the redis feature and a sync …
polaz 70d067f
build(deps): bump EmbarkStudios/cargo-deny-action from 2.0.20 to 2.1.1
polaz 13acd1a
test(shield): add regression test for Retry-After on tie-break overwrite
polaz 068517b
fix(shield): widen Retry-After when the outer budget wins a header tie
polaz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.