From 2c079afd65cd5e83d6046f1ef6ee1567e4ff6373 Mon Sep 17 00:00:00 2001 From: atlas Date: Tue, 14 Jul 2026 18:46:54 +0200 Subject: [PATCH] fix(#2391): drop "." entirely from credential/snapshot name charset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per mara: "i would have even disallowed ., we are making up the rules here lets go strict". validate_credential_name now restricts to [A-Za-z0-9_-] (no dot at all) instead of [A-Za-z0-9_.-] + a separate ".." substring check — simpler rule, and there's no legitimate need for a dot in either a systemd credential id or a hive- prefixed snapshot label. Matching hivectl client-side check + wire-proto doc comments updated. --- hive-c0re/src/bin/hivectl.rs | 18 ++++++++++++------ hive-priv/src/main.rs | 24 ++++++++++-------------- hive-sh4re/src/priv_proto.rs | 5 +++-- 3 files changed, 25 insertions(+), 22 deletions(-) diff --git a/hive-c0re/src/bin/hivectl.rs b/hive-c0re/src/bin/hivectl.rs index b47a6a1c..65d1f6c8 100644 --- a/hive-c0re/src/bin/hivectl.rs +++ b/hive-c0re/src/bin/hivectl.rs @@ -1740,10 +1740,11 @@ async fn subvol_upgrade(socket: &Path, name: &str, yes: bool) -> Result<()> { /// `subvol snapshot create --label