-
Notifications
You must be signed in to change notification settings - Fork 791
Add output buffer limiting for unauthenticated clients #1994
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
Add output buffer limiting for unauthenticated clients #1994
Conversation
This commit introduces a mechanism to track client authentication state with a new ever_authenticated flag. It refactors client authentication handling by adding a clientSetUser function that properly sets both the authenticated and ever_authenticated flags. The implementation limits output buffer size for clients that have never been authenticated. Added tests to verify the output buffer limiting behavior for unauthenticated clients. Signed-off-by: Uri Yagelnik <uriy@amazon.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just repeating what clang-format said. The remaining failures are fixed in other PRs that we will backport, or at least not related to this fix.
Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 8.1 #1994 +/- ##
==========================================
+ Coverage 71.03% 71.06% +0.03%
==========================================
Files 123 123
Lines 65787 65797 +10
==========================================
+ Hits 46734 46761 +27
+ Misses 19053 19036 -17
🚀 New features to boost your workflow:
|
Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
This commit introduces a mechanism to track client authentication state with a new `ever_authenticated` flag. It refactors client authentication handling by adding a `clientSetUser` function that properly sets both the `authenticated` and `ever_authenticated` flags. The implementation limits output buffer size for clients that have never been authenticated. Added tests to verify the output buffer limiting behavior for unauthenticated clients. --------- Signed-off-by: Uri Yagelnik <uriy@amazon.com> Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech> Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
This commit introduces a mechanism to track client authentication state with a new
ever_authenticated
flag. It refactors client authentication handling by adding aclientSetUser
function that properly sets both theauthenticated
andever_authenticated
flags.The implementation limits output buffer size for clients that have never been authenticated.
Added tests to verify the output buffer limiting behavior for unauthenticated clients.