5V rail connected to 12V via 10K resistor ok?

I would say no.
You would have (12V-5V)/20K = 0.35mA of current trying to flow from 12V side to 5V side.
The G would be at 8.5V when not grounded. Is that connected to an Arduino pin? Not good.