Add unique contraints on secret and domain