Programatic resolution of API secrets