[PATCH 2/4] secret_conf: add validation against schema in define