Skip to content
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

impr(proxy): Decouple ip_allowlist from the CancelClosure #10199

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

awarus
Copy link
Contributor

@awarus awarus commented Dec 19, 2024

This PR removes the direct dependency of the IP allowlist from CancelClosure, allowing for more scalable and flexible IP restrictions and enabling the future use of Redis-based CancelMap storage.

Changes:

  • Introduce a new BackendAuth async trait that retrieves the IP allowlist through existing authentication methods;
  • Improve cancellation error handling by instrument() async cancel_sesion() rather than dropping it.
  • Set and store IP allowlist for SCRAM Proxy to consistently perform IP allowance check

Relates to #9660

This PR removes the direct dependency of the IP allowlist from CancelClosure,
allowing for more scalable and flexible IP restrictions
and enabling the future use of Redis-based CancelMap storage.

Changes:
 - Introduce a new BackendAuth async trait that retrieves the IP allowlist
   through existing authentication methods;
 - Improve cancellation error handling by instrumtent() async
   cancel_sesion() rather than dropping it.
 - Set and store IP allowlist for SCRAM Proxy to consistently perform
   ip allowance check
@awarus awarus marked this pull request as ready for review December 19, 2024 15:03
@awarus awarus requested a review from a team as a code owner December 19, 2024 15:03
Copy link

github-actions bot commented Dec 19, 2024

7095 tests run: 6796 passed, 0 failed, 299 skipped (full report)


Flaky tests (1)

Postgres 17

Code coverage* (full report)

  • functions: 31.2% (8399 of 26915 functions)
  • lines: 47.8% (66683 of 139394 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
3fcf3de at 2024-12-20T11:15:33.959Z :recycle:

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.

1 participant