From: Christian Ebner <c.ebner@proxmox.com>
To: Proxmox Backup Server development discussion
<pbs-devel@lists.proxmox.com>,
Hannes Laimer <h.laimer@proxmox.com>
Subject: Re: [pbs-devel] [PATCH proxmox{, -backup} v5 0/6] add user specific rate-limits
Date: Fri, 21 Nov 2025 17:32:48 +0100 [thread overview]
Message-ID: <30edf196-bff2-4ecc-89fa-4d51f5c9e631@proxmox.com> (raw)
In-Reply-To: <20251121135043.97142-1-h.laimer@proxmox.com>
On 11/21/25 2:50 PM, Hannes Laimer wrote:
> When a connection is accepted we create a shared tag handle for its
> rate-limited stream. The REST layer clears that handle before every
> request. Once a request authenticates successfully, we push a
> User(...) tag with the auth ID. Failed or unauthenticated requests
> leave the tag list empty. RateLimitedStream watches that handle and
> forces an immediate limiter refresh whenever the tag set changes so
> user-specific throttles take effect right away.
>
> Currently rules with a user specified take priority over others. So:
> user > IP only > neither, in case two rules match.
>
> If users and networks are specified, the rule only applies if both
> match. So, any of the specified user connect from any of the specified
> network.
>
> And all of this ofc still only if the given timeframe matches.
>
> I did also test this with a basic nginx reverse proxy configured with
> `keepalive 32`, I didn't run into problems using this setup.
Gave version 5 of the patches another spin. Changes are nice, adding the
dirty flag and forcing updates based on that is definitely better than
comparing and cloning the tags.
User specific rate limits are still applied, also when going through the
HAProxy setup I already tested with last time.
Reviewed-by: Christian Ebner <c.ebner@proxmox.com>
Tested-by: Christian Ebner <c.ebner@proxmox.com>
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
prev parent reply other threads:[~2025-11-21 16:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-21 13:50 Hannes Laimer
2025-11-21 13:50 ` [pbs-devel] [PATCH proxmox v5 1/3] pbs-api-types: allow traffic-control rules to match users Hannes Laimer
2025-11-21 19:04 ` [pbs-devel] applied: " Thomas Lamprecht
2025-11-21 13:50 ` [pbs-devel] [PATCH proxmox v5 2/3] http: track user tag updates on rate-limited streams Hannes Laimer
2025-11-21 19:04 ` [pbs-devel] applied: " Thomas Lamprecht
2025-11-21 13:50 ` [pbs-devel] [PATCH proxmox v5 3/3] rest-server: propagate rate-limit tags from authenticated users Hannes Laimer
2025-11-21 19:04 ` [pbs-devel] applied: " Thomas Lamprecht
2025-11-21 13:50 ` [pbs-devel] [PATCH proxmox-backup v5 1/3] api: taffic-control: update/delete users on rule correctly Hannes Laimer
2025-11-21 19:04 ` [pbs-devel] applied: " Thomas Lamprecht
2025-11-21 13:50 ` [pbs-devel] [PATCH proxmox-backup v5 2/3] traffic-control: add user-specific rule matching and precedence Hannes Laimer
2025-11-21 19:04 ` [pbs-devel] applied: " Thomas Lamprecht
2025-11-21 13:50 ` [pbs-devel] [PATCH proxmox-backup v5 3/3] ui: traffic-control: add users field in edit form and list Hannes Laimer
2025-11-21 19:04 ` [pbs-devel] applied: " Thomas Lamprecht
2025-11-21 16:32 ` Christian Ebner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=30edf196-bff2-4ecc-89fa-4d51f5c9e631@proxmox.com \
--to=c.ebner@proxmox.com \
--cc=h.laimer@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox