The validations are not yet specified and will be a reasonable amount of work, since it will involve different validations per deployment type.  Unless there are some obvious validations that we do not already have here I'd suggest we keep the validation functionality and the validations themselves in separate patches.