Defer api key validation until publish task is executed