From 40b0c524f0dec54154a6b69d09bd3751b9aa3cab Mon Sep 17 00:00:00 2001 From: cruizba Date: Thu, 5 Nov 2020 16:39:22 +0100 Subject: [PATCH] openvidu-deployment: Check secret in cloudformation yml --- openvidu-server/deployments/ce/aws/CF-OpenVidu.yaml.template | 4 ++-- .../pro/aws/cfn-openvidu-server-pro-no-market.yaml.template | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openvidu-server/deployments/ce/aws/CF-OpenVidu.yaml.template b/openvidu-server/deployments/ce/aws/CF-OpenVidu.yaml.template index d5e3a147..4dac94cc 100644 --- a/openvidu-server/deployments/ce/aws/CF-OpenVidu.yaml.template +++ b/openvidu-server/deployments/ce/aws/CF-OpenVidu.yaml.template @@ -46,9 +46,9 @@ Parameters: OpenViduSecret: Description: "Secret to connect to this OpenVidu Platform. No whitespaces or quotations allowed" Type: String - AllowedPattern: ^((?!")(?! ).)+$ + AllowedPattern: ^[a-zA-Z0-9_-]+$ NoEcho: true - ConstraintDescription: OpenVidu Secret is mandatory + ConstraintDescription: "Cannot be empty and must contain only alphanumeric characters [a-zA-Z0-9], hypens ('-') and underscores ('_')" # EC2 Instance configuration diff --git a/openvidu-server/deployments/pro/aws/cfn-openvidu-server-pro-no-market.yaml.template b/openvidu-server/deployments/pro/aws/cfn-openvidu-server-pro-no-market.yaml.template index 9b913da4..14f4211f 100644 --- a/openvidu-server/deployments/pro/aws/cfn-openvidu-server-pro-no-market.yaml.template +++ b/openvidu-server/deployments/pro/aws/cfn-openvidu-server-pro-no-market.yaml.template @@ -70,9 +70,9 @@ Parameters: OpenViduSecret: Description: "Secret to connect to this OpenVidu Platform. No whitespaces or quotations allowed" Type: String - AllowedPattern: ^((?!")(?! ).)+$ + AllowedPattern: ^[a-zA-Z0-9_-]+$ NoEcho: true - ConstraintDescription: OpenVidu Secret is mandatory (no whitespaces or quotations allowed) + ConstraintDescription: "Cannot be empty and must contain only alphanumeric characters [a-zA-Z0-9], hypens ('-') and underscores ('_')" MediaNodesStartNumber: Description: "How many Media Nodes do you want on startup (EC2 instances will be launched)"