From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
Stefan Hanreich <s.hanreich@proxmox.com>
Subject: [pve-devel] applied-series: [PATCH proxmox-ve-rs v2 1/2] fix #5927: firewall: alias: lowercase names of aliases
Date: Mon, 25 Nov 2024 22:06:36 +0100 [thread overview]
Message-ID: <c1a61a18-5555-4662-aa8e-ada5a479a94f@proxmox.com> (raw)
In-Reply-To: <20241125170449.238880-1-s.hanreich@proxmox.com>
Am 25.11.24 um 18:04 schrieb Stefan Hanreich:
> pve-firewall lowercases the names of aliases when reading from the
> configuration as well as when comparing source / destination entries
> with the entries in the parsed aliases. In order to stay
> backwards-compatible we also need to lowercase any parsed alias name.
> I decided to this in the constructor and switch all call sites to the
> new constructor, so there's only one place where we have to handle
> lowercasing the string.
>
> Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
> ---
>
> Changes from v1 to v2:
> * fix typo and improve description in documentation of Alias
> * add bugzilla issue # to commit msg
>
> Also leaving the thoughts I posted under v1 here:
>
> Leo supplied a patch already [1] that changes the handling of names in
> the firewall. Might make sense to revisit this patch series in the
> future to unify how cases are handled in the firewall. Nevertheless,
> this patch acts as a quick fix for users running into issues with the
> firewall due to the difference in handling cases in pve-firewall and
> proxmox-firewall.
>
> [1] https://lists.proxmox.com/pipermail/pve-devel/2023-January/055596.html
>
>
> proxmox-ve-config/src/firewall/types/alias.rs | 49 ++++++++++++++-----
> 1 file changed, 38 insertions(+), 11 deletions(-)
>
>
applied, thanks!
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
prev parent reply other threads:[~2024-11-25 21:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-25 17:04 [pve-devel] " Stefan Hanreich
2024-11-25 17:04 ` [pve-devel] [PATCH proxmox-ve-rs v2 2/2] firewall: alias: document difference between Alias and AliasName Stefan Hanreich
2024-11-25 21:06 ` Thomas Lamprecht [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=c1a61a18-5555-4662-aa8e-ada5a479a94f@proxmox.com \
--to=t.lamprecht@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
--cc=s.hanreich@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal