summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-01 21:52:20 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-01 21:52:42 +0200
commit38e02c12a50de685c6d70954cd94a224e8083f0b (patch)
treed704e531307299a6c03a1a1b7500b33d8ed61f0d
parentc0255a94ef06b14641b1ba280ce7b3e4684271d4 (diff)
downloadvyos-1x-38e02c12a50de685c6d70954cd94a224e8083f0b.tar.gz
vyos-1x-38e02c12a50de685c6d70954cd94a224e8083f0b.zip
login: T1948: add missing ssh-public key name regex
(cherry picked from commit 514da738173696c70440c959b9d7ec9afd77fbae)
-rw-r--r--interface-definitions/system-login.xml.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/interface-definitions/system-login.xml.in b/interface-definitions/system-login.xml.in
index 4bfe82268..f4613b8a2 100644
--- a/interface-definitions/system-login.xml.in
+++ b/interface-definitions/system-login.xml.in
@@ -44,6 +44,9 @@
<tagNode name="public-keys">
<properties>
<help>Remote access public keys</help>
+ <constraint>
+ <regex>^[-_a-zA-Z0-9@]+$</regex>
+ </constraint>
<valueHelp>
<format>txt</format>
<description>Key identifier used by ssh-keygen (usually of form user@host)</description>