From dc782a9106aab28b4176a63b55f21e50867abd11 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Tue, 19 Jul 2016 11:21:47 +0200 Subject: [PATCH] Forbid root as the InfluxDB username Change-Id: Ie66781b518e63a7b94a2506b7d7b70c777975f05 Closes-Bug: #1604307 --- environment_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/environment_config.yaml b/environment_config.yaml index 8e83aca5..6c7de82b 100644 --- a/environment_config.yaml +++ b/environment_config.yaml @@ -38,8 +38,8 @@ attributes: weight: 50 type: "text" regex: - source: '\S' - error: "You must provide a username" + source: '^((?!root$)\S)' + error: "You must provide a valid username" influxdb_userpass: value: