security: Add configuration based validator

Change-Id: Ic5837f4b02a613966c0a2e969c974ebd0786f769