public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
	Christoph Heiss <c.heiss@proxmox.com>
Subject: [pve-devel] applied-series: [PATCH installer v2 0/7] use email regex from HTML spec for validation
Date: Sun, 10 Nov 2024 19:18:56 +0100	[thread overview]
Message-ID: <40694052-7219-4248-bd50-f78cf98dd8b6@proxmox.com> (raw)
In-Reply-To: <20241002122933.628461-1-c.heiss@proxmox.com>

Am 02.10.24 um 14:27 schrieb Christoph Heiss:
> This uses the regex for <input type="email" /> elements as defined in
> the HTML spec to validate emails in the installer. That regex should be
> a lot more robust than our current on and cover basically all cases of
> email addresses that might be encountered in the while.
> 
> Also, patch #6 adds validation for the auto-installer `global.mailto`
> option too, while at it - which previously was not validated in any
> capacity.
> 
> Patches #1 through #4 are just small cleanups/fixes and may be applied
> independently.
> 
> [0] https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address
> 
> history
> =======
> 
> Notable changes v1 -> v2:
>   * rebased on current master
> 
> diffstat
> ========
> 
> Christoph Heiss (7):
>   cargo: convert `anyhow` to workspace dependency
>   tui: fix new clippy lint
>   auto-installer: drop some unneeded `pub` modifiers
>   auto-installer: print full anyhow message on failure
>   tui: use email regex from HTML specification for validation
>   auto-installer: validate `global.mailto` answer option
>   proxinstall: use email regex from HTML specification for validation
> 
>  Cargo.toml                                    |  2 ++
>  Proxmox/Makefile                              |  1 +
>  Proxmox/Sys.pm                                |  9 +++++++
>  proxinstall                                   |  3 ++-
>  proxmox-auto-install-assistant/Cargo.toml     |  2 +-
>  proxmox-auto-installer/Cargo.toml             |  2 +-
>  .../src/bin/proxmox-auto-installer.rs         |  2 +-
>  proxmox-auto-installer/src/utils.rs           | 20 +++++++++------
>  proxmox-chroot/Cargo.toml                     |  2 +-
>  proxmox-fetch-answer/Cargo.toml               |  2 +-
>  proxmox-installer-common/Cargo.toml           |  1 +
>  proxmox-installer-common/src/lib.rs           |  3 +++
>  proxmox-installer-common/src/options.rs       | 25 +++++++++++++++++++
>  proxmox-tui-installer/Cargo.toml              |  1 -
>  proxmox-tui-installer/src/main.rs             | 22 ++++++----------
>  proxmox-tui-installer/src/options.rs          |  3 ++-
>  16 files changed, 69 insertions(+), 31 deletions(-)
>  create mode 100644 Proxmox/Sys.pm
> 


applied series, thanks!


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


      parent reply	other threads:[~2024-11-10 18:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-02 12:27 [pve-devel] " Christoph Heiss
2024-10-02 12:27 ` [pve-devel] [PATCH installer v2 1/7] cargo: convert `anyhow` to workspace dependency Christoph Heiss
2024-10-02 12:27 ` [pve-devel] [PATCH installer v2 2/7] tui: fix new clippy lint Christoph Heiss
2024-10-02 12:27 ` [pve-devel] [PATCH installer v2 3/7] auto-installer: drop some unneeded `pub` modifiers Christoph Heiss
2024-10-02 12:27 ` [pve-devel] [PATCH installer v2 4/7] auto-installer: print full anyhow message on failure Christoph Heiss
2024-10-02 12:27 ` [pve-devel] [PATCH installer v2 5/7] tui: use email regex from HTML specification for validation Christoph Heiss
2024-10-02 12:27 ` [pve-devel] [PATCH installer v2 6/7] auto-installer: validate `global.mailto` answer option Christoph Heiss
2024-10-02 12:27 ` [pve-devel] [PATCH installer v2 7/7] proxinstall: use email regex from HTML specification for validation Christoph Heiss
2024-11-10 18:18 ` 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=40694052-7219-4248-bd50-f78cf98dd8b6@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=c.heiss@proxmox.com \
    --cc=pve-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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal