Variable Validation
CDAF provided tabular configuration management files in late 2018, but until now, did not have a convenient way of verifying these properties when they are loaded as variables, nor environment variables, at deploy time. The VARCHK operation has been added to the execution engine to allow different validation rules and logging. The operation syntax is
VARCHK properties.filename
There are 5 rules available, two for plain text and three for secrets. When validating a secret against a known MD5 value, either a literal or variable can be supplied.
# Plain text values
OPT_ARG # Optional plain text
terraform_version=required # Required plain text
# Secret values
TERRAFORM_TOKEN=optional # Optional secret
TERRAFORM_TOKEN=secret # Required secret
TERRAFORM_TOKEN=$TERRAFORM_TOKEN_MASK # Required secret verified against supplied SHA-256 value
For full release details for CDAF 2.4.6 see http://cdaf.io/release