Add support for 64 characters keys, generated by openssl rand -hex 32

This commit is contained in:
Logeshwarsn
2022-06-14 12:52:24 +05:30
parent a3b97e4b63
commit d8a72bb1c2
2 changed files with 8 additions and 8 deletions

View File

@@ -248,11 +248,11 @@
"password": "Artifactory master Key", "password": "Artifactory master Key",
"confirmPassword": "Confirm 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": { "constraints": {
"required": true, "required": true,
"regex": "^[a-z0-9A-Z]{12,32}$", "regex": "^[a-z0-9A-Z]{12,64}$",
"validationMessage": "Only alphanumeric characters are allowed, and the value must be 1-32 characters long." "validationMessage": "Only alphanumeric characters are allowed, and the value must be 1-64 characters long."
}, },
"options": { "options": {
"hideConfirmation": true "hideConfirmation": true
@@ -265,11 +265,11 @@
"password": "Artifactory join Key", "password": "Artifactory join Key",
"confirmPassword": "Confirm 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": { "constraints": {
"required": false, "required": false,
"regex": "^[a-z0-9A-Z]{12,32}$", "regex": "^[a-z0-9A-Z]{12,64}$",
"validationMessage": "Only alphanumeric characters are allowed, and the value must be 1-32 characters long." "validationMessage": "Only alphanumeric characters are allowed, and the value must be 1-64 characters long."
}, },
"options": { "options": {
"hideConfirmation": true "hideConfirmation": true

View File

@@ -114,14 +114,14 @@
"type": "securestring", "type": "securestring",
"maxLength": 64, "maxLength": 64,
"metadata": { "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": { "joinKey": {
"type": "securestring", "type": "securestring",
"maxLength": 64, "maxLength": 64,
"metadata": { "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": { "adminUsername": {