fix regression and add regression test for injecting secret and redirect url into ENV for service