aws-quickstart / quickstart-aerospike

AWS Quick Start Team
Apache License 2.0
6 stars 8 forks source link

Feature Key file - ensure that the decoding works more robustly #46

Open gargana opened 3 years ago

gargana commented 3 years ago

If the Feature key file is encoded in Base-64 with line breaks, then extraction fails at the first line break.

sourabh3b commented 3 years ago

Possible solution - use regex pattern to check spaces in FeatureKeyFile field

In CFT we can update this section as : [to be tested]

  FeatureKeyFile:
    Description: Base64 encoding of the feature key file. This is the Aerospike key to use for this deployment. Keeping this blank works only for single node cluster.
    Type: String
    Default: ""
    ConstraintDescription: Must not have spaces in beginning or end
    AllowedPattern: '^[^\s].+[^\s]$'