update secret backend logic