From d8a72bb1c2c53790314ad106de6aea6542437981 Mon Sep 17 00:00:00 2001 From: Logeshwarsn Date: Tue, 14 Jun 2022 12:52:24 +0530 Subject: [PATCH] Add support for 64 characters keys, generated by openssl rand -hex 32 --- .../MP_submission/createUiDefinition.json | 12 ++++++------ AzureResourceManager/Artifactory/azuredeploy.json | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/AzureResourceManager/Artifactory/MP_submission/createUiDefinition.json b/AzureResourceManager/Artifactory/MP_submission/createUiDefinition.json index f647d6a..ce3adff 100644 --- a/AzureResourceManager/Artifactory/MP_submission/createUiDefinition.json +++ b/AzureResourceManager/Artifactory/MP_submission/createUiDefinition.json @@ -248,11 +248,11 @@ "password": "Artifactory master Key", "confirmPassword": "Confirm master Key" }, - "toolTip": "Master key for Artifactory cluster. Generate master.key using command '$openssl rand -hex 16'", + "toolTip": "Master key for Artifactory cluster. Generate master.key using command '$openssl rand -hex 32'", "constraints": { "required": true, - "regex": "^[a-z0-9A-Z]{12,32}$", - "validationMessage": "Only alphanumeric characters are allowed, and the value must be 1-32 characters long." + "regex": "^[a-z0-9A-Z]{12,64}$", + "validationMessage": "Only alphanumeric characters are allowed, and the value must be 1-64 characters long." }, "options": { "hideConfirmation": true @@ -265,11 +265,11 @@ "password": "Artifactory join Key", "confirmPassword": "Confirm join Key" }, - "toolTip": "Join key for Artifactory cluster. Generate join.key using command '$openssl rand -hex 16'", + "toolTip": "Join key for Artifactory cluster. Generate join.key using command '$openssl rand -hex 32'", "constraints": { "required": false, - "regex": "^[a-z0-9A-Z]{12,32}$", - "validationMessage": "Only alphanumeric characters are allowed, and the value must be 1-32 characters long." + "regex": "^[a-z0-9A-Z]{12,64}$", + "validationMessage": "Only alphanumeric characters are allowed, and the value must be 1-64 characters long." }, "options": { "hideConfirmation": true diff --git a/AzureResourceManager/Artifactory/azuredeploy.json b/AzureResourceManager/Artifactory/azuredeploy.json index b7693fd..99761c4 100644 --- a/AzureResourceManager/Artifactory/azuredeploy.json +++ b/AzureResourceManager/Artifactory/azuredeploy.json @@ -114,14 +114,14 @@ "type": "securestring", "maxLength": 64, "metadata": { - "description": "Master key for Artifactory cluster. Generate master.key using command '$openssl rand -hex 16'" + "description": "Master key for Artifactory cluster. Generate master.key using command '$openssl rand -hex 32'" } }, "joinKey": { "type": "securestring", "maxLength": 64, "metadata": { - "description": "Join key for Artifactory cluster. Generate join.key using command '$openssl rand -hex 16'" + "description": "Join key for Artifactory cluster. Generate join.key using command '$openssl rand -hex 32'" } }, "adminUsername": {