I've got a system to lock up the brakes if the trailer comes off.
It calls for a separate charge wire to the tiny battery. That would be a lot of work. Why not just use the running lights? Its only going to take a portion of an amp.
There's a warning on the brake controller manual about not tripping the safety brake as the full voltage will fry the controller. Can you see any reason not to put a diode in for protection. I've got several "four diode" little tin boxes where the diodes have a spade connection and 25 amp rating. Must be a better name for these.
Karl